AWS是否从存储库提供PEAR包管理器安装?

时间:2011-12-26 14:18:10

标签: php amazon-ec2 amazon-web-services pear

AWS是否从存储库提供了pear package manager安装?

如果AWS提供,包名称是什么?否则请在linux上安装PEAR安装指针。

 #pear channel-discover pear.amazonwebservices.com
 bash: pear: command not found

 # yum install pear
 Loaded plugins: fastestmirror, priorities, security, update-motd
 Loading mirror speeds from cached hostfile
 * amzn-main: packages.us-east-1.amazonaws.com
 * amzn-updates: packages.us-east-1.amazonaws.com
 Setting up Install Process
 No package pear available.
 Error: Nothing to do

2 个答案:

答案 0 :(得分:10)

您可以使用两个命令在系统上安装pear:

$ wget http://pear.php.net/go-pear.phar
$ php go-pear.phar

答案 1 :(得分:4)

我知道这是一个老问题,但对于那些通过谷歌遇到它的人,我可以找到有关如何在amazon's php pear page上通过梨安装aws sdk的详细信息

基本上你执行以下操作:

pear channel-discover pear.amazonwebservices.com

pear install aws/sdk