-
-
Save he9lin/5180048 to your computer and use it in GitHub Desktop.
Chef solo bootstrap with Berkshelf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
#!/usr/bin/env bash | |
apt-get -y update | |
apt-get -y install build-essential zlib1g-dev libssl-dev libyaml-dev libxslt-dev git-core autoconf bison libssl-dev libreadline6-dev libncurses5-dev | |
cd /tmp | |
wget http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.4.tar.gz | |
tar -xzf ruby-2.1.4.tar.gz | |
cd ruby-2.1.4/ | |
./configure --prefix=/usr/local --with-readline-dir=/usr/include/readline | |
make | |
make install | |
gem install chef -v 11.12.4 | |
gem install ruby-shadow bundler --no-ri --no-rdoc | |
``` |
apt-get install libxslt-dev
solves nokogiri not being installed problem
Ubuntu 12.04 64bit
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libreadline5-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
libreadline-gplv2-dev:i386 lib64readline-gplv2-dev:i386 libreadline-gplv2-dev
curl -L https://gist.github.com/he9lin/5180048/raw/c9a053e10ec62f5388fa11ca7b17f2c5341f8517/chef_solo_bootstrap.sh | bash
Add the following for readline apt-get install autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev
#!/usr/bin/env bash
apt-get -y update
apt-get -y install build-essential zlib1g-dev libssl-dev libyaml-dev libxslt-dev git-core autoconf bison libssl-dev libreadline6-dev libncurses5-dev
cd /tmp
wget http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.4.tar.gz
tar -xzf ruby-2.1.4.tar.gz
cd ruby-2.1.4/
./configure --prefix=/usr/local --with-readline-dir=/usr/include/readline
make
make install
gem install chef ruby-shadow bundler foreman --no-ri --no-rdoc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On Ubuntu 13