theseer / Autoload

A lightweight php namespace aware autoload generator and phar archive builder
Other
388 stars 47 forks source link

PEAR install procedure doesn't work #23

Closed ywarnier closed 12 years ago

ywarnier commented 12 years ago

The install guide recommends installing through the PEAR repository, but this is how it works for me:

root@local:~# pear channel-discover pear.netpirates.net Adding Channel "pear.netpirates.net" succeeded Discovery of channel "pear.netpirates.net" succeeded root@local:~# pear channel-discover components.ez.no Channel "components.ez.no" is already initialized root@local:~# pear install theseer/Autoload Package "Autoload" does not have REST info xml available install failed

I guess there's only one tiny bit missing, but still, it's a bit frustrating...

theseer commented 12 years ago

Thank you for your time and reporting this issue. Problem for me though is, i cannot reproduce it:

[theseer@rikka ~]$ sudo pear channel-discover pear.netpirates.net Channel "pear.netpirates.net" is already initialized

[theseer@rikka ~]$ sudo pear install theseer/Autoload downloading Autoload-1.6.0.tgz ... Starting to download Autoload-1.6.0.tgz (11,138 bytes) .....done: 11,138 bytes install ok: channel://pear.netpirates.net/Autoload-1.6.0

So, works for me. As a side note: The pear server is "run" by pirum, so unless there's a bug in it, it should simply work.

theseer commented 12 years ago

I just upgraded the server to pirum 1.0.4 - maybe that fixes your issue.

edorian commented 12 years ago

I had the same issue with another server where the upgrade fixed it

ywarnier commented 12 years ago

Hi guys,

It seems to work now. Thanks.

I had a temporary issue though, just so you know because I guess you can make more out of it than I can (it's fixed after executing the command once more as follows):

$ sudo pear install theseer/Autoload PHP Fatal error: Cannot use object of type PEAR_Error as array in /usr/share/php/PEAR/REST/10.php on line 295 PHP Stack trace: PHP 1. {main}() /usr/share/php/pearcmd.php:0 PHP 2. PEAR_Command_Common->run() /usr/share/php/pearcmd.php:305 PHP 3. PEAR_Command_Install->doInstall() /usr/share/php/PEAR/Command/Common.php:271 PHP 4. PEAR_Downloader->download() /usr/share/php/PEAR/Command/Install.php:661 PHP 5. PEAR_Downloader_Package->detectDependencies() /usr/share/php/PEAR/Downloader.php:392 PHP 6. PEAR_Downloader_Package->_detect2() /usr/share/php/PEAR/Downloader/Package.php:381 PHP 7. PEAR_Downloader_Package->_detect2Dep() /usr/share/php/PEAR/Downloader/Package.php:457 PHP 8. PEAR_Downloader->_getDepPackageDownloadUrl() /usr/share/php/PEAR/Downloader/Package.php:639 PHP 9. PEAR_REST_13->getDepDownloadURL() /usr/share/php/PEAR/Downloader.php:1008 PHP 10. PEAR_REST_10->_returnDownloadURL() /usr/share/php/PEAR/REST/13.php:297

$ sudo pear config-set auto_discover 1 config-set succeeded

$ sudo pear install pear.phpqatools.org/phpqatools PHPDocumentor Attempting to discover channel "pear.phpqatools.org"... downloading channel.xml ... Starting to download channel.xml (859 bytes) ....done: 859 bytes Auto-discovered channel "pear.phpqatools.org", alias "phpqatools", adding to registry Did not download optional dependencies: pear/XML_Beautifier, use --alldeps to download automatically Attempting to discover channel "pear.phpunit.de"... downloading channel.xml ... Starting to download channel.xml (804 bytes) ...done: 804 bytes Auto-discovered channel "pear.phpunit.de", alias "phpunit", adding to registry Package "PHPUnit" Version "3.6.4" does not have REST xml available Attempting to discover channel "pear.pdepend.org"... Attempting fallback to https instead of http on channel "pear.pdepend.org"... downloading channel.xml ... Starting to download channel.xml (812 bytes) ...done: 812 bytes Auto-discovered channel "pear.pdepend.org", alias "pdepend", adding to registry Attempting to discover channel "pear.phpmd.org"... downloading channel.xml ... Starting to download channel.xml (811 bytes) ...done: 811 bytes Auto-discovered channel "pear.phpmd.org", alias "phpmd", adding to registry Package "pear.phpqatools.org/phpqatools" dependency "pear.phpmd.org/PHP_PMD" has no releases Did not download optional dependencies: pecl/imagick, use --alldeps to download automatically Package "pear.phpunit.de/phpcpd" dependency "pear.phpunit.de/File_Iterator" has no releases Package "PHP_Timer" Version "1.0.2" does not have REST dependency information available Attempting to discover channel "components.ez.no"... downloading channel.xml ... Starting to download channel.xml (591 bytes) ...done: 591 bytes Auto-discovered channel "components.ez.no", alias "ezc", adding to registry Package "pear.phpunit.de/phploc" dependency "pear.phpunit.de/File_Iterator" has no releases PHP Fatal error: Cannot use object of type PEAR_Error as array in /usr/share/php/PEAR/REST/10.php on line 295 PHP Stack trace: PHP 1. {main}() /usr/share/php/pearcmd.php:0 PHP 2. PEAR_Command_Common->run() /usr/share/php/pearcmd.php:305 PHP 3. PEAR_Command_Install->doInstall() /usr/share/php/PEAR/Command/Common.php:271 PHP 4. PEAR_Downloader->download() /usr/share/php/PEAR/Command/Install.php:661 PHP 5. PEAR_Downloader_Package->mergeDependencies() /usr/share/php/PEAR/Downloader.php:415 PHP 6. PEAR_Downloader_Package->detectDependencies() /usr/share/php/PEAR/Downloader/Package.php:1455 PHP 7. PEAR_Downloader_Package->_detect2() /usr/share/php/PEAR/Downloader/Package.php:381 PHP 8. PEAR_Downloader_Package->_detect2Dep() /usr/share/php/PEAR/Downloader/Package.php:457 PHP 9. PEAR_Downloader->_getDepPackageDownloadUrl() /usr/share/php/PEAR/Downloader/Package.php:639 PHP 10. PEAR_REST_13->getDepDownloadURL() /usr/share/php/PEAR/Downloader.php:1008 PHP 11. PEAR_REST_10->_returnDownloadURL() /usr/share/php/PEAR/REST/13.php:297

$ sudo pear channel-discover components.ez.no Channel "components.ez.no" is already initialized

$ sudo pear install theseer/Autoload downloading Autoload-1.6.0.tgz ... Starting to download Autoload-1.6.0.tgz (11,138 bytes) .....done: 11,138 bytes downloading DirectoryScanner-1.1.0.tgz ... Starting to download DirectoryScanner-1.1.0.tgz (3,644 bytes) ...done: 3,644 bytes downloading ConsoleTools-1.6.1.tgz ... Starting to download ConsoleTools-1.6.1.tgz (869,994 bytes) ...done: 869,994 bytes downloading Base-1.8.tgz ... Starting to download Base-1.8.tgz (236,357 bytes) ...done: 236,357 bytes install ok: channel://pear.netpirates.net/DirectoryScanner-1.1.0 install ok: channel://components.ez.no/Base-1.8 install ok: channel://components.ez.no/ConsoleTools-1.6.1 install ok: channel://pear.netpirates.net/Autoload-1.6.0

$