"CentOS php-pear 설치"의 두 판 사이의 차이

6번째 줄: 6번째 줄:
[root@jmnote ~]# pecl download oci8
[root@jmnote ~]# pecl download oci8
-bash: pecl: command not found
-bash: pecl: command not found
</source>
:→ oci8를 다운로드하려는데 pecl이 없음 ([[PHP에서 오라클 DB 사용]] 참조)
<source lang='dos'>
[root@jmnote ~]# pecl
[root@jmnote ~]# pecl
-bash: pecl: command not found
-bash: pecl: command not found
</source>
</source>
:→ oci8를 다운로드하려는데 pecl이 없음 ([[PHP에서 오라클 DB 사용]] 참조)


==php-pear 설치==
==php-pear 설치==

2012년 9월 4일 (화) 09:30 판

pecl 설치
pecl: command not found

1 문제상황

[root@jmnote ~]# pecl download oci8
-bash: pecl: command not found
→ oci8를 다운로드하려는데 pecl이 없음 (PHP에서 오라클 DB 사용 참조)
[root@jmnote ~]# pecl
-bash: pecl: command not found

2 php-pear 설치

[root@jmnote ~]# yum install php-pear -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-pear.noarch 1:1.9.4-4.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================
 Package                Arch                 Version                       Repository          Size
====================================================================================================
Installing:
 php-pear               noarch               1:1.9.4-4.el6                 Daum               393 k

Transaction Summary
====================================================================================================
Install       1 Package(s)

Total download size: 393 k
Installed size: 2.2 M
Downloading Packages:
php-pear-1.9.4-4.el6.noarch.rpm                                              | 393 kB     00:00     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Installing : 1:php-pear-1.9.4-4.el6.noarch                                                    1/1 

Installed:
  php-pear.noarch 1:1.9.4-4.el6                                                                     

Complete!

3 확인

[root@jmnote ~]# rpm -qa | grep php-pear
php-pear-1.9.4-4.el6.noarch
[root@ipctool ~]# pecl
Commands:
build                  Build an Extension From C Source
bundle                 Unpacks a Pecl Package
channel-add            Add a Channel
... (생략)
Type "pecl help options" to list all options.
Type "pecl help shortcuts" to list all command shortcuts.
Type "pecl help <command>" to get the help for the specified command.
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}