2017-01-20 5 views
0

tout le monde! J'ai suivi les instructions de https://rvm.io/integration/vagrantJe ne peux pas installer RVM et Ruby sur Vagrant (boîte "hashicorp/precise64")

Alors dans Vargantfile j'ai:

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 

dans install-rvm.sh:

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

dans 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  

mais après vagrant up il est dit:

==> 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 

Mais si je lance la même disposition avec RVM et rubis sur « ubuntu/trusty64 » tout fonctionne très bien

+0

pouvez-vous ssh et voir si curl est installé? – Kris

+0

Vous devez installer curl avant de tenter de l'utiliser. –

Répondre

0

RVM dépend de curl - ajouter une ligne supplémentaire à installer boucle comme:

apt-get install curl 

avant tout appel aux scripts rvm