Mavericks system Ruby and gem broken

Posted by T1000 on Stack Overflow See other posts from Stack Overflow or by T1000
Published on 2013-11-06T03:48:51Z Indexed on 2013/11/06 3:53 UTC
Read the original article Hit count: 834

Filed under:
|
|

When I tried to run ruby -v or gem -v (or any other command), I get:

dyld: lazy symbol binding failed: Symbol not found: _ruby_run
  Referenced from: /usr/local/bin/ruby
  Expected in: /usr/lib/libruby.dylib

dyld: Symbol not found: _ruby_run
  Referenced from: /usr/local/bin/ruby
  Expected in: /usr/lib/libruby.dylib

This is after I ran rvm system to temporally switch to the system default Ruby. RVM is working fine, but I have a special need to install a gem to the system Ruby and I can't because of this problem.

Does anyone know why? It seems to be some kind of link problem to Ruby, but I'm don't know how to solve this.

I ran which ruby and it's at this point located in "/usr/local/bin/ruby".

I checked the Ruby in "/usr/lib/" and it's pointing to my system Ruby: "../../System/Library/Frameworks/Ruby.framework/Versions/Current/usr/lib/ruby"

Any help would be appreciated.

© Stack Overflow or respective owner

Related posts about ruby

Related posts about osx