php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21111 Can't install PEAR
Submitted: 2002-12-20 07:04 UTC Modified: 2003-01-23 03:54 UTC
From: mikkel at linet dot dk Assigned:
Status: Closed Package: PEAR related
PHP Version: 4CVS-2002-12-20 (dev) OS: RH 8.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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mikkel at linet dot dk
New email:
PHP Version: OS:

 

 [2002-12-20 07:04 UTC] mikkel at linet dot dk
When installing PEAR I get:

Installing PEAR environment:      /var/tmp/php-ze2-root/usr/share/pear/

Fatal error: Can't use method return value in write context in /home/mkj/tmp/ZEND2/php4-ze2/pear/PEAR/Installer.php on line 702

Fatal error: Can't use method return value in write context in /home/mkj/tmp/ZEND2/php4-ze2/pear/PEAR/Installer.php on line 702
I

Removing the "&" in line 702. Gives me the following errors:

Installing PEAR environment:      /var/tmp/php-ze2-root/usr/share/pear/

Warning: mkdir(/usr/share/pear/.registry) [http://www.php.net/function.mkdir]: Permission denied in /home/mkj/tmp/ZEND2/php4-ze2/pear/System.php on line 243

Warning: mkdir(/usr/share/pear/.registry) [http://www.php.net/function.mkdir]: Permission denied in /home/mkj/tmp/ZEND2/php4-ze2/pear/System.php on line 243

...

Warning: mkdir(/usr/share/pear/.registry) [http://www.php.net/function.mkdir]: Permission denied in /home/mkj/tmp/ZEND2/php4-ze2/pear/System.php on line 243
[PEAR] DB: unable to unpack /home/mkj/tmp/ZEND2/php4-ze2/pear/packages/DB-1.3.tar
[PEAR] HTTP: unable to unpack /home/mkj/tmp/ZEND2/php4-ze2/pear/packages/HTTP-1.2.tar
[PEAR] Mail: unable to unpack /home/mkj/tmp/ZEND2/php4-ze2/pear/packages/Mail-1.0.1.tar
...

Which is the same error I got with 4.3.0RC1, but was fixed in RC2.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-01 16:36 UTC] mj@php.net
Does the user, under which you try to install PHP and PEAR, the necessary permissions to write in /usr/share?

Normally you need to be root for this.
 [2003-01-02 02:13 UTC] mikkel at linet dot dk
No, the don't have permission to write to /usr/share, but that is not where I want to install to my install command is "make install INSTALL_ROOT=/var/tmp/php-root install_targets=install-pear" I have permissions to write to that location.
 [2003-01-23 03:54 UTC] tal@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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 20:01:45 2024 UTC