php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34955 PEAR install fails
Submitted: 2005-10-22 05:58 UTC Modified: 2005-11-08 05:05 UTC
From: squasar at eternalviper dot net Assigned: cellog (profile)
Status: Closed Package: Compile Failure
PHP Version: 5.1.0RC4 OS: MacOS X 10.4.3,i686-pc-linux-gnu
Private report: No CVE-ID: None
 [2005-10-22 05:58 UTC] squasar at eternalviper dot net
Description:
------------
The "Installing PEAR environment" phase of the "make install" 
command results in several pages of garbage output and no 
installed PEAR. The error occurs when make attempts to run the 
install-pear-nozlib.phar script.

Reproduce code:
---------------
$ ./buildconf --force
$ ./configure --prefix=/usr --with-apxs --enable-cli --disable-short-tags --with-zlib --with-bz2 --enable-ftp --with-iconv --enable-mbstring --with-mysql=/usr --enable-sockets --enable-debug --enable-simplexml --with-xsl=/usr --with-curl=/usr --with-curlwrappers --enable-bcmath --with-gmp=/usr/local --with-gd --with-freetype-dir=/usr/X11R6 --enable-gd-native-ttf --with-imap=/usr/local/imap --with-imap-ssl=/usr --with-xmlrpc --with-xml-dir=/usr --with-expat-dir=/usr --with-iconv-dir=/usr --with-mysqli=/usr/bin/mysql_config --with-pdo-mysql=/usr --with-embedded-mysqli --enable-maintainer-zts --enable-zend-multibyte --enable-memory-limit --with-svn=/usr
$ make -j 3
$ sudo make install

Expected result:
----------------
Installing PHP SAPI module:       apache
[activating module `php5' in /etc/httpd/httpd.conf]
cp libs/libphp5.so /usr/libexec/httpd/libphp5.so
chmod 755 /usr/libexec/httpd/libphp5.so
cp /etc/httpd/httpd.conf /etc/httpd/httpd.conf.bak
cp /etc/httpd/httpd.conf.new /etc/httpd/httpd.conf
rm /etc/httpd/httpd.conf.new
Installing PHP CLI binary:        /usr/bin/
Installing PHP CLI man page:      /usr/man/man1/
Installing build environment:     /usr/lib/php/build/
Installing header files:          /usr/include/php/
Installing helper programs:       /usr/bin/
  program: phpize
  program: php-config
Installing man pages:             /usr/man/man1/
  page: phpize.1
  page: php-config.1
Installing PEAR environment:      /usr/lib/php/
Installing PDO headers:          /usr/include/php/ext/pdo/


Actual result:
--------------
Installing PHP SAPI module:       apache
[activating module `php5' in /etc/httpd/httpd.conf]
cp libs/libphp5.so /usr/libexec/httpd/libphp5.so
chmod 755 /usr/libexec/httpd/libphp5.so
cp /etc/httpd/httpd.conf /etc/httpd/httpd.conf.bak
cp /etc/httpd/httpd.conf.new /etc/httpd/httpd.conf
rm /etc/httpd/httpd.conf.new
Installing PHP CLI binary:        /usr/bin/
Installing PHP CLI man page:      /usr/man/man1/
Installing build environment:     /usr/lib/php/build/
Installing header files:          /usr/include/php/
Installing helper programs:       /usr/bin/
  program: phpize
  program: php-config
Installing man pages:             /usr/man/man1/
  page: phpize.1
  page: php-config.1
Installing PEAR environment:      /usr/lib/php/
???????????????????????????????????/* this continues for 
exactly 821228 characters total 
*/???????????????????????????????????????Installing PDO 
headers:          /usr/include/php/ext/pdo/


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-10-22 11:50 UTC] tony2001@php.net
Greg, check it out please.
 [2005-10-27 05:29 UTC] cellog@php.net
I can't reproduce this on gentoo linux.

Does PEAR actually install?
 [2005-10-27 13:30 UTC] squasar at eternalviper dot net
No; PEAR does not install. As far as I can tell, install-pear-
nozlib.phar never runs at all; php parses it and spits out 
800K worth of ? characters.
 [2005-11-03 22:41 UTC] sniper@php.net
Greg, perhaps we should remove PEAR totally from PHP and keep it separate. This thing has always slowed the releases of PHP
and it should really end by now..

 [2005-11-05 17:37 UTC] cellog@php.net
I have reports of many users successfully running this on Mac OS X, so I am inclined to think it is a problem with your setup.

Please try with the latest install-pear-nozlib.phar, just in case this makes any difference.
 [2005-11-06 18:40 UTC] squasar at eternalviper dot net
I found the issue. Adding --enable-zend-multibyte to ./
configure fails both the PEAR install and Zend/tests/
halt02.phpt. Removing it makes both work correctly. I've run 
the test several times using a number of different 
configurations on both OS X 10.4.3 and i686-pc-linux-gnu; it 
always succeeds with Zend multibyte off and always fails 
with it on, both the halt02.phpt test and the PEAR install, 
on both systems.

Although "succeeds" is a relative term. The PEAR install 
runs, but spits this out at me (5.1.0RC4, latest .phar):


[PEAR] Archive_Tar    - installed: 1.3.1
[PEAR] Console_Getopt - installed: 1.2
pear/PEAR can optionally use package "pear/XML_RPC" (version 
>= 1.4.0)

Warning: PEAR_Installer_Role::factory(PEAR/Installer/Role/
Php.php): failed to open stream: No such file or directory 
in phar://install-pear-nozlib.phar/PEAR/Installer/Role.php 
on line 80

Fatal error: PEAR_Installer_Role::factory(): Failed opening 
required 'PEAR/Installer/Role/Php.php' (include_path='.:/
Users/gwynne/Desktop/Web/php/lib/php') in phar://install-
pear-nozlib.phar/PEAR/Installer/Role.php on line 80
make[1]: *** [install-pear-installer] Error 255
make: *** [install-pear] Error 2
 [2005-11-06 23:27 UTC] sniper@php.net
Greg, try with enabling the multibyte thingie, this is not MacOSX specifix problem.

 [2005-11-08 00:29 UTC] cellog@php.net
thanks, I am re-compiling PHP with multibyte now to see if I can get this one figured out.
 [2005-11-08 04:02 UTC] cellog@php.net
see also http://bugs.php.net/35147

This is for the __HALT_COMPILER__ issue
 [2005-11-08 05:05 UTC] cellog@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

thanks for the report, this is fixed, and in an hour or so, http://pear.php.net/install-pear-nozlib.phar with the fix will be available.

Note that the --enable-zend-multibyte problem is in a separate bug, and is not fixed by the fatal error fix, this is a bug in the Zend Engine.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat May 03 22:01:28 2025 UTC