Endless Tutorial - Ruby - Installing Ruby Functions on Linux
Endless Tutorials - Ruby - Installing Ruby Functions on Linux
Here are the steps to be followed to install Ruby on a Unix machine-.
Note - Make sure you have root privileges before proceeding.
-
Download the zip file with the latest version of Ruby.
-
After downloading the Ruby archive file, unzip it and go to the newly created directory -
$ tar -xvzf [ruby](/search?q=ruby)-2.6.5.tgz
$ cd ruby-2.6.5
- Now, configure and compile the source code as follows.
$./configure
$make
- Finally, the Ruby interpreter is installed as follows - the
$su -l root # become a root user
$make install
$exit # become the original user again
- After installing, make sure everything is working by issuing the following command on the command line-
$ruby -v
ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-darwin18]
- If all is well, this will output the installed version of the Ruby interpreter, as shown above. You may have a different version installed, so it will show a different version.
Installing Ruby with yum
If your computer is connected to the network, the easiest way to install Ruby or any other RPM is to use the yum utility. Type the following command at the command prompt and you will find Ruby installed on your computer.
$yum install ruby
[Ruby in Installing Ruby Functions on Linux - EndlessTutorials.com EndlessTutorials.com offers the following steps to follow to install Ruby on a Unix machine - Note - Make sure you have root privileges before proceeding. ...! Endless Tutorials - Ruby - Installing Ruby Functions on Linuxhttps://www.learnfk.com/ruby/ruby-installation-unix.html](https://www.learnfk.com/ruby/ruby-installation-unix.html "Ruby in Installation of Ruby Functions on Linux - Endless Tutorials.com")