-
-
Save cheeseplus/9188799 to your computer and use it in GitHub Desktop.
This file contains 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
## 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