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):
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
Post a Comment