Created
January 2, 2013 20:12
-
-
Save jcanfield/4437562 to your computer and use it in GitHub Desktop.
Fix for `dyld: lazy symbol binding failed: Symbol not found: _rb_utf8_encoding`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Continued to receive this message when I would attempt to either run or install anything related to NodeJS. This was the error I received while running Juicer. | |
# | |
# $ juicer | |
# dyld: lazy symbol binding failed: Symbol not found: _rb_utf8_encoding | |
# Referenced from: /Users/jcanfield/.rvm/gems/ruby-1.9.3-p327/gems/nokogiri-1.5.6/lib/nokogiri/nokogiri.bundle | |
# Expected in: flat namespace | |
# | |
# dyld: Symbol not found: _rb_utf8_encoding | |
# Referenced from: /Users/jcanfield/.rvm/gems/ruby-1.9.3-p327/gems/nokogiri-1.5.6/lib/nokogiri/nokogiri.bundle | |
# Expected in: flat namespace | |
# | |
# ^CTrace/BPT trap: 5 | |
# | |
# This fix is simply to use Homebrew to make sure you have the correct GCC version and re-install Ruby via RVM | |
brew update | |
brew install autoconf automake | |
read -p "Run `gcc --version`. If version is under 4.2, then run `brew install https://raw.github.com/Homebrew/homebrew-dupes/master/apple-gcc42.rb`" | |
rvm reinstall 1.9.3 --with-gcc=/usr/local/bin/gcc-4.2 | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment