Yum Install Ruby
Sudo yum install ruby.
Yum install ruby. Rvm ruby version manager is a tool for installing and managing multiple ruby versions on single operating systems. Sudo yum install rh ruby23 3. Install the rbenv and ruby dependencies with yum. Type the following into terminal.
Start off by first installing the development tools group. How to install ruby on centos rhel 7 6. Install ruby 2 5 on centos rhel. Ruby is a dynamic object oriented programming language focused on simplicity and productivity.
After you say yes to the prompt ruby will install. We ll be installing the latest version released in april 2019 version 2 6. The easiest way to install ruby on your virtual server is through the yum package installer. Install ruby the easiest way to install ruby on your centos system is through the yum package manager.
Sudo yum install ruby. Install rvm on rhel 8 centos 8. Sudo yum install y git core zlib zlib devel gcc c patch readline readline devel libyaml devel libffi devel openssl devel make bzip2 autoconf automake libtool bison curl sqlite devel now we are ready to install rbenv. Sudo yum install gcc g make automake autoconf curl devel openssl devel zlib devel httpd devel.
At the time of writing the version in the centos repositories is 2 0 0 which is pretty outdated. Christian lescuyer christian lescuyer. This tutorial will help you to install rvm on your system. The easiest way to do that is to run these commands as the user that will.
We ll begin with a fresh centos 7 6 minimal installation. It is available out of the box on ubuntu but snap also works on many other linux distributions. Share follow edited may 17 10 at 4 37. Snap ubuntu or other linux distributions snap is a package manager developed by canonical.
Then we need some additional ruby dependancies. Rvm is a command line tool which allows you to easily install manage and work with multiple ruby environments from interpreters to sets of gems. The installed version is typically the latest version of ruby available at the release time of the specific distribution version. Install the ruby package with the following command.
Ruby language is open source it is simple and focuses on productivity while at the same time has an elegant syntax that is easy to read and understand. Once installed check version. Sudo yum install ruby. Don t bother installing rubygems this way it s obsolete.
Answered aug 28 09 at 12 38. Scl enable rh ruby23 bash the last command runs the bash shell in the environment with rh ruby23 software collection enabled which means that at this point you are able to use ruby just as a normal application. Start using software collections. Add centos sclo repository vagrant devopsroles yum y install centos release scl rh centos release scl install and configure ruby 2 5 packages installed uder the opt directory vagrant devopsroles yum enablerepo centos sclo rh y install rh ruby25 load environment variables vagrant devopsroles.