small medium large xlarge

21 Apr 2016, 20:21
David Wilbur (50 posts)

in the book it states:

$ brew install rbenv ruby-build $ echo ‘eval “$(rbenv init -)”’ » ~/.bash_profile $ source ~/.bash_profile $ rbenv install 2.3.0 $ rbenv global 2.3.0

anyone who in the past that had used rbenv with out brew might want to be cautioned to uninstall the old version first otherwise you can end up with odd things happening like in this bug report:

also, rvm also works on macos… so, in a way i feel that it should also be mentioned and that they can reffer to the linux notes about that because that for the most part is the same.

hum… on 2nd reading… the rvm part is not part of the linux install notes but, a new topic? and not clearly delineated…

also, in the rvm section it states:

“The use keyword is optional, so you can abbreviate this to rvm 2.0.0. You can also choose to make it the default Ruby interpreter for new Terminal sessions with the following command: $ rvm –default 2.0.0”

those should be 2.3.0 instead yes?

lastly, the reader might want be cautioned that using rbenv and rvm on the same machine can cause issues, and the uninitiated might want to install one or the other until they are confidant that they can work out the potential conflicts.

01 Jun 2016, 19:06
Sam Ruby (633 posts)

Thanks for also reporting this via the errata system!

I’m leery of explaining too many options. This section is for people who generally are new to Ruby (and therefore don’t have much of a basis for making a choice), and also generally want to get on with learning Rails. Mac OS/X users overwhelmingly seem to prefer rbenv; rvm seems to be popular on Linux and both in deployment and in the cloud.

You must be logged in to comment