Home » PEAR » PEAR » Bug #5729
pear upgrade -R /directory PEAR fails
Details
| Submitted | 2005-10-20 09:25 UTC |
|---|---|
| From | glen at uknetweb dot com |
| Status | Bogus |
| Package | PEAR |
| PHP Version | 4.3.8 |
| OS | Fedora |
| Roadmaps | (Not assigned) |
Comments
[2005-10-20 09:25 UTC] glen at uknetweb dot com
Description:
------------
pear upgrade -R /home/virtual/sitename/ PEAR
We have a dedicated server that uses separate pear installations.
PEAR 1.3.6 - PEAR 1.4.2
As root, I ran pear upgrade-all - fine.
I then needed to upgrade various packages for each website that runs it's own pear packages, but I have to do these as root.
I usually run pear upgrade -R /home/virtual/sitename PACKAGE
I did this for the PEAR package, but the installation failed and it resulted in the root version of pear being deleted.
Test script:
---------------
[root@pants root]pear list-upgrades
Available Upgrades (stable):
============================
Package Local Remote Size
PEAR 1.4.0 (stable) 1.4.2 (stable) 265kB
XML_Parser 1.2.6 (stable) 1.2.7 (stable) 12.7kB
XML_RPC 1.4.2 (stable) 1.4.4 (stable) 24kB
[root@pants root]pear upgrade -R /home/virtual/sitename/ PEAR
Expected result:
----------------
upgrading ...
Actual result:
--------------
[root@pants root] pear upgrade -R /home/virtual/sitename/ PEAR
WARNING: channel "pear.php.net" has updated its protocols, use "channel-update pear.php.net" to update
downloading PEAR-1.4.2.tgz ...
Starting to download PEAR-1.4.2.tgz (270,370 bytes)
.........................................................done: 270,370 bytes
downloading XML_RPC-1.4.3.tgz ...
Starting to download XML_RPC-1.4.3.tgz (27,198 bytes)
...done: 27,198 bytes
upgrade ok: channel://pear.php.net/XML_RPC-1.4.3
upgrade failed
[root@vi-ads-1062 root]# pear list
-bash: /usr/bin/pear: No such file or directory