pear does not respect directories in pear.ini
[email protected] (MC)
| Newsgroups | php.pear.general |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I have installed PEAR on PHP 5.4 using go-pear.phar command and chosen
the following directories (pear.ini is stored in D:\PF\PHP\pear.ini):
------
#PEAR_Config 0.9
a:12:{s:15:"preferred_state";s:6:"stable";s:8:"temp_dir";s:13:"d:\PF\PHP\tmp";s:12:"download_dir";s:13:"d:\PF\PHP\tmp";s:7:"bin_dir";s:9:"d:\PF\PHP";s:7:"php_dir";s:14:"d:\PF\PHP\pear";s:7:"doc_dir";s:14:"d:\PF\PHP\docs";s:8:"data_dir";s:14:"d:\PF\PHP\data";s:7:"cfg_dir";s:13:"d:\PF\PHP\cfg";s:7:"www_dir";s:12:"D:\WWWPages\";s:8:"test_dir";s:15:"d:\PF\PHP\tests";s:7:"php_bin";s:17:"d:\PF\PHP\php.exe";s:10:"__channels";a:3:{s:5:"__uri";a:0:{}s:11:"doc.php.net";a:0:{}s:12:"pecl.php.net";a:0:{}}}
------
However, when I use "pear channel-discover" or "pear install" commands
it uses the default directories instead of the one specified in
pear.ini. See the examples bellow.
How to fix it?
Thanks,
MC
-------------------
d:\PF\PHP>pear channel-discover pear.symfony.com
PEAR_Config::writeConfigFile fopen('C:\Windows\pear.ini','w') failed
(fopen(C:\W
indows\pear.ini): failed to open stream: Permission denied)
-------------------
d:\PF\PHP>pear install channel://pear.phpunit.de/PHPUnit
Unknown remote channel: pear.symfony.com
Did not download optional dependencies: phpunit/PHP_Invoker, use
--alldeps to do
wnload automatically
phpunit/PHPUnit requires package "channel://pear.symfony.com/Yaml"
(version >= 2
.1.0, version <= 2.1.99)
phpunit/PHPUnit can optionally use package "phpunit/PHP_Invoker"
(version >= 1.1
.0, version <= 1.1.99)
phpunit/PHPUnit_MockObject can optionally use PHP extension "soap"
downloading File_Iterator-1.3.3.tgz ...
Starting to download File_Iterator-1.3.3.tgz (5,152 bytes)
.....done: 5,152 bytes
downloading Text_Template-1.1.4.tgz ...
Starting to download Text_Template-1.1.4.tgz (3,701 bytes)
...done: 3,701 bytes
downloading PHP_CodeCoverage-1.2.8.tgz ...
Starting to download PHP_CodeCoverage-1.2.8.tgz (159,290 bytes)
...done: 159,290 bytes
downloading PHP_Timer-1.0.4.tgz ...
Starting to download PHP_Timer-1.0.4.tgz (3,694 bytes)
...done: 3,694 bytes
downloading PHPUnit_MockObject-1.2.3.tgz ...
Starting to download PHPUnit_MockObject-1.2.3.tgz (20,390 bytes)
...done: 20,390 bytes
downloading PHP_TokenStream-1.1.5.tgz ...
Starting to download PHP_TokenStream-1.1.5.tgz (9,859 bytes)
...done: 9,859 bytes
ERROR: failed to mkdir C:\php\pear\docs\File_Iterator
ERROR: failed to mkdir C:\php\pear\docs\Text_Template
ERROR: failed to mkdir C:\php\pear\docs\PHP_Timer
ERROR: failed to mkdir C:\php\pear\docs\PHP_TokenStream
ERROR: failed to mkdir C:\php\pear\docs\PHP_CodeCoverage
ERROR: failed to mkdir C:\php\pear\docs\PHPUnit_MockObject