We Recommend

bash Cookbook: Solutions and Examples for bash Users bash Cookbook: Solutions and Examples for bash Users
bash Cookbook teaches shell scripting the way Unix masters practice the craft. It presents a variety of recipes and tricks for all levels of shell programmers so that anyone can become a proficient user of the most common Unix shell -- the bash shell -- and cygwin or other popular Unix emulation packages.


Posted By

narkisr on 05/27/08


Tagged

Bash ubuntu hardy


Versions (?)


Setting rubygems under ubuntu hardy


Published in: Bash 


A bash script which installs rubygems under ubuntu hardy.

  1. sudo apt-get install ruby ruby1.8-examples rdoc ri libruby-extras rubygems
  2.  
  3. sudo ruby -i.bak \
  4. -lne 'print "require \047rubygems/gem_runner\047" \
  5. if /^require /; print' /usr/bin/gem
  6.  
  7. sudo gem update --system

Report this snippet 

You need to login to post a comment.