LoginSignup
6
6

More than 5 years have passed since last update.

ドットインストールのローカル開発環境構築でchef/centos-6.5を実行できない

Last updated at Posted at 2015-08-29

vagrant init chef/centos-6.5を実行できない

ドットインストールのローカル開発環境の構築 [MacOS X編]を進めていたところ、タイトルのところで詰まりました。

https://atlas.hashicorp.com/chef/boxes/centos-6.5
にアクセスすると404エラーとなり、ファイルが無くなったようです。
https://atlas.hashicorp.com/bento/
chefの代わりにこちらのURLでbentoのvagrant boxを入手できますが、残念ながらcentos6.5のBOXはありません。

そこで試しにbento/centos7.1をvagrant initしてみました。ですが、ドットインストールの後の行程でPHPやMySQLをインストールするためのシェルスクリプトが、centos7.1ではうまく動作しませんでした。やはりcentos6.5を入れるしかなさそうです。

「公式以外の野良boxを使うのは怖い」みたいなコメントを横目にしつつ、検索上位にでてきた
http://www.vagrantbox.es
の CentOS 6.5 x86_64 を入れます。
vagrant box add centos6.5 https://github.com/2creatives/vagrant-centos/releases/download/v6.5.3/centos65-x86_64-20140116.box

Vagrantfileが作られないのが気になりましたが、vagrant upします。あとはドットインストールの指示に従いながらシェルスクリプトを実行したところ、無事にPHPやMySQLのインストールが完了しました。
※残念ながらRubyは動作していませんでした。

  • php -v
  • mysql --version
  • python --version
  • ruby -v
  • sudo service httpd status

以上です。

6
6
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
6