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

잔글 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))
 
(사용자 2명의 중간 판 27개는 보이지 않습니다)
1번째 줄: 1번째 줄:
;pecl 설치
{{다른뜻|우분투 php-pear 설치}}
{{다른뜻|PECL 패키지 설치}}
;php-pear 설치, pecl 설치, PEAR 설치
;<nowiki>pecl: command not found</nowiki>
;<nowiki>pecl: command not found</nowiki>


==문제상황==
==확인==
<source lang='dos'>
<syntaxhighlight lang='console'>
[root@jmnote ~]# pecl download oci8
[root@zetawiki ~]# pecl version
-bash: pecl: command not found
-bash: pecl: command not found
</source>
</syntaxhighlight>
:→ oci8를 다운로드하려는데 pecl이 없음 ([[PHP에서 오라클 DB 사용]] 참조)
<syntaxhighlight lang='console'>
<source lang='dos'>
[root@zetawiki ~]# pear version
[root@jmnote ~]# pecl version
-bash: pear: command not found
-bash: pecl: command not found
</syntaxhighlight>
</source>
<syntaxhighlight lang='console'>
<source lang='dos'>
[root@zetawiki ~]# rpm -qa | grep php-pear
[root@jmnote ~]# rpm -qa | grep php-pear
[root@zetawiki ~]# yum info php-pear
[root@jmnote ~]# yum info php-pear | grep ^Repo
... (생략)
Repo      : Daum
Available Packages
</source>
php-pear.noarch                      1:1.9.4-4.el6                          base
</syntaxhighlight>
:→ 설치되지 않음. [[yum 저장소]]에 있음(설치 가능함).
:→ 설치되지 않음. [[yum 저장소]]에 있음(설치 가능함).


==php-pear 설치==
==설치==
<source lang='dos'>
<syntaxhighlight lang='console'>
[root@jmnote ~]# yum install php-pear -y
[root@zetawiki ~]# yum install php-pear
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
  Package                Arch                Version                      Repository          Size
====================================================================================================
====================================================================================================
Installing:
Installing:
  php-pear              noarch              1:1.9.4-4.el6                Daum               393 k
  php-pear              noarch              1:1.9.4-4.el6                base               393 k


Transaction Summary
Transaction Summary
44번째 줄: 38번째 줄:
Total download size: 393 k
Total download size: 393 k
Installed size: 2.2 M
Installed size: 2.2 M
Downloading Packages:
Is this ok [y/N]: y
php-pear-1.9.4-4.el6.noarch.rpm                                              | 393 kB    00:00   
</syntaxhighlight>
Running rpm_check_debug
<syntaxhighlight lang='console'>
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:
Installed:
   php-pear.noarch 1:1.9.4-4.el6                                                                    
   php-pear.noarch 1:1.9.4-4.el6                                                          


Complete!
Complete!
</source>
</syntaxhighlight>


==확인==
==확인 2==
<source lang='dos'>
<syntaxhighlight lang='console'>
[root@jmnote ~]# rpm -qa | grep php-pear
[root@zetawiki ~]# rpm -qa | grep php-pear
php-pear-1.9.4-4.el6.noarch
php-pear-1.9.4-4.el6.noarch
</source>
</syntaxhighlight>
<source lang='dos'>
<syntaxhighlight lang='console'>
[root@jmnote ~]# pecl version
[root@zetawiki ~]# pecl version
PEAR Version: 1.4.9
PEAR Version: 1.10.1
PHP Version: 5.2.10
PHP Version: 5.5.30
Zend Engine Version: 2.2.0
Zend Engine Version: 2.5.0
Running on: Linux jmnote.com 2.6.18-274.3.1.el5xen #1 SMP Tue Sep 6 20:57:11 EDT 2011 x86_64
Running on: Linux zetawiki 2.6.32-431.17.1.el6.x86_64 #1 SMP Wed May 7 23:32:49 UTC 2014 x86_64
</source>
</syntaxhighlight>
<syntaxhighlight lang='console'>
[root@zetawiki ~]# pear version
PEAR Version: 1.10.1
PHP Version: 5.5.30
Zend Engine Version: 2.5.0
Running on: Linux zetawiki 2.6.32-431.17.1.el6.x86_64 #1 SMP Wed May 7 23:32:49 UTC 2014 x86_64
</syntaxhighlight>


==참고 자료==
==같이 보기==
*[[우분투 php-pear 설치]]
*[[PEAR 버전 확인]]
*[[PECL Ncurses 설치]]
*[[pecl_http 설치]]
*[[PHP에서 오라클 DB 사용]]
*[[PHP에서 오라클 DB 사용]]
*[[pecl 버전 확인]]
*[[pecl 버전 확인]]
*[[/usr/bin/pecl]]
*[[pecl 설치된 패키지 목록 확인]]


[[분류: 리눅스]]
[[분류: PECL]]

2020년 11월 2일 (월) 02:56 기준 최신판

  다른 뜻에 대해서는 우분투 php-pear 설치 문서를 참조하십시오.
  다른 뜻에 대해서는 PECL 패키지 설치 문서를 참조하십시오.
php-pear 설치, pecl 설치, PEAR 설치
pecl: command not found

1 확인[ | ]

[root@zetawiki ~]# pecl version
-bash: pecl: command not found
[root@zetawiki ~]# pear version
-bash: pear: command not found
[root@zetawiki ~]# rpm -qa | grep php-pear
[root@zetawiki ~]# yum info php-pear
... (생략)
Available Packages
php-pear.noarch                      1:1.9.4-4.el6                          base
→ 설치되지 않음. yum 저장소에 있음(설치 가능함).

2 설치[ | ]

[root@zetawiki ~]# yum install php-pear
... (생략)
====================================================================================================
 Package                Arch                 Version                       Repository          Size
====================================================================================================
Installing:
 php-pear               noarch               1:1.9.4-4.el6                 base               393 k

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

Total download size: 393 k
Installed size: 2.2 M
Is this ok [y/N]: y
... (생략)
Installed:
  php-pear.noarch 1:1.9.4-4.el6                                                            

Complete!

3 확인 2[ | ]

[root@zetawiki ~]# rpm -qa | grep php-pear
php-pear-1.9.4-4.el6.noarch
[root@zetawiki ~]# pecl version
PEAR Version: 1.10.1
PHP Version: 5.5.30
Zend Engine Version: 2.5.0
Running on: Linux zetawiki 2.6.32-431.17.1.el6.x86_64 #1 SMP Wed May 7 23:32:49 UTC 2014 x86_64
[root@zetawiki ~]# pear version
PEAR Version: 1.10.1
PHP Version: 5.5.30
Zend Engine Version: 2.5.0
Running on: Linux zetawiki 2.6.32-431.17.1.el6.x86_64 #1 SMP Wed May 7 23:32:49 UTC 2014 x86_64

4 같이 보기[ | ]

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