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

ID: 13047
Comment by: php@pzystorm.de
Reported By: till at php dot net
Summary: PEAR fails to install *any* package
Status: Closed
Type: Bug
Package: PEAR
Operating System: FreeBSD
Package Version: 1.7.0
PHP Version: 5.2.3
Assigned To: timj
Roadmap Versions:
New Comment:

This issue seems to be very up to date and must be reopened.

Directly after the "make install" of php-5.3.6:
rm /root/.pearrc
/opt/php-5.3.6/bin/pear -vvv install apc

Warning: file_exists(): Unable to find the wrapper "channel" - did you
forget to enable it when you configured PHP? in
PEAR/Downloader/Package.php on line 1518

Warning: is_file(): Unable to find the wrapper "channel" - did you
forget to enable it when you configured PHP? in
PEAR/Downloader/Package.php on line 1528

Warning: is_file(): Unable to find the wrapper "channel" - did you
forget to enable it when you configured PHP? in
PEAR/Downloader/Package.php on line 1528
No releases available for package "pear.php.net/apc"
Cannot initialize 'channel://pear.php.net/apc', invalid or missing
package file
Package "channel://pear.php.net/apc" is not valid
install failed


# /opt/php-5.3.6/bin/pear -vvv upgrade PEAR
Nothing to upgrade
# /opt/php-5.3.6/bin/pear -vvv upgrade
Nothing to upgrade


I have no idea what to do.


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

[2008-02-03 09:45:30] dufuz

This bug has been fixed in CVS.

If this was a documentation problem, the fix will appear on pear.php.net
by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should
be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.

The problem was actually already fixed in CVS by Tim but for some reason
it wasn't synced into the REST file before the release even if it was
included in the release notes.

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

[2008-02-03 00:18:55] jausions

I don't know if it's related, but I had a similar problem with my own
PEAR channel as well (http://pear.11abacus.com) I was getting 404 errors
with PEAR 1.7.0 when trying to install/upgrade/anything remote.

It was working fine with pear.php.net channel, but once I removed the
duplicate "Host: " header sent by PEAR_REST::downloadHttp() (on line
325) in 1.7.0, I was able to install from my channel again.

I'm running my PEAR channel on Debian Sarge with Apache 2.2.3 and
Chiara_PEAR_Server_REST 1.8.0.

The 404 error was occurring regardless of the system I was running the
pear command (Windows XP or Debian)

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

[2008-02-02 15:32:52] till

I fixed it with "pear upgrade -f PEAR-1.7.0RC2". Since then it continues
to work as expected.

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

[2008-02-02 15:12:20] landure

Description:
------------
I can confirm this bug.

OS : Debian 4.0 Etch
PEAR version : 1.7.0

I've only got this problem with 1.7.0, before the same command was
working well.

here is what i get by trying to install imagick :

Test script:
---------------
pecl -vvv install imagick

Expected result:
----------------
Installed package.

Actual result:
--------------
Notice: file_exists(): Unable to find the wrapper "channel" - did you
forget to enable it when you configured PHP? in
PEAR/Downloader/Package.php on line 1414

Notice: is_file(): Unable to find the wrapper "channel" - did you forget
to enable it when you configured PHP? in PEAR/Downloader/Package.php on
line 1423

Notice: is_file(): Unable to find the wrapper "channel" - did you forget
to enable it when you configured PHP? in PEAR/Downloader/Package.php on
line 1423
No releases available for package "pecl.php.net/imagick"
Cannot initialize 'channel://pecl.php.net/imagick', invalid or missing
package file
Package "channel://pecl.php.net/imagick" is not valid
install failed

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

[2008-02-02 14:49:46] till

Here is another example:
pear upgrade Console_CommandLine
Failed to download pear/Console_CommandLine within preferred state
"stable", latest release is version 1.0.0RC1, stability "beta", use
"channel://pear.php.net/Console_CommandLine-1.0.0RC1" to install
Cannot initialize 'channel://pear.php.net/Console_CommandLine', invalid
or missing package file
Package "channel://pear.php.net/Console_CommandLine" is not valid
upgrade failed

Then:
pear upgrade Console_CommandLine-beta
downloading Console_CommandLine-1.0.0RC1.tgz ...
Starting to download Console_CommandLine-1.0.0RC1.tgz (24,096 bytes)
........done: 24,096 bytes
upgrade ok: channel://pear.php.net/Console_CommandLine-1.0.0RC1

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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://pear.php.net/bugs/bug.php?id=13047

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedAug 4, '11 at 8:18a
activeAug 4, '11 at 8:18a
posts1
users1
websitepear.php.net

1 user in discussion

Php: 1 post

People

Translate

site design / logo © 2022 Grokbase