matsuu / ansible-isucon

Ansible playbooks for ISUCON
http://d.hatena.ne.jp/tmatsuu/20150815/1439643715
MIT License
75 stars 81 forks source link

isucon5q PHPのインストールが失敗する #10

Closed saboyutaka closed 7 years ago

saboyutaka commented 7 years ago

https://github.com/matsuu/azure-isucon-templates/tree/master/isucon5-qualifierDeploy to Azure でデプロイしようとするとprovisioningが失敗しました。

tail -f /var/log/cloud-init-output.log

fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["/home/isucon/.xbuild/php-install", "5.6.13", "/home/isucon/.local/php", "--", "--with-pear", "--with-openssl"], "delta": "0:00:30.165388", "end": "2017-08-01 21:48:17.316274", "failed": true, "rc": 1, "start": "2017-08-01 21:47:47.150886", "stderr": "", "stdout": "Start to build php 5.6.13 ...\nphp-build failed. see log: /tmp/isucon-php-install.log", "stdout_lines": ["Start to build php 5.6.13 ...", "php-build failed. see log: /tmp/isucon-php-install.log"], "warnings": []}

/tmp/isucon-php-install.log

[Info]: Loaded extension plugin
[Info]: Loaded apc Plugin.
[Info]: Loaded composer Plugin.
[Info]: Loaded github Plugin.
[Info]: Loaded uprofiler Plugin.
[Info]: Loaded xdebug Plugin.
[Info]: Loaded xhprof Plugin.
[Info]: Loaded zendopcache Plugin.
[Info]: php.ini-production gets used as php.ini
[Info]: Building 5.6.13 into /home/isucon/.local/php
[Downloading]: https://secure.php.net/distributions/php-5.6.13.tar.bz2
[Preparing]: /tmp/php-build/source/5.6.13

-----------------
|  BUILD ERROR  |
-----------------

Here are the last 10 lines from the log:

-----------------------------------------
shtool:echo:Warning: unable to determine terminal sequence for bold mode
shtool:echo:Warning: unable to determine terminal sequence for bold mode
configure: WARNING: This bison version is not supported for regeneration of the Zend/PHP parsers (found: 3.0, min: 204, excluded: 3.0).
configure: error: Please reinstall the BZip2 distribution
-----------------------------------------

The full Log is available at '/tmp/php-build.5.6.13.20170801214748.log'.
[Warn]: Aborting build.

configure: error: Please reinstall the BZip2 distribution と出ます。

解決策

00_devel.ymllibbz2-dev を追記することでprovisioningが成功することが確認できました。

正しい解決策なのか確信がないのでissueにしておきました。よろしくお願いします。

matsuu commented 7 years ago

deployで使ってたのがisucon5-qualifierブランチだったので、masterブランチに修正しました。これで解決したと思いますのでご確認頂けますとー 🙇

saboyutaka commented 7 years ago

@matsuu https://github.com/matsuu/azure-isucon-templates/tree/master/isucon5-qualifier のDeploy to Azure でデプロイが失敗するようになってしまいました 💦 こちらの環境が原因かもしれないですが確認していただけますでしょうか? 💦

matsuu commented 7 years ago

ありゃ、手元でやってみましたが失敗しないっすね。西日本リージョン、リソースグループは新規作成で試してみました。 よろしければエラーメッセージもしくはエラーのスクリーンショットを見せていただいてもいいですかね?

saboyutaka commented 7 years ago

@matsuu Deploy to Azure うまくいくことが確認できました!ありがとうございます 🙇‍♀️

matsuu commented 7 years ago

🙇