2017-01-20 31 views
0

みんな!RVMとRuby on Vagrantをインストールできない(ボックス "hashicorp/precise64")

config.vm.box = "hashicorp/precise64" 
config.vm.provision :shell, path: "provision/install-rvm.sh", args: "stable", privileged: false 
config.vm.provision :shell, path: "provision/install-ruby.sh", args: "1.9.3", privileged: false 
config.vm.provision :shell, path: "provision/install-ruby.sh", args: "2.0.0 rails haml", privileged: false 

install-rvm.shに:

gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 
curl -sSL https://get.rvm.io | bash -s $1 

install-ruby.shに:

source $HOME/.rvm/scripts/rvm || source /etc/profile.d/rvm.sh 
rvm use --default --install $1 
shift 
if (($#)) 
then gem install [email protected] 
fi 
rvm cleanup all  
私はVargantfileでそう https://rvm.io/integration/vagrant

からの指示、私は持っているが続いてきました

しかし、vagrant upの後には、それは言う:

==> default: gpg: requesting key D39DC0E3 from hkp server keys.gnupg.net 
==> default: gpg: key D39DC0E3: "Michal Papis (RVM signing) <[email protected]>" not changed 
==> default: gpg: Total number processed: 1 
==> default: gpg:    unchanged: 1 
==> default: /tmp/vagrant-shell: line 4: curl: command not found 
==> default: Running provisioner: shell... 
default: Running: /tmp/vagrant-shell20170120-19193-117iyxj.sh 
==> default: /tmp/vagrant-shell: line 3: /usr/local/rvm/scripts/rvm: No such file or directory 
==> default: /tmp/vagrant-shell: line 3: /etc/profile.d/rvm.sh: No such file or directory 
==> default: /tmp/vagrant-shell: line 5: rvm: command not found 
==> default: /tmp/vagrant-shell: line 13: rvm: command not found 

しかし、私は 「Ubuntuの/ trusty64」にRVMとルビーと同じ規定を実行する場合、すべてがうまく

+0

curlがインストールされているかどうかsshで確認できますか? – Kris

+0

カールを使用する前にインストールする必要があります。 –

答えて

0

RVMはcurlに依存して動作します - カールなどをインストールするために、余分な行を追加します。

apt-get install curl 

rvmスクリプトを呼び出す前に

関連する問題