2017-01-31 1 views
1

経由でCASをインストールしようとしたとき、私はPEAR 最新の安定版(現在1.3.4)ではPHP CAS as described on their websitephp_network_getaddressエラーPEAR

をインストールする手順以下のよ:新しい

 pear install https://developer.jasig.org/cas-clients/php/current.tgz 
をインストールする を

しかし、私はこのエラーを取得する

$> sudo pear install https://developer.jasig.org/cas-clients/php/current.tgz 
downloading current.tgz ... 
Starting to download current.tgz (96,108 bytes) 
.....................done: 96,108 bytes 
Connection to `__uri:443' failed: php_network_getaddresses: getaddrinfo failed: Name or service not known 

私はいくつかのグーグルを行い、PEARに関してはphp_network_getaddressesについて何も見つかりませんでした。

マイカールまたは(PEARが使用する方)wgetのライブラリは罰金だ:

$> wget https://developer.jasig.org/cas-clients/php/current.tgz 
--2017-01-31 21:13:12-- https://developer.jasig.org/cas-clients/php/current.tgz 
Resolving developer.jasig.org (developer.jasig.org)... 199.119.127.181 
Connecting to developer.jasig.org (developer.jasig.org)|199.119.127.181|:443... connected. 
HTTP request sent, awaiting response... 200 OK 
Length: 96108 (94K) [application/x-gzip] 
Saving to: ‘current.tgz’ 

100%[=====================================================================================================================================================================>] 96,108  537KB/s in 0.2s 

2017-01-31 21:13:13 (537 KB/s) - ‘current.tgz’ saved [96108/96108] 

$> curl -O https://developer.jasig.org/cas-clients/php/current.tgz 
    % Total % Received % Xferd Average Speed Time Time  Time Current 
           Dload Upload Total Spent Left Speed 
100 96108 100 96108 0  0 104k  0 --:--:-- --:--:-- --:--:-- 104k 

どのように私は、このエラーのトラブルシューティングを行うことができますか?

$> pear -V 
PEAR Version: 1.10.1 
PHP Version: 5.6.29 
Zend Engine Version: 2.6.0 
Running on: Linux hostname 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 19 22:10:57 UTC 2015 x86_64 

答えて

1

私のセットアップでこのパッケージをインストールしようとしましたが、同じエラーが発生しました。パッケージ自体に何かが間違っている可能性があります。 ファイルをダウンロードし、ローカルソースからインストールしてください。

[[email protected] ~]$ pear install https://developer.jasig.org/cas-clients/php/current.tgz 
downloading current.tgz ... 
Starting to download current.tgz (96,108 bytes) 
.....................done: 96,108 bytes 
Connection to `__uri:443' failed: php_network_getaddresses: getaddrinfo failed: Name or service not known 
[[email protected] ~]$ pear install http://developer.jasig.org/cas-clients/php/current.tgz 
downloading current.tgz ... 
Starting to download current.tgz (96,108 bytes) 
.....................done: 96,108 bytes 
Connection to `__uri:443' failed: php_network_getaddresses: getaddrinfo failed: Name or service not known 
[[email protected] ~]$ pear install developer.jasig.org/cas-clients/php/current.tgz 
Attempting to discover channel "developer.jasig.org/cas-clients/php"... 
Attempting fallback to https instead of http on channel "developer.jasig.org/cas-clients/php"... 
unknown channel "developer.jasig.org/cas-clients/php" in "developer.jasig.org/cas-clients/php/current.tgz" 
invalid package name/package file "developer.jasig.org/cas-clients/php/current.tgz" 
install failed 
[[email protected] ~]$ wget developer.jasig.org/cas-clients/php/current.tgz 
--2017-01-31 16:27:15-- http://developer.jasig.org/cas-clients/php/current.tgz 
Resolving developer.jasig.org (developer.jasig.org)... 199.119.127.181 
Connecting to developer.jasig.org (developer.jasig.org)|199.119.127.181|:80... connected. 
HTTP request sent, awaiting response... 200 OK 
Length: 96108 (94K) [application/x-gzip] 
Saving to: ‘current.tgz’ 

current.tgz       100%[================================================================>] 93.86K 325KB/s in 0.3s  

2017-01-31 16:27:15 (325 KB/s) - ‘current.tgz’ saved [96108/96108] 

[[email protected] ~]$ sudo pear install current.tgz 
install ok: channel://__uri/CAS-1.3.4 
[[email protected] ~]$