Ruby Installation - Unix


Here are the steps to be followed to install Ruby on a Unix machine −

NOTE − Before proceeding, make sure you have root privilege.

$ tar -xvzf ruby-1.6.7.tgz
$ cd ruby-1.6.7
$ ./configure
$ make
$ su -l root # become a root user
$ make install
$ exit       # become the original user again
$ruby -v
ruby 1.6.7 (2002-06-04) [i386-netbsd]

Using yum to Install Ruby

If your computer is connected to the Internet, then the easiest way to install Ruby or any other other RPM is using the yum utility. Give the following command at the command prompt and you will find Ruby gets installed on your computer.

$ yum install ruby
ruby_environment.htm