Skip to content

Instantly share code, notes, and snippets.

@burin
Created November 19, 2010 01:11
Show Gist options
  • Save burin/705981 to your computer and use it in GitHub Desktop.
Save burin/705981 to your computer and use it in GitHub Desktop.
# group 1
cd ~
mkdir .gems bin lib src
# group 2
echo 'export GEM_HOME="$HOME/.gems"' >> .bash_profile
echo 'export GEM_PATH="$GEM_HOME:/usr/lib/ruby/gems/1.8"' >> .bash_profile
echo 'export PATH="$HOME/bin:$HOME/.gems/bin:$PATH"' >> .bash_profile
source ~/.bash_profile
# group 3
cd ~/src
wget http://rubyforge.org/frs/download.php/70696/rubygems-1.3.7.tgz
tar xzvf rubygems-1.3.7.tgz
cd rubygems-1.3.7
ruby setup.rb --prefix=$HOME
cd ~/bin
ln -s gem1.8 gem
cd ~
# group 4
which gem # should return /home/USERNAME/bin/gem
gem -v # should return 1.3.7
# group 5
gem update --system
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment