Created
September 5, 2013 21:32
-
-
Save awesome/6456486 to your computer and use it in GitHub Desktop.
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
# For more info: https://gist.github.com/1120938 | |
# Install system libraries debian-squeeze | |
sudo apt-get install build-essential zlib1g-dev git-core sqlite3 libsqlite3-dev openssl libssl-dev libreadline5-dev libncurses5-dev | |
cd ~ | |
git clone [email protected]:sstephenson/rbenv.git ~/.rbenv | |
# Add rbenv to your PATH | |
echo 'export PATH="$HOME/.rbenv/bin:$HOME/.rbenv/shims:$PATH"' >> ~/.bash_profile | |
# Add rbenv init | |
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile | |
# Install ruby-build as plugin | |
mkdir -p ~/.rbenv/plugins | |
cd ~/.rbenv/plugins | |
git clone git://github.com/sstephenson/ruby-build.git | |
# Install standalone ruby-build | |
#git clone [email protected]:sstephenson/ruby-build.git | |
#cd ruby-build | |
#./install.sh | |
# $ which openssl | |
# /usr/bin/openssl | |
# Install Ruby with OpenSSL option debian-squeeze | |
ruby-build 1.9.3-p0 ~/.rbenv/versions/1.9.3-p0 --with-openssl-dir=/usr/lib | |
# Install shims for all Ruby binaries | |
rbenv rehash | |
# Set default Ruby version | |
rbenv global 1.9.3-p0 | |
# Check Ruby | |
ruby -v #ruby 1.9.3p0 (2011-10-30 revision 33570) [i686-linux] | |
# Check OpenSSL | |
irb | |
require 'openssl' # => true |
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
# for more info: https://gist.github.com/1120938 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment