麻烦设置流氓 [英] Trouble setting up Vagrant
问题描述
我一直在设法让Vagrant学习Django一段时间。我在追踪[ http://gettingstartedwithdjango.com/en/lessons/介绍和发布/] [1] 教程。第一个错误是 default:stdin不是tty
,第二个是
I've been trying to setup Vagrant to learn Django for a while now. I am following [http://gettingstartedwithdjango.com/en/lessons/introduction-and-launch/][1] tutorial. The first error is default: stdin is not a tty
and the second is
==> default: ERROR: Error installing chef:
==> default: mixlib-shellout requires Ruby version >= 1.9.3.
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.
我正在使用Ubuntu 14.04 LTS x86_64作为主机。
I am using Ubuntu 14.04 LTS x86_64 as host machine.
sudo apt-get install ruby给我已经在最新版本。试图手动安装厨师。没有运气:(
sudo apt-get install ruby gives me "Already in the newest version". Tried installing chef manually. No luck either :(
推荐答案
我有一个非常相似的问题(Vagrant,Django),我解决了降级厨师,由于某些版本不匹配,也固定了几个宝石,这并没有解决我所有的问题,但它解决了使用mixlib-shellout的OP错误。
I had a very similar issue (Vagrant, Django) which I solved by downgrading Chef. I had to pin a couple of gems too due to some version mismatches. This didn't solve all my issues but it did solve the OP's error with mixlib-shellout.
在我的Vagrant文件
#安装旧版的厨师
config.vm.provision:shell,:inline =>'apt-get install build-essential ruby1。
config.vm.provision:shell,inline =&gem install mixlib-shellout --version 1.4.0 --no-rdoc --no- ri --conservative
config.vm.provision:shell,:inline =>gem install ohai --version 7.4 --no-rdoc --no-ri --conservative
config。 vm.provision:shell,:inline =>gem install chef --version 11.18.12 --no-rdoc --no-ri --conservative
In my Vagrant file
# Install an older version of chef
config.vm.provision :shell, :inline => 'apt-get install build-essential ruby1.9.1-dev --no-upgrade --yes'
config.vm.provision :shell, :inline => "gem install mixlib-shellout --version 1.4.0 --no-rdoc --no-ri --conservative"
config.vm.provision :shell, :inline => "gem install ohai --version 7.4 --no-rdoc --no-ri --conservative"
config.vm.provision :shell, :inline => "gem install chef --version 11.18.12 --no-rdoc --no-ri --conservative"
更多这里。
https://www.chef.io/blog/2014/12/02/postmortem-ohai-mixlib-shellout-gem-release-issues/
这篇关于麻烦设置流氓的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!