Upgrading PEAR from 1.9.0 to 1.9.1 fails
Posted
by
Skelton
on Server Fault
See other posts from Server Fault
or by Skelton
Published on 2010-09-26T06:36:24Z
Indexed on
2011/01/11
2:55 UTC
Read the original article
Hit count: 470
Hi All,
I'm willing to install phpunit 5.3 with MAMP 1.9 and there for I need to upgrade PEAR to version 1.9.1. The current version installed is 1.9.0.
When I try the to upgrade I get the following:
sudo pear channel-update pear.php.net
sudo pear upgrade pear
Could not get contents of package "/Applications/MAMP/bin/php5.3/bin/pear". Invalid tgz file.
upgrade failed
When I force the upgrade It still doesn't work:
sudo pear upgrade --force PEAR
downloading PEAR-1.9.1.tgz ...
Starting to download PEAR-1.9.1.tgz (293,587 bytes)
.............................................................done: 293,587 bytes
upgrade ok: channel://pear.php.net/PEAR-1.9.1
PEAR: Optional feature webinstaller available (PEAR's web-based installer)
PEAR: Optional feature gtkinstaller available (PEAR's PHP-GTK-based installer)
PEAR: Optional feature gtk2installer available (PEAR's PHP-GTK2-based installer)
PEAR: To install optional features use "pear install pear/PEAR#featurename"
sudo pear -V
PEAR Version: 1.9.0
As bindbn suggested:
sudo pear install --offline /Users/tom/Downloads/PEAR-1.9.1.tgz
Ignoring installed package pear/PEAR
Nothing to install
sudo pear upgrade --force --alldeps PEAR
downloading PEAR-1.9.1.tgz ...
Starting to download PEAR-1.9.1.tgz (293,587 bytes)
.............................................................done: 293,587 bytes
upgrade ok: channel://pear.php.net/PEAR-1.9.1
PEAR: Optional feature webinstaller available (PEAR's web-based installer)
PEAR: Optional feature gtkinstaller available (PEAR's PHP-GTK-based installer)
PEAR: Optional feature gtk2installer available (PEAR's PHP-GTK2-based installer)
PEAR: To install optional features use "pear install pear/PEAR#featurename"
pear -V
PEAR Version: 1.9.0
I hope someone can figure this out! Thanks!
© Server Fault or respective owner