Skip to content

Instantly share code, notes, and snippets.

@thepoho
Last active December 20, 2015 16:19
Show Gist options
  • Save thepoho/6160293 to your computer and use it in GitHub Desktop.
Save thepoho/6160293 to your computer and use it in GitHub Desktop.
Installing RBENV
sudo su
yum install curl-devel perl-ExtUtils-MakeMaker gettext sqlite sqlite-devel openssl-devel
wget http://git-core.googlecode.com/files/git-1.7.11.4.tar.gz
tar -xvzf git-1.7.11.4.tar.gz
cd git-1.7.11.4
./configure --with-curl --with-expat --without-tcltk
make
make install
##SET UP A PROXY HERE IF NECESSARY##
##NOW RUN AS NON ROOT USER##
git clone http://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
bash -l
git clone http://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
rbenv install 1.9.3-p392
rbenv global 1.9.3-p392
rbenv rehash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment