Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

Lance Chandler
seal-mask
PLUS
.a{fill-rule:evenodd;}techdegree seal-36
Lance Chandler
Front End Web Development Techdegree Graduate 21,818 Points

macos sierra version 10.12.6 -- unable update ruby or run jekyll serve. Updated Xcode and installed command-line tools.

Yes, I am a newbie when it comes to using Ruby as dev environment. In the past, when updating an application that depended on Ruby, I just followed the install/update directions and fortunately everything worked.

I have tried Gem, Brew and Bundle and made sure my PATH includes "/usr/local/bin ". Permission errors, unable to link..., etc. Tried installation recommendations from Jekyll site. Hopeless dog chasing tail....

3 Answers

Amrit Pandey
Amrit Pandey
17,595 Points

Maybe you have to use Ruby Virtual Machine, because if you are trying to update system ruby, then things may not work as you wish.

Let the old Ruby be on the system, download and install rvm from this site https://rvm.io/, it contains all the details for installation.

Go to the cmd or terminal and install the desired version of ruby you want with this :

rvm install ruby-2.x.x

replace x.x. with desired version number

then, use this version of ruby by:

rvm use 2.x.x

This may help because, using this version of ruby using rvm will have no permission problems, and you can also update it without changing system ruby!

Lance Chandler
seal-mask
PLUS
.a{fill-rule:evenodd;}techdegree seal-36
Lance Chandler
Front End Web Development Techdegree Graduate 21,818 Points

After some further research:

  1. I followed the general advice on the homepage of Homebrew (package manager)

  2. To resolve my Ruby version issue: https://gist.github.com/nathos/2509870 (colinjoy commented on Aug 29, 2013) (now, add "/usr/local/opt/ruby/bin" to your $PATH.) In my ".bash_profile" export PATH="/usr/local/opt/ruby/bin:$PATH"