Skip to content

Instantly share code, notes, and snippets.

@he9lin
Forked from ryanb/chef_solo_bootstrap.sh
Last active December 15, 2015 01:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save he9lin/5180048 to your computer and use it in GitHub Desktop.
Save he9lin/5180048 to your computer and use it in GitHub Desktop.
Chef solo bootstrap with Berkshelf
```
#!/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
```
@he9lin
Copy link
Author

he9lin commented Sep 24, 2013

On Ubuntu 13

root@sm-client:~# apt-get -y install build-essential zlib1g-dev libssl-dev libreadline5-dev libyaml-dev git-core
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

E: Package 'libreadline5-dev' has no installation candidate

@he9lin
Copy link
Author

he9lin commented Sep 24, 2013

apt-get install libxslt-dev solves nokogiri not being installed problem

@he9lin
Copy link
Author

he9lin commented Jan 9, 2014

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

@he9lin
Copy link
Author

he9lin commented Jan 19, 2014

curl -L https://gist.github.com/he9lin/5180048/raw/c9a053e10ec62f5388fa11ca7b17f2c5341f8517/chef_solo_bootstrap.sh | bash

@he9lin
Copy link
Author

he9lin commented Oct 16, 2014

Add the following for readline apt-get install autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev

@he9lin
Copy link
Author

he9lin commented Oct 16, 2014

#!/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