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

17번째 줄: 17번째 줄:
Repo      : Daum
Repo      : Daum
</source>
</source>
:→ 설치되지 않음. yum으로 설치 가능함.
:→ 설치되지 않음. [[yum 저장소]]에 있음(설치 가능함).


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

2012년 9월 9일 (일) 12:06 판

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
[root@jmnote ~]# rpm -qa | grep php-pear
[root@jmnote ~]# yum info php-pear | grep ^Repo
Repo       : Daum
→ 설치되지 않음. yum 저장소에 있음(설치 가능함).

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@jmnote ~]# 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.

4 참고 자료

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}