php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24509 PEAR install doesn't honor installroot
Submitted: 2003-07-05 22:48 UTC Modified: 2003-07-06 10:38 UTC
From: mike at graftonhall dot co dot nz Assigned:
Status: Not a bug Package: PEAR related
PHP Version: Irrelevant OS: Windows 2000
Private report: No CVE-ID: None
 [2003-07-05 22:48 UTC] mike at graftonhall dot co dot nz
Description:
------------
With my php_dir set to i:\httpd\pear, the location of my PEAR installation.

If I try to install a package into another folder eg:
pear install -R i:\temp Archive_Tar

I get the directory structure:
I:\temp\httpd\pear
I:\temp\httpd\pear\.filemap
I:\temp\httpd\pear\.lock
I:\temp\httpd\pear\.registry
I:\temp\httpd\pear\Archive
I:\temp\httpd\pear\docs
I:\temp\httpd\pear\.registry\archive_tar.reg
I:\temp\httpd\pear\Archive\Tar.php
I:\temp\httpd\pear\docs\Archive_Tar
I:\temp\httpd\pear\docs\Archive_Tar\docs
I:\temp\httpd\pear\docs\Archive_Tar\docs\Archive_Tar.txt

Where I would expect:
I:\temp\.filemap
I:\temp\.lock
I:\temp\.registry
I:\temp\Archive
I:\temp\docs
I:\temp\.registry\archive_tar.reg
I:\temp\Archive\Tar.php
I:\temp\docs\Archive_Tar
I:\temp\docs\Archive_Tar\docs
I:\temp\docs\Archive_Tar\docs\Archive_Tar.txt

This is the same with PEAR 1.1 and 1.2b2

- Mike :-)


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-07-06 10:17 UTC] cox@php.net
Destination dir = RootDir + PHP DIR

If you want to relocate a package use the "-d" option (pear help options):

$ pear -d php_dir=i:\temp install Package
 [2003-07-06 10:38 UTC] mike at graftonhall dot co dot nz
That still doesn't work, gives a new error message:

I:\temp>pear -d php_dir=i:\temp install http://www.graftonhall.co.nz/packages/get.php/Horde_Cipher

Notice: Undefined offset:  1 in pearcmd.php on line 97
pearcmd.php install [options] <package> .......

Feel free to try with the package if you want.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 14:01:30 2024 UTC