Installing Ruby on OSX

While trying to setup Chef client on my workstation I ran into some compatibility problems. It turned out that the chef gems was not compatible with my Ruby/RVM setup, which was a mix of darwin osx ruby, a brew install and rvm.

Newer versions of Mac OSX comes with a version of Ruby already installed, but if you wish to run multiple versions of Ruby on your workstation you should begin by installing RVM. Make sure you don't mix with brew like I did.

You SHOULD install RVM for all users on your machine (remember sudo):


$ sudo \curl -L https://get.rvm.io | bash -s stable --ruby


For more information see: https://rvm.io

I recommend restarting your machine after running the installer, to make certain all your shells load the correct version.

In case you need to uninstall RVM, do the following:

$ rvm implode

And if it does not work, you do:

$ rm -rf ~/.rvm

And check all .bashrc .bash_profile .profile and .zshrc for RVM source lines and delete or comment out if this was a Per-User installation.


Comments

Popular posts from this blog

Switching from Docker Desktop to Rancher Desktop on WSL2: Solving the Missing docker-credential-desktop.exe Error

Running LXD/LXC on WSL2 with Ubuntu 20.04

Proxmox Remote administration via VNC