正确安装RVM和Chef

时间:2014-03-13 02:17:15

标签: rvm chef

我在rvm上为多用户安装了server

\curl -sSL https://get.rvm.io | sudo bash -s stable 
sudo usermod -a -G
rvm ubuntu rvm install 2.1.1 
rvm --default use 2.1.1

我还安装了Chef

curl -L https://www.opscode.com/chef/install.sh | sudo bash

但是,当我跑步"宝石安装厨师"在ubuntu我得到

 You don't have write permissions into the /opt/chef/embedded/lib/ruby/gems/1.9.1 directory

显然我可以改变permissions,但我假设这不是我应该如何设置它。

非常感谢任何帮助。

1 个答案:

答案 0 :(得分:1)

omnibus安装程序,又名:

curl -L https://www.opscode.com/chef/install.sh | sudo bash

为您安装厨师 。您不需要安装Chef。您可以将主厨设为chef-clientchef-solo

将Chef安装到/opt/chef并将其打包为自己的Ruby等。


关于您的RVM问题:

  • 您是否已将所需的行添加到.bashrc
  • 您实际是在执行登录shell(-l)吗?
  • 你为什么要把厨师安装到rvm?
相关问题