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

"$gem install bundler" not working

Hi Guys,

I'm on the Ruby track and I'm in the installation process of Ruby on Rails.

I'm trying to install gems but it's not happening and i'm not sure why.

$gem install bundler

ERROR:  Loading command: install (LoadError)
    dlopen(/Users/nthulanemakgato/.rbenv/versions/2.1.1/lib/ruby/2.1.0/x86_64-darwin13.0/openssl.bundle,     9): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
  Referenced from: /Users/nthulanemakgato/.rbenv/versions/2.1.1/lib/ruby/2.1.0/x86_64-darwin13.0/openssl.bundle
      Reason: image not found - /Users/nthulanemakgato/.rbenv/versions/2.1.1/lib/ruby/2.1.0/x86_64-  darwin13.0/openssl.bundle
    ERROR:  While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
  • I'm using Mac 10.9.2<br>
  • ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin13.0]<br>
  • rbenv 0.4.0-97-gfe0b243
  • I have openssl-1.0.1g installed

Thanks in advance.

1 Answer

Jason Seifer
STAFF
Jason Seifer
Treehouse Guest Teacher

Are you typing that with or without the leading $? If with, try just doing gem install bundler and let us know if it works.