Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.10.12

Bug #7272 Fatal error when running pear install
Submitted: 2006-03-31 15:16 UTC
From: bnatal at tsp dot sheridan dot com Assigned:
Status: Bogus Package: PEAR
PHP Version: 4.4.2 OS: Solaris 9
Roadmaps: (Not assigned)    

 [2006-03-31 15:16 UTC] bnatal at tsp dot sheridan dot com (Ben)
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-04-01 15:00 UTC] cellog (Greg Beaver)
Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PEAR. please display output from the installation of PEAR, otherwise we can't do anything.
 [2006-06-05 15:11 UTC] garykom at mailinator dot com (gary Komm)
I've the same problem: (I get the same error Msg when trying to start the pear commandlinetool) system: suse 10.1 Linux #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-05 15:16 UTC] pajoye (Pierre-Alain Joye)
"make install > php_make_install_2_stdout.txt some files seem to be corrupt..." Which files? Please try using the snapshots available at
 [2006-06-05 20:56 UTC] cellog (Greg Beaver)
this may in fact be related to the global copyright update problem - PHP 4.4.2 has corrupted tar archives (internal files had their copyright updated, which corrupted them) making installation fail. This is fully fixed in PHP 4.4.3, and should be fixed in snapshots. However, to fix with the existing install, your solution is to download: verify that PEAR.php is in /usr/local/lib/php with: $ slocate PEAR.php /usr/local/lib/php/PEAR.php ^^^^^^^^^^^^^^^^^^ you should see this If not, substitute the path you see above the^^^ for "/usr/local/lib/php" in these instructions. and extract Console/Getopt.php, put it in /usr/local/lib/php/Console/Getopt.php extract Archive/Tar.php, put it in /usr/local/lib/php/Archive/Tar.php then, run "pear upgrade PEAR Console_Getopt Archive_Tar" and it should have everything up to date
 [2006-06-07 02:16 UTC] garykom at mailinator dot com (gary Komm)
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.
 [2006-06-07 07:59 UTC] pajoye (Pierre-Alain Joye)
Sorry, but your problem does not imply a bug in PEAR itself. For a list of more appropriate places to ask for help using PEAR, please visit as this bug system is not the appropriate forum for asking support questions. Thank you for your interest in PEAR. It was the (c) changes problem. Already fixed (and reported.