読者です 読者をやめる 読者になる 読者になる

kopug memo

名古屋で働くとあるWebエンジニアの覚書。

PEAR SOAPをインストールしてみる。

$ sudo pear install SOAP

No release with state equal to: 'stable' found for 'SOAP'

安定版がない。これpearの公式みてきたけど全バージョンがbetaなんだよね。
仕方が無いので、フォースインストール

$ sudo pear install -f SOAP

Warning: SOAP is state 'beta' which is less stable than state 'stable'
downloading SOAP-0.11.0.tgz ...
Starting to download SOAP-0.11.0.tgz (69,948 bytes)
.................done: 69,948 bytes
No handlers for package.xml version 2.0

今度はpearのバージョンが古くて、package.xml 2.0が使えないらしい。
pearをアップグレード。

$ sudo pear upgrade PEAR

downloading PEAR-1.6.1.tgz ...
Starting to download PEAR-1.6.1.tgz (295,780 bytes)
..........................................done: 295,780 bytes
requires package `PEAR' >= 1.3.3
requires package `Archive_Tar' >= 1.3.1
requires package `Structures_Graph' >= 1.0.2
PEAR: Dependencies failed

依存関係キター。 -a で丸ごとインストールを試みる

$ sudo pear upgrade -af PEAR

downloading PEAR-1.6.1.tgz ...
Starting to download PEAR-1.6.1.tgz (295,780 bytes)
..............................done: 295,780 bytes
downloading Archive_Tar-1.3.2.tgz ...
Starting to download Archive_Tar-1.3.2.tgz (17,150 bytes)
...done: 17,150 bytes
downloading Structures_Graph-1.0.2.tgz ...
Starting to download Structures_Graph-1.0.2.tgz (30,947 bytes)
...done: 30,947 bytes
downloading XML_RPC-1.5.1.tgz ...
Starting to download XML_RPC-1.5.1.tgz (32,215 bytes)
...done: 32,215 bytes
Release for 'pear'      Release for 'pear' dependency
dependency              'PEAR_Frontend_Gtk' has state 'beta', requires
'PEAR_Frontend_Web' has 'stable'
state 'beta', requires
'stable'
upgrade failed

個別でいれることに。

$ sudo pear upgrade -a http://download.pear.php.net/package/PEAR-1.3.6.tgz
$ sudo pear upgrade Archive_Tar
$ sudo pear upgrade Structures_Graph
$ sudo pear upgrade PEAR

downloading PEAR-1.6.1.tgz ...
Starting to download PEAR-1.6.1.tgz (295,780 bytes)
.............................................................done: 295,780 bytes
Optional dependencies:
package `PEAR_Frontend_Web' version >= 0.5.0 is recommended to utilize some features.
package `PEAR_Frontend_Gtk' version >= 0.4.0 is recommended to utilize some features.
upgrade ok: PEAR 1.6.1

なんか言われたけど無視してみる。ここで本命のSOAPをインストール

$ sudo pear install -f SOAP

WARNING: failed to download pear.php.net/SOAP within preferred state "stable", will instead d                                                                                       ownload version 0.11.0, stability "beta"
WARNING: channel "pear.php.net" has updated its protocols, use "channel-update pear.php.net"                                                                                        to update
Did not download optional dependencies: pear/Mail, pear/Mail_Mime, pear/Net_DIME, use --allde                                                                                       ps to download automatically
WARNING: "pear/Net_URL" is deprecated in favor of "pear/Net_URL2"
pear/SOAP can optionally use package "pear/Mail_Mime"
pear/SOAP can optionally use package "pear/Net_DIME"
warning: pear/HTTP_Request requires package "pear/Net_Socket" (version >= 1.0.2), installed v                                                                                       ersion is 1.0.1
downloading SOAP-0.11.0.tgz ...
Starting to download SOAP-0.11.0.tgz (69,948 bytes)
.................done: 69,948 bytes
downloading HTTP_Request-1.4.1.tgz ...
Starting to download HTTP_Request-1.4.1.tgz (15,927 bytes)
...done: 15,927 bytes
downloading Net_URL-1.0.15.tgz ...
Starting to download Net_URL-1.0.15.tgz (6,303 bytes)
...done: 6,303 bytes
install ok: channel://pear.php.net/Net_URL-1.0.15
install ok: channel://pear.php.net/HTTP_Request-1.4.1
install ok: channel://pear.php.net/SOAP-0.11.0

とりあえずインストールはできたっぽい。