The best Ruby installation - Linux Tutorial In 2024, In this tutorial you can learn Source Installation,Automatically install Ruby,
Here are the steps to install Ruby on a Linux machine.
Note: Before installation, make sure that you have root privileges.
$ tar -xvzf ruby-2.2.3.tgz $ cd ruby-2.2.3
$ ./configure $ make $ sudo make install
$ruby -v ruby 2.2.3……
If your computer is already connected to the Internet, then the easiest way is to install Ruby usingyum or apt-get.Enter the following command at a command prompt, you can install Ruby on your computer.
$ sudo yum install ruby # CentOS, Fedora, 或 RHEL 系统 或 sudo apt-get install ruby-full # Debian 或 Ubuntu 系统
If you are the Apple system, you can use the command to install brew:
$ brew install ruby