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.
Pingback: PEAR Blog: Fixing “unsupported protocol” | Webs Developer
Pingback: PEAR Blog: Fixing "unsupported protocol" | PHP
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
thx very much!
Pingback: PHP 5.2.10 comes with a broken PEAR
Pingback: PEAR channel probléma php 5.2.9 felett « blerou szerszámosládája
Where do we submit a bug report for that spelling of “protocal”? Or is that intentional?
Pingback: pear.php.net is using a unsupported protocal « Механический мир
Problem solver in OpenSUSE 11.1 fresh install« when comes to update pear modules.
Pingback: 骚客’s Blog » Blog Archive » Reverting PHP 5.3 to 5.2.10 on Snow Leopard (资料收集)
Pingback: instalacja modułów z PECL’a na przykładzie xdebug’a « Michał Prochowski
Pingback: Rootz.de - PHP-Pear: Warning: mkdir(): File exists in System.php on line 277
8 months and still one gets this error, with “pecl upgrade” for example, using latest PHP 5.3 checkout. 😀
This should never happen.
Oh, really?
Seems it is a long reported issue to me…
Anyway, Another issue: Your solution does not work: The exact same directory is immediately created after the following command:
sudo pear update-channels
(Ubuntu 10.04 64bit)
I just ran into this error message with ‘pecl upgrade’. The solution was to run ‘pear upgrade’ first, then ‘pecl upgrade’ worked after that.
@Becky way to go. You solved my issue on RHEL6 using remi and remi-test repos. Pear needed to be upgraded first.