Fixing “unsupported protocol”
Some PEAR installations on PHP 5.2.9 and 5.2.10 seem to be corrupted. When trying to install something, you will get the error:
pear.php.net is using a unsupported protocal – This should never happen. install failed
This problem comes from corrupted channel files. Go into your PEAR php directory and backup .channels directory:
cd `pear config-get php_dir`
mv .channels .channels-broken
pear update-channels
This means you lost all your channels except for the default ones (pear, pecl, doc and __uri) – but at least you do not have to re-install PEAR.
Sorry for the inconvenience.
August 28th, 2009 at 07:02
[...] message when working with the PEAR installation on your PHP instance, you should check out this quick post from the PEAR blog with a tip on how to fix it. When trying to install something, you will get [...]
August 28th, 2009 at 09:04
[...] message when working with the PEAR installation on your PHP instance, you should check out this quick post from the PEAR blog with a tip on how to fix it. When trying to install something, you will get [...]
August 30th, 2009 at 11:39
Very nice indeed…what about those?
Hi, please let me know where I can post this issue and if further info required.
#pear upgrade PEAR
downloading PEAR-1.8.1.tgz …
Starting to download PEAR-1.8.1.tgz (290,382 bytes)
…………………………………………done: 290,382 bytes
Warning: mkdir(): File exists in System.php on line 277
Warning: mkdir(): File exists in /usr/share/php/System.php on line 277
ERROR: failed to mkdir /usr/share/php/doc/PEAR
September 7th, 2009 at 12:27
thx very much!
September 20th, 2009 at 07:53
[...] Official solution is easier – just remove .channels directory and run pear update-channels [...]
October 17th, 2009 at 07:35
[...] Egy gyors keresés után meg is találtam a megoldást. [...]
October 17th, 2009 at 05:17
Where do we submit a bug report for that spelling of “protocal”? Or is that intentional?
October 29th, 2009 at 05:48
[...] этому подвержены PHP 5.2.9 и 5.2.10, но я столкнулся на 5.2.11. Официальное решение [...]