php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18568 PEAR installation does not honor INSTALL_ROOT
Submitted: 2002-07-25 12:16 UTC Modified: 2002-11-24 17:23 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: vogel at folz dot de Assigned:
Status: Closed Package: PEAR related
PHP Version: 4CVS-2002-11-10 OS: Redhat 7.0
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: vogel at folz dot de
New email:
PHP Version: OS:

 

 [2002-07-25 12:16 UTC] vogel at folz dot de
I reported this bug already as part of bug #14401.

But when I compare snapshots php4-200207170600 (see #14401,
important parts cited below) and todays php4-200207250000,
there seems to be no work done to fix the PEAR install.

The relevant parts of my reports to bug #14401:

The PEAR installation fails right at it's start:
$ make install INSTALL_ROOT=/var/tmp/php-root
[/bin/sh libtool command omitted for brevity]
Installing PHP SAPI module
Installing shared extensions:     /var/tmp/php-root/usr/lib/php4/
Installing PHP CLI binary:        /var/tmp/php-root/usr/bin/
Installing PEAR environment:      /var/tmp/php-root/usr/share/pear/

Warning: SAFE MODE Restriction in effect.  The script whose uid is 503
is not allowed to access /usr/share owned by uid 0 in
/home/vogel/rpm/BUILD/php4-200207170600/pear/System.php on line 235

This last message is repeated _many_ times, with some
"Warning: version_compare() expects parameter 2" messages
interspersed.

I can reproduce this in various ways (i. e. building using
rpm or doing the same "by hand"; changing configure options
did not help in any way).

[and later:]

But what I did not find: How is "make" supposed to pass
the INSTALL_ROOT variable on to the php scripts that it
executes when the install-pear-installer and
install-pear-packages targets are called?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-25 13:52 UTC] sniper@php.net
reclassified

 [2002-09-25 15:27 UTC] andreas at conectiva dot com dot br
I have the same problem. The PEAR install is ignoring INSTALL_ROOT and trying to install things directly into /usr/share/pear:

(...)
Installing PEAR environment:      /home/andreas/svn/BUILDROOT/usr/share/pear/
make[1]: Entering directory `/home/andreas/svn/php4/BUILD/php4-200209250900/build-apache'

Warning: mkdir(/usr/share/pear/.registry) [http://www.php.net/function.mkdir]: Permission denied in /home/andreas/svn/php4/BUILD/php4-200209250900/pear/System.php on line 236
 [2002-11-09 10:22 UTC] mj@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip


 [2002-11-11 13:02 UTC] vogel at folz dot de
Snapshot 200211101739 Does NOT Work For Me(TM).

A "make install INSTALL_ROOT=/var/tmp/php-root" as it used
to work with php-4.2.x, end in:

Installing PHP SAPI module
Installing shared extensions:     /var/tmp/php-root/usr/lib/php4/
Installing PHP CLI binary:        /var/tmp/php-root/usr/bin/
Installing PEAR environment:      /var/tmp/php-root/usr/share/pear/

Warning: mkdir(/usr/share/pear) [http://www.php.net/function.mkdir]: Permission denied in /home/vogel/rpm/BUILD/php4-200211101739/pear/System.php on line 236

Warning: mkdir(/usr/share/pear/.registry) [http://www.php.net/function.mkdir]: No such file or directory in /home/vogel/rpm/BUILD/php4-200211101739/pear/System.php on line 236

(repeated many times)

Warning: version_compare() expects parameter 2 to be string, object given in /home/vogel/rpm/BUILD/php4-200211101739/pear/install-pear.php on line 63
[PEAR] XML_RPC        - already installed: Object
Installing build environment:     /var/tmp/php-root/usr/lib/php/build/
Installing header files:          /var/tmp/php-root/usr/include/php/
Installing helper programs:       /var/tmp/php-root/usr/bin/
  program: phpize
  program: php-config
  program: phpextdist
cp: cannot stat `pear/scripts/phpextdist': No such file or directory
make: *** [install-programs] Error 1

So we've got two problems:
o  INSTALL_ROOT is still not honored.
o  There's a new problem with phpextdist.
 [2002-11-12 13:47 UTC] eric at sandall dot us
I'm not sure if this is related, but I also have a problem with the PEAR installation of php (with php4-STABLE-200211121630):

libtool: install: warning: remember to run `libtool --finish /usr/src/php4-STABLE-200211121630/libs'
chmod 755 /usr/libexec/libphp4.so
Installing shared extensions:     /usr/lib/php/20020429/
Installing PHP CLI binary:        /usr/bin/
Installing PEAR environment:      /usr/share/pear/
[PEAR] Archive_Tar    - already installed: 0.9
[PEAR] Console_Getopt - already installed: 1.0
[PEAR] PEAR           - already installed: 1.0b2
make[1]: *** [install-pear-installer] Segmentation fault
 ! Problem Detected !
make: *** [install-pear] Error 2
Creating /var/log/sorcery/compile/php-snaps-STABLE-200211121630.bz2
 [2002-11-12 18:50 UTC] sniper@php.net
There have been some fixes in CVS related to this.
Please try the CVS HEAD (or the latest snapshot).
If you try with snapshot, make sure the pear/install-pear.php has the /* $Id... line in the top.

--Jani

 [2002-11-24 17:23 UTC] sniper@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, 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/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 [2003-05-19 15:42 UTC] admin+php at thirdage dot com
this bug is back in php-4.3.1

debug echo's added to install-pear.php:
+echo "install root: ".$install_root."\n";
+echo "reg_dir: ".$reg_dir."\n";

$ export INSTALL_ROOT=/var/tmp/php-root/
$ ./BUILD/php-4.3.1/build-cgi/sapi/cli/php $PEAR_INSTALL_FLAGS ./BUILD/php-4.3.1/pear/install-pear.php |head
install root: /var/tmp/php-root/
reg_dir: /var/tmp/php-root//usr/share/pear

Warning: mkdir(/usr/share/pear) [http://www.php.net/function.mkdir]: Permission denied in /home/service/rpm/BUILD/php-4.3.1/pear/System.php on line 236

Warning: mkdir(/usr/share/pear/.registry) [http://www.php.net/function.mkdir]: No such file or directory in /home/service/rpm/BUILD/php-4.3.1/pear/System.php on line 236

Warning: mkdir(/usr/share/pear) [http://www.php.net/function.mkdir]: Permission denied in /home/service/rpm/BUILD/php-4.3.1/pear/System.php on line 236

Warning: mkdir(/usr/share/pear/.registry) [http://www.php.net/function.mkdir]: No such file or directory in /home/service/rpm/BUILD/php-4.3.1/pear/System.php on line 236
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 11:01:30 2024 UTC