Most of the time this is the result of apple s xcode not being installed on your system or if it is not being the current version.
Rvm install ruby version mac.
Rvm ruby version manager rvm allows you to install and manage multiple installations of ruby on your system.
Curl ssl https get rvm io bash.
Both tools are available for macos linux or other unix like operating systems.
Rvm remove is the preferred way of removing rubies from rvm.
By default not only will it remove the ruby and it s source files it will also get rid of aliases wrappers environments and any associated binaries in other words it cleans up most of the install.
If you need a different newer version of rvm after installing base version of rvm check the upgrading section.
From my experiences the biggest gotcha is when you try to install a new version of ruby with rvm and you re met with a handful of confusing errors.
Lets see what the ways available to uninstalling ruby version manager.
Step 4 download the latest version of xcode.
Rvm list we can switch between the ruby versions by typing.
Ruby version manager rvm 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.
While it can t install ruby by default its ruby build plugin can.
Rvm has the following advantages.
A better alternative to using the system ruby is to install ruby with rvm the ruby version manager.
Install rvm stable with ruby.
It can also manage different gemsets.
Rvm use system ruby v ruby 2 0 0p451 2014 02 24 revision 45167 universal x86 64 darwin13 to switch at any time to the ruby you have selected as default.
Curl ssl https get rvm io bash s stable ruby.
Rvm enables you to install multiple versions of ruby and allows you to change which version you want to use.
Rvm default ruby v ruby 2 1 1p76 2014 02 24 revision 45161 x86 64 darwin12 0 to show what ruby is currently the selected default if any do.
After the installation we can list the available ruby versions we have installed by typing.
Uninstall ruby version manager rvm.
After above code to remove full trace of the rvm using below code.
Then install the specific version of ruby that you need through rvm where ruby version can be typed as ruby 2 4 0 for instance or just 2 4 0.
We will start with following simple command this command will remove rvm directories and all rubies what you install with rvm.
Install rvm development version.