PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » PEAR » PEAR » Bug #7272

Fatal error when running pear install

Details

Submitted2006-03-31 15:16 UTC
Frombnatal at tsp dot sheridan dot com
StatusBogus
PackagePEAR
PHP Version4.4.2
OSSolaris 9
Roadmaps(Not assigned)

Comments

[2006-03-31 15:16 UTC] bnatal at tsp dot sheridan dot com

Description:
------------
I've compiled PHP 4.4.2 --with-pear everything compiled fine. However, when I try to use the pear command such as (pear install <package name>) I get the below error message. Any idea how to best resolve this issue?

Warning: main(Console/Getopt.php): failed to open stream: No such file or directory in System.php on line 27

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

[2006-06-05 15:11 UTC] garykom at mailinator dot com

I've the same problem:
(I get the same error Msg when trying to start the pear commandlinetool)

system:
suse 10.1
Linux 2.6.16.13-4-smp #1 SMP Wed May 3 04:53:23 UTC 2006 x86_64 x86_64 x86_64 GNU/Linux

compiled 4.4.2 from source with:
'./configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-mysql' '--with-zlib-dir=/usr/lib64' '--with-pgsql-dir=/usr/lib64' '--with-gd' '--with-jpeg-dir=/usr/lib64' '--with-png-dir=/usr/lib64'
make clean
make
make install > php_make_install_2_stdout.txt

some files seem to be corrupt...

# grep -i pear /root/php_make_install_2_stdout.txt
Installing PEAR environment: /usr/local/lib/php/
[PEAR] Archive_Tar: bad md5sum for file /usr/local/lib/php/Archive/Tar.php
[PEAR] Console_Getopt: bad md5sum for file /usr/local/lib/php/Console/Getopt.php
[PEAR] HTML_Template_IT: bad md5sum for file /usr/local/lib/php/HTML/Template/IT.php
[PEAR] Net_UserAgent_Detect- already installed: 2.0.1
[PEAR] PEAR - already installed: 1.4.6
Wrote PEAR system config file at: /usr/local/etc/pear.conf

hope this helps

[2006-06-07 02:16 UTC] garykom at mailinator dot com

thanks for the detailed answer!

got it working this way:
./configure --without-pear ...
make
make install

and then a manual pear install to /usr/local/lib/php
(just had to help the installer with some dirs..)
works fine.