Skip to content

Instantly share code, notes, and snippets.

@cherring
Created January 2, 2011 13:11
Show Gist options
  • Save cherring/762517 to your computer and use it in GitHub Desktop.
Save cherring/762517 to your computer and use it in GitHub Desktop.
⚡ rake spec
rake aborted!
dlsym(0x1027f1510, Init_libxml_ruby): symbol not found - /Users/chris/.rvm/gems/ruby-1.8.7-p330/gems/libxml-ruby-1.1.4/lib/libxml_ruby.bundle
@ismasan
Copy link

ismasan commented May 8, 2011

Hi. I'm getting this error too and I can't find much info about it. Did you happen to find a solution?

@cherring
Copy link
Author

cherring commented May 8, 2011

I am using a mac, and I fixed this by installing libxml (2?) via homebrew as the libxml that ships with at least one version of 10.6 is broken. This is how I did that:

brew update
brew install libxml2
brew link libxml2

and then I uninstalled al versions of nokogiri and then re ran my bundle install.

@ryanjm
Copy link

ryanjm commented May 12, 2011

How did you uninstall nokogiri?

@ismasan
Copy link

ismasan commented May 12, 2011

Yup that worked, thanks!

@ryanjm
Copy link

ryanjm commented May 12, 2011

I just got mine to work. Thanks for the help.

removed most of the gems from my gemfile
bundle install
added them back
bundle install
(not sure if I needed to do that, but just wanted to be sure)

gem uninstall nokogiri
gem install nokogiri

Thanks again.

@TildeWill
Copy link

Here's what worked for me:
sudo port uninstall libxml2 #(may need to clear multiple versions)
sudo port install libxml2
rvm gemset clear
bundle

bliss

@cherring
Copy link
Author

Yes that will work, but I really do recommend using homebrew over MacPorts. MacPorts can become hell to maintain, especially as it reinstalls dependencies over and over again, Homebrew keeps it much simpler.

@mulderp
Copy link

mulderp commented Oct 10, 2011

there is a similar observation here: https://gist.github.com/1226596

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment