To install Ruby on Linux, follow these steps:
1. To check if you have Ruby installed, type the following on the command line:
ruby -v
2. If you can’t find Ruby, type which ruby on the command line.
3. If you still can’t find Ruby, perform any of the following:
- Install from Package: Refer to the distribution’s documentation. Each distribution includes its own package. Check the unofficial repositories such as Dag’s, Mind’s, Shadoi’s, or Debian-Unofficial.
- Install from Source: Access the Ruby website . Download and extract the source archive. Enter the source directory:
tar zxvf ruby-1.8.4.tar.gz
cd ruby-1.8.4
Read the license or README.
- To configure Ruby, type
./configure.
- To build Ruby, type
make.
- To install Ruby, type
make install.
- To ensure that Ruby is properly installed, type
ruby -v.


