2014-03-13 88 views
1

我安裝了rvm多用戶在我的server正確安裝RVM和廚師

\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

總括安裝,又名:

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

已安裝廚師。你不需要安裝廚師。你可以運行廚師爲chef-clientchef-solo

廚師獲得安裝的進/opt/chef,它封裝它自己的紅寶石等


對於您的RVM問題:

  • 您添加所需的行到.bashrc
  • 你確實在執行登錄shell(-l)嗎?
  • 你爲什麼想把廚師安裝到rvm中?