FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=17387&edit=1

ID: 17387
Comment by: j.boggiano@seld.be
Reported By: j dot boggiano at seld dot be
Summary: PEAR Install fails to set paths properly
Status: Open
Type: Bug
Package: PEAR
Operating System: Windows 7 x64
Package Version: Unknown
PHP Version: 5.3.2
Roadmap Versions:
New Comment:

Note that copying the pear.ini by hand from
C:\Users\seld\Apps\Server\PHP\PEAR\php.ini to C:\Windows\pear.ini fixed
everything after install. But it should NOT read in the windows dir if I
don't ask him to, and you should not require admin rights to install/run
PEAR imo.


Previous Comments:
------------------------------------------------------------------------

[2010-05-11 12:16:22] seld

Description:
------------
There are various issues, the installer doesn't seem to keep proper
paths, I am not sure if it's because it assumes C:\Windows\pear.ini or
not, but the paths after install don't match the patch specified during
install, which trigger failures during packages install and others.

Also the pear.bat generation seem a bit strange, especially line 26 and
27 in http://pastie.org/private/8obhaqh6eoezsvztf5f3w

This may be related to http://pear.php.net/bugs/bug.php?id=16187 -
Except that I don't run with admin privileges, so those directories (C:\
and C:\Windows) are out of bounds and the installer can't write in them.

Test script:
---------------
Here is a copy of my installation + pear show-config that outlines the
problem:


seld:~/Apps/Server/PHP/PEAR
$ php ../latest/PEAR/go-pear.phar

Are you installing a system-wide PEAR or a local copy?
(system|local) [system] : local
Please confirm local copy by typing 'yes' : yes

Below is a suggested file layout for your new PEAR installation. To
change individual locations, type the number in front of the
directory. Type 'all' to change all of them or simply press Enter to
accept these locations.

1. Installation base ($prefix) :
C:\Users\seld\Apps\Server\PHP\PEAR
2. Temporary directory for processing :
C:\Users\seld\Apps\Server\PHP\PEAR\tmp
3. Temporary directory for downloads :
C:\Users\seld\Apps\Server\PHP\PEAR\tmp
4. Binaries directory :
C:\Users\seld\Apps\Server\PHP\PEAR
5. PHP code directory ($php_dir) :
C:\Users\seld\Apps\Server\PHP\PEAR\pear
6. Documentation directory :
C:\Users\seld\Apps\Server\PHP\PEAR\docs
7. Data directory :
C:\Users\seld\Apps\Server\PHP\PEAR\data
8. User-modifiable configuration files directory :
C:\Users\seld\Apps\Server\PHP\PEAR\cfg
9. Public Web Files directory :
C:\Users\seld\Apps\Server\PHP\PEAR\www
10. Tests directory :
C:\Users\seld\Apps\Server\PHP\PEAR\tests
11. Name of configuration file :
C:\Users\seld\Apps\Server\PHP\PEAR\pear.ini
12. Path to CLI php.exe :
C:\Users\seld\Apps\Server\PHP\latest
1-12, 'all' or Enter to continue:

Beginning install...
Configuration written to
C:\Users\seld\Apps\Server\PHP\PEAR\pear.ini...
Initialized registry...
Preparing to install...
installing
phar://C:/Users/seld/Apps/Server/PHP/5.3.2/PEAR/go-pear.phar/PEAR/go-pear-tarballs/Archive_Tar-1.3.3.tar...
installing
phar://C:/Users/seld/Apps/Server/PHP/5.3.2/PEAR/go-pear.phar/PEAR/go-pear-tarballs/Console_Getopt-1.2.3.tar...
installing
phar://C:/Users/seld/Apps/Server/PHP/5.3.2/PEAR/go-pear.phar/PEAR/go-pear-tarballs/PEAR-1.9.0.tar...
installing
phar://C:/Users/seld/Apps/Server/PHP/5.3.2/PEAR/go-pear.phar/PEAR/go-pear-tarballs/Structures_Graph-1.0.2.tar...
installing
phar://C:/Users/seld/Apps/Server/PHP/5.3.2/PEAR/go-pear.phar/PEAR/go-pear-tarballs/XML_Util-1.2.1.tar...
install ok: channel://pear.php.net/Archive_Tar-1.3.3
install ok: channel://pear.php.net/Console_Getopt-1.2.3
install ok: channel://pear.php.net/Structures_Graph-1.0.2
install ok: channel://pear.php.net/XML_Util-1.2.1
install ok: channel://pear.php.net/PEAR-1.9.0
PEAR: Optional feature webinstaller available (PEAR's web-based
installer)
PEAR: Optional feature gtkinstaller available (PEAR's PHP-GTK-based
installer)
PEAR: Optional feature gtk2installer available (PEAR's PHP-GTK2-based
installer)
PEAR: To install optional features use "pear install
pear/PEAR#featurename"

** WARNING! Old version found at C:\Users\seld\Apps\Server\PHP\PEAR,
please remove it or be sure to use the new
c:\users\seld\apps\server\php\pear\pear.bat command

The 'pear' command is now at your service at
c:\users\seld\apps\server\php\pear\pear.bat




$ pear.bat config-show
CONFIGURATION (CHANNEL PEAR.PHP.NET):
=====================================
Auto-discover new Channels auto_discover <not set>
Default Channel default_channel pear.php.net
HTTP Proxy Server Address http_proxy <not set>
PEAR server [DEPRECATED] master_server pear.php.net
Default Channel Mirror preferred_mirror pear.php.net
Remote Configuration File remote_config <not set>
PEAR executables directory bin_dir
C:\Users\seld\Apps\Server\PHP\PEAR
PEAR documentation directory doc_dir C:\php5\pear\docs
PHP extension directory ext_dir ext
PEAR directory php_dir
C:\Users\seld\Apps\Server\PHP\PEAR\pear
PEAR Installer cache directory cache_dir
C:\Users\seld\pear\cache
PEAR configuration file cfg_dir C:\php5\pear\cfg
directory
PEAR data directory data_dir C:\php5\pear\data
PEAR Installer download download_dir
C:\Users\seld\pear\download
directory
PHP CLI/CGI binary php_bin
C:\Users\seld\Apps\Server\PHP\latest\php.exe
php.ini location php_ini <not set>
--program-prefix passed to php_prefix <not set>
PHP's ./configure
--program-suffix passed to php_suffix <not set>
PHP's ./configure
PEAR Installer temp directory temp_dir
C:\Users\seld\pear\temp
PEAR test directory test_dir C:\php5\pear\tests
PEAR www files directory www_dir C:\php5\pear\www
Cache TimeToLive cache_ttl 3600
Preferred Package State preferred_state stable
Unix file mask umask 0
Debug Log Level verbose 1
PEAR password (for password <not set>
maintainers)
Signature Handling Program sig_bin c:\gnupg\gpg.exe
Signature Key Directory sig_keydir C:\Windows\pearkeys
Signature Key Id sig_keyid <not set>
Package Signature Type sig_type gpg
PEAR username (for username <not set>
maintainers)
User Configuration File Filename C:\Windows\pear.ini
System Configuration File Filename C:\Windows\pearsys.ini

Expected result:
----------------
Paths should be kept as I specified them.

Actual result:
--------------
They use the default, *maybe* because it tries to read from
c:\Windows\pear.ini, and the file isn't there, but I'm not sure about
that.

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedMay 11, '10 at 11:28a
activeMay 11, '10 at 11:28a
posts1
users1
websitepear.php.net

1 user in discussion

J Boggiano: 1 post

People

Translate

site design / logo © 2022 Grokbase