[memo] phpenv install で curl: (18) transfer closed with xxxxxxx bytes remaining to read となり [Warn]: Aborting build. が頻発する場合
その場凌ぎ
力技とも言う
[zunermuka ~]$ phpenv install 5.4.22
[Info]: Loaded apc Plugin.
[Info]: Loaded pyrus Plugin.
[Info]: Loaded xdebug Plugin.
[Info]: Loaded xhprof Plugin.
[Info]: php.ini-production gets used as php.ini
[Info]: Building 5.4.22 into /Users/zunermuka/.phpenv/versions/5.4.22
[Downloading]: http://php.net/distributions/php-5.4.22.tar.bz2
-----------------
| BUILD ERROR |
-----------------
Here are the last 10 lines from the log:
-----------------------------------------
curl: (18) transfer closed with 11686929 bytes remaining to read
-----------------------------------------
The full Log is available at '/tmp/php-build.5.4.22.20131130102947.log'.
[Warn]: Aborting build.
何回か時間をおいて試しても埒が明かない。
要は取得先から何らかの原因で落としきれなくて build できないだけ。
検証のため心持ち急いでいたので
泥臭い手段だけれど、一時的に
http://php.net/distributions/php-5.4.22.tar.bz2 を近場の mirror 当たりに替えて凌げれば良い訳で
.phpenv/plugins/php-build/share/php-build/definitions/
配下の 該当バージョンの
install_package "" 内を置換た。
[zunermuka ~]$ sed -i -e 's/http:\/\/php.net/http:\/\/jp2.php.net/' /Users/zunermuka/.phpenv/plugins/php-build/share/php-build/definitions/5.4.22
力技とも言う
[zunermuka ~]$ phpenv install 5.4.22
[Info]: Loaded apc Plugin.
[Info]: Loaded pyrus Plugin.
[Info]: Loaded xdebug Plugin.
[Info]: Loaded xhprof Plugin.
[Info]: php.ini-production gets used as php.ini
[Info]: Building 5.4.22 into /Users/zunermuka/.phpenv/versions/5.4.22
[Downloading]: http://php.net/distributions/php-5.4.22.tar.bz2
-----------------
| BUILD ERROR |
-----------------
Here are the last 10 lines from the log:
-----------------------------------------
curl: (18) transfer closed with 11686929 bytes remaining to read
-----------------------------------------
The full Log is available at '/tmp/php-build.5.4.22.20131130102947.log'.
[Warn]: Aborting build.
何回か時間をおいて試しても埒が明かない。
要は取得先から何らかの原因で落としきれなくて build できないだけ。
検証のため心持ち急いでいたので
泥臭い手段だけれど、一時的に
http://php.net/distributions/php-5.4.22.tar.bz2 を近場の mirror 当たりに替えて凌げれば良い訳で
.phpenv/plugins/php-build/share/php-build/definitions/
配下の 該当バージョンの
install_package "" 内を置換た。
[zunermuka ~]$ sed -i -e 's/http:\/\/php.net/http:\/\/jp2.php.net/' /Users/zunermuka/.phpenv/plugins/php-build/share/php-build/definitions/5.4.22
コメント