Skip to content

Instantly share code, notes, and snippets.

@cheeseplus
Forked from bixu/ruby-2.0.0-p0 on smartos
Last active August 29, 2015 13:56
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 cheeseplus/9188799 to your computer and use it in GitHub Desktop.
Save cheeseplus/9188799 to your computer and use it in GitHub Desktop.
## curl the raw version of this gist like this:
## curl -s -L https://gist.github.com/bixu/5316445/raw/[revision]/ruby-2.0.0-p0+on+smartos | bash
pkgin -y install build-essential libyaml readline libxml2 libxslt
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
exec $SHELL -l
wget -N http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p0.tar.gz
tar -xvf ruby-2.0.0-p0.tar.gz
cd ruby-2.0.0-p0
mkdir -p $HOME/.rbenv/versions/2.0.0-p0
bash ./configure 'CFLAGS=-m64 -std=gnu99' 'CXXFLAGS=-m64' 'LDFLAGS=-m64' --prefix=$HOME/.rbenv/versions/2.0.0-p0 --enable-shared --disable-install-doc --disable-install-capi --with-opt-dir=/opt/local
make
make install
rbenv global 2.0.0-p0
rbenv rehash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment