'pear'에 해당하는 글 1건


php를 컴파일하고 --without-pear 하지 않는이상 pear는 설치된다.

그런데 /usr/local/share/pear 로 미리 생성이 되어 있다.

다른곳에 사용하던 pear를 압축해와서  /usr/local/share/pear 에 풀었다.

php 컴파일하여 설치했는데, /usr/local/bin/pear 가 생기지 않는다.


/usr/local/share/pear 를 다른 이름으로 변경하니 생성이 된다.

[root@oracle pear]# ll /usr/local/bin/pear
-rwxr-xr-x 1 root root 799 Feb  9 11:03 /usr/local/bin/pear
[root@oracle pear]# pear list
(no packages installed from channel pear.php.net)


이름 변경한것을 복사해 보았다.

[root@oracle pear]# cp -rvp ../pear_/* ./

pear list 해 보니 역시 (no packages installed from channel pear.php.net) 된다.


/usr/local/lib/php 를 지우고 다시 make install 하니 아래 처럼 정상적으로 된다.

[root@oracle php-5.2.17]# make install
Installing PHP SAPI module:       cgi
Installing PHP CGI binary: /usr/local/bin/
Installing PHP CLI binary:        /usr/local/bin/
Installing PHP CLI man page:      /usr/local/man/man1/
Installing build environment:     /usr/local/lib/php/build/
Installing header files:          /usr/local/include/php/
Installing helper programs:       /usr/local/bin/
  program: phpize
  program: php-config
Installing man pages:             /usr/local/man/man1/
  page: phpize.1
  page: php-config.1
Installing PEAR environment:      /usr/local/share/pear/
[PEAR] Archive_Tar    - installed: 1.3.7
[PEAR] Console_Getopt - installed: 1.2.3
[PEAR] Structures_Graph- installed: 1.0.3
[PEAR] XML_Util       - installed: 1.2.1
[PEAR] PEAR           - installed: 1.9.1
Wrote PEAR system config file at: /usr/local/etc/pear.conf
You may want to add: /usr/local/share/pear to your php.ini include_path
Installing PDO headers:          /usr/local/include/php/ext/pdo/
[root@oracle php-5.2.17]# ll /usr/local/bin/pear*
-rwxr-xr-x 1 root root 808 Feb  9 11:18 /usr/local/bin/pear
-rwxr-xr-x 1 root root 829 Feb  9 11:18 /usr/local/bin/peardev
[root@oracle php-5.2.17]# cd /usr/local/lib/php
[root@oracle php]# ls
build
[root@oracle php]# cd /usr/local/share/pear
[root@oracle pear]# ls
Archive  Console  OS  PEAR  PEAR.php  PEAR5.php  Structures  System.php  XML  data  doc  pearcmd.php  peclcmd.php  test


설치된 pear 존재할때 충돌이 나면서 pear 가 생성되지 않는것으로 확인된다.

[root@oracle php-5.2.17]# make install
Installing PHP SAPI module:       cgi
Installing PHP CGI binary: /usr/local/bin/
Installing PHP CLI binary:        /usr/local/bin/
Installing PHP CLI man page:      /usr/local/man/man1/
Installing build environment:     /usr/local/lib/php/build/
Installing header files:          /usr/local/include/php/
Installing helper programs:       /usr/local/bin/
  program: phpize
  program: php-config 
Installing man pages:             /usr/local/man/man1/
  page: phpize.1
  page: php-config.1  
Installing PEAR environment:      /usr/local/share/pear/
[PEAR] Archive_Tar: upgrade to a newer version (1.3.7 is not newer than 1.3.7)
[PEAR] Console_Getopt: upgrade to a newer version (1.2.3 is not newer than 1.3.0)
[PEAR] Structures_Graph: upgrade to a newer version (1.0.3 is not newer than 1.0.4)
[PEAR] XML_Util: upgrade to a newer version (1.2.1 is not newer than 1.2.1)
[PEAR] PEAR: upgrade to a newer version (1.9.1 is not newer than 1.9.1)
Installing PDO headers:          /usr/local/include/php/ext/pdo/


저작자 표시 비영리 변경 금지
신고
크리에이티브 커먼즈 라이선스
Creative Commons License

'서버관리' 카테고리의 다른 글

tail  (0) 2011.02.15
[오라클] 닫힌 백업 스크립트  (0) 2011.02.15
/usr/locqal/bin/pear 가 생기지 않는다면?  (0) 2011.02.09
TCP Port 1433  (0) 2011.02.07
[오라클] 닫힌 백업 수동으로 해보기  (0) 2011.01.31
cpu 갯수와 코어수 확인 스크립트  (0) 2011.01.31

WRITTEN BY
김병국
유용했던 자료를 기록해 두었습니다. 도움이 되시길~~~ Welcome! I started this blog as a way to give back to all of the other system administrators who have taught me something in the past. Writing these posts brings me a lot of enjoyment and I hope you fun

받은 트랙백이 없고 , 댓글이 없습니다.
secret