[AWS]AWS SDK for PHPのver1系をpearで入れる方法

普通にpear installしようとすると依存関係のエラーでこけてしまいました。
しかもこれだとversion2系を入れようとしてしまっているようです。
$ sudo pear channel-discover pear.amazonwebservices.com
Adding Channel "pear.amazonwebservices.com" succeeded
Discovery of channel "pear.amazonwebservices.com" succeeded
$ sudo pear install aws/sdk
Unknown remote channel: guzzlephp.org/pear
aws/sdk requires package "channel://guzzlephp.org/pear/Guzzle" (version >= 3.0.3)
No valid packages found
install failed
"pear -D auto_discover=1 install pear.amazonwebservices.com/sdk-1.6.0"
のようにするとうまく行きました。
$ sudo pear -D auto_discover=1 install pear.amazonwebservices.com/sdk-1.6.0
Attempting to discover channel "guzzlephp.org/pear"...
downloading channel.xml ...
Starting to download channel.xml (817 bytes)
....done: 817 bytes
Auto-discovered channel "guzzlephp.org/pear", alias "guzzle", adding to registry
Attempting to discover channel "pear.symfony.com"...
downloading channel.xml ...
Starting to download channel.xml (811 bytes)
...done: 811 bytes
Auto-discovered channel "pear.symfony.com", alias "symfony2", adding to registry
downloading sdk-1.6.0.tgz ...
Starting to download sdk-1.6.0.tgz (2,109,426 bytes)
...done: 2,109,426 bytes
downloading Guzzle-3.1.2.tgz ...
Starting to download Guzzle-3.1.2.tgz (290,301 bytes)
...done: 290,301 bytes
downloading EventDispatcher-2.1.7.tgz ...
Starting to download EventDispatcher-2.1.7.tgz (11,110 bytes)
...done: 11,110 bytes
install ok: channel://pear.amazonwebservices.com/sdk-1.6.0
install ok: channel://pear.symfony.com/EventDispatcher-2.1.7
install ok: channel://guzzlephp.org/pear/Guzzle-3.1.2
GuzzleだのEventDispatcherだの、Ver1系では使わなそうなものも一緒に入ってしまいましたが気にしないことにします。
カテゴリ:

人気記事