Amazon S3 instructions require the following PEAR packages:HMAC, HTTP_Request, Net_Socket, and Net_URL. After my problems with PEAR in SuSE 10.0, I want good notes of what I did here:
- All commands run as root.
pear remote-list
WARNING: channel “pear.php.net” has updated its protocols, use “channel-update pear.php.net” to update.pear update-channels– successful.pear info <pkg>– always responded “No information found for ‘pkg’. I tried both installed packages and the packages I wanted to install.pear remote-list– listed available packages and Net_Socket was not listed, even though I could see it on the PEAR web site.pear install HTTP_Request–
install ok: channel://pear.php.net/Net_Socket-1.0.6
install ok: channel://pear.php.net/Net_URL-1.0.14
install ok: channel://pear.php.net/HTTP_Request-1.4.0pear info HTTP_Request– now it lists information about this package. Something isn’t working; I certainly should be able to get info about a package before installing.pear list–
Installed packages, channel pear.php.net:
Package Version State
Archive_Tar 1.3.1 stable
Console_Getopt 1.2 stable
Crypt_HMAC 1.0.1 stable
HTTP_Request 1.4.0 stable
Net_Socket 1.0.6 stable
Net_URL 1.0.14 stable
PEAR 1.4.11 stable- This shows another problem. YaST offered a few PEAR packages at install time and I selected a few including PEAR::DB. The DB package appears in /usr/share/php5/PEAR along with Archive Tar and Console Getopt, yet is not listed above. Why not?
pear run-tests -pr Crypt_HMAC– “running 0 tests”, even though HMAC has a test.php file under the test subdirectory. So I don’t understand this command either.
This worked outstanding!! Thanks for the info
Shane Cauley Cheyenne
Link | February 25th, 2010 at 3:51 pm