[PHP-users 28730] PEAR で pear remote-list でエラーが出ます

Shindo shindo @ atsystem.jp
2006年 3月 16日 (木) 10:11:52 JST


進藤です。よろしくお願いします。

PEARを使い始めようとマニュアルを見ながら
$ pear remote-list
を実行すると以下のエラーがでます。
マニュアルには
>PHP 4 の最近のバージョンをインストールする場合には、 ./configure にフラグ --
without-pear を指定していない限り、 PEAR の基本部分はシステムにインストールされ
るようになっています。
と書かれていたので、PHPのインストール時は、PEARを特に意識してインストー
ルしなかったのですが、何がいけないのでしょうか?


Linux環境の場合:
[shindo:~]$ pear remote-list

Warning: main(Console/Getopt.php): failed to open stream: No such file 
or directory in System.php on line 27
PHP Fatal error:  main(): Failed opening required 'Console/Getopt.php' 
(include_path='/usr/local/lib/php') in /usr/local/lib/php/System.php on 
line 27

Fatal error: main(): Failed opening required 'Console/Getopt.php' 
(include_path='/usr/local/lib/php') in /usr/local/lib/php/System.php on 
line 27

[shindo:~]$ php -i
phpinfo()
PHP Version => 4.4.2

System => Linux XXXX.DOMAIN 2.6.9-22.0.2.ELsmp #1 SMP Thu Jan 5 17:13:01 
EST 2006 i686
Build Date => Feb  2 2006 20:03:26
Configure Command =>  './configure' '--with-config-file-path=/etc' '--
disable-cgi' '--enable-mbstring' '--enable-mbregex' '--with-pgsql'
Server API => Command Line Interface
〜〜以下省略〜〜


FreeBSD環境の場合:
shindo:~% pear remote-list
PHP Fatal error:  Call to undefined function:  readphpargv() in /usr/
local/lib/php/pearcmd.php on line 50

Fatal error: Call to undefined function:  readphpargv() in /usr/local/
lib/php/pearcmd.php on line 50

shindo:~% php -i
phpinfo()
PHP Version => 4.4.2

System => FreeBSD XXXX.DIMAIN 5.3-RC1 FreeBSD 5.3-RC1 #0: Sun Oct 17 01:
25:37 UTC 2004     root @ wv1u.samsco.home:/usr/obj/usr/src/sys/GENERIC 
i386
Build Date => Feb 28 2006 09:54:43
Configure Command =>  './configure' '--enable-versioning' '--enable-
memory-limit' '--with-layout=GNU' '--with-config-file-scan-dir=/usr/
local/etc/php' '--disable-all' '--with-regex=php' '--with-apxs2=/usr/
local/sbin/apxs' '--enable-zend-multibyte' '--prefix=/usr/local' 'i386-
portbld-freebsd5.3'
Server API => Command Line Interface
〜〜以下省略〜〜


_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
 進藤寿則@アットシステム   _/_/
 e-mail shindo@atsystem.jp     _/



PHP-users メーリングリストの案内