Copyright © tutorialspoint.com

Ruby Installation - Unix

previous next


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 easiest way to install ruby or any other other RPM is using yum utility. Give following command at command prompt and you will find ruby gets installed on your computer.

$ yum install ruby

previous next

Copyright © tutorialspoint.com