Mac OS X 10.7.5
$sudo gem install vagrant
$vagrant box add base http://developer.nrel.gov/downloads/vagrant-boxes/CentOS-6.4-x86_64-v20130427.box
Failed to untar the box file. This is usually because you're
attempting to add a box that isn't a valid box file. Please
double check that the box file is properly packaged.
error
#vagrantのヴァージョンを確認
$ vagrant -v
Vagrant version 1.0.7
調べた
http://nushu123.blogspot.jp/2013/06/vagrant-box-addfailed-to-untar-box.html
https://github.com/mitchellh/vagrant/issues/977
VAGRANT_HOME??
$VAGRANT_HOME=/vagrant/path
$export VARGRANT_HOME
もう一回実行
Failed to untar the box file. This is usually because you're
attempting to add a box that isn't a valid box file. Please
double check that the box file is properly packaged.
同じエラー
http://zakuni.blogspot.jp/2013/06/macvagrant.html
http://docs.vagrantup.com/v2/installation/
------
Gem Install?
Vagrant 1.0.x had the option to be installed as a RubyGem. This installation method has been removed for installers and packages only.
------
アンインストール$sudo gem uninstall vagrant
vagrant 再インストール
http://downloads.vagrantup.com/tags/v1.2.2/
Vagrant-1.2.2.dmg
インストール
$ which vagrant
/usr/bin/vagrant
$ vagrant -v
Vagrant version 1.2.2
再度実行
Successfully added box 'base' with provider 'virtualbox'!
成功
0 件のコメント:
コメントを投稿