我正在通过http://gettingstartedwithdjango.com/en/lessons/introduction-and-launch/上的视频教程工作
我正在开发 win7 并为我的终端使用 git-bash。我已经安装了最新的 virtualbox - 4.2.12 和最新的 vagrant - 1.22。
我试图运行 vagrant 并得到:
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] -- 8000 => 8888 (adapter 1)
[default] Booting VM...
[default] Waiting for VM to boot. This can take a few minutes.
[default] VM booted and ready for use!
[default] Configuring and enabling network interfaces...
[default] Mounting shared folders...
[default] -- /vagrant
[default] -- /tmp/vagrant-chef-1/chef-solo-1/cookbooks
[default] -- /tmp/vagrant-chef-1/chef-solo-2/cookbooks
[default] Running provisioner: shell...
[default] Running: inline script
stdin: is not a tty
ERROR: Error installing chef:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb
creating Makefile
make
sh: 1: make: not found
Gem files will remain installed in /var/lib/gems/1.8/gems/yajl-ruby-1.1.0 for in
spection.
Results logged to /var/lib/gems/1.8/gems/yajl-ruby-1.1.0/ext/yajl/gem_make.out
Building native extensions. This could take a while...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
chmod +x /tmp/vagrant-shell && /tmp/vagrant-shell
当我做:
$ which make
我得到:
/c/opscode/chef/embedded/bin/make
所以看起来 make 在文件路径中
我怎样才能解决这个问题?
附录:当我将 vagrantfile 编辑为:
config.vm.provision :shell, :inline => "curl -L https://opscode.com/chef/install.sh | bash"
我得到:
/tmp/vagrant-shell: line 1: curl: command not found