Skip to content

Instantly share code, notes, and snippets.

@t-oginogin
Created April 28, 2014 09:21
Show Gist options
  • Select an option

  • Save t-oginogin/11366522 to your computer and use it in GitHub Desktop.

Select an option

Save t-oginogin/11366522 to your computer and use it in GitHub Desktop.

UbuntuにRubyとchef-soloをインストール

sudo apt-get update
sudo apt-get install gcc
sudo apt-get install make
sudo apt-get install build-essential
sudo apt-get install zlib1g-dev libssl-dev libreadline-dev libyaml-dev libxml2-dev libxslt-dev

cd /usr/src/
sudo wget http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.1.tar.gz
sudo tar xvzf ruby-2.1.1.tar.gz
cd ruby-2.1.1/
sudo ./configure --disable-install-doc --disable-install-rdoc --disable-install-capi
sudo make
sudo make install
sudo make clean
cd ~/

echo "export PATH=/usr/local/bin/:$PATH" >> ~/.bashrc
source ~/.bashrc

sudo apt-get install curl
curl -L https://www.opscode.com/chef/install.sh | bash -s -- -v 11.10.4-1  
sudo gem install knife-solo --no-ri --no-rdoc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment