Dynamic Library Binding Error on Mac OSX with Rails

While creating a rails application skeleton I ran into the following dyld complaint:

~$ rails exp
dyld: lazy symbol binding failed: Symbol not found: _rb_intern2
Referenced from: /Users/matan/usr/lib/ruby/1.9.1/gems/hpricot-0.8.1/lib/fast_xs.bundle
Expected in: flat namespace

dyld: Symbol not found: _rb_intern2
Referenced from: /Users/matan/usr/lib/ruby/1.9.1/gems/hpricot-0.8.1/lib/fast_xs.bundle
Expected in: flat namespace

Trace/BPT trap

If the above looks familiar to you try to unset GEM_HOME and see if it resolves your issue:

~$ unset GEM_HOME

Alternatively add $HOME/usr/lib/ruby/1.9.1/bin (or wherever you installed Ruby) to your PATH.

This entry was posted in Programming. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>