Install gem libxml-ruby on OSX Mavericks 10.9.x
Libxml-ruby aren't compatible with libxml2 2.9.x until version 2.4.0.
To keep developing legacy proyects, you must install older version of libxml2 with homebrew.
First check versions availables:
brew versions libxml2
Right now, the older version compatible is 2.7.6 so:
cd /usr/local/
git checkout 8939a91 Library/Formula/libxml2.rb
brew install libxml2
ln -s /usr/local/opt/libxml2/bin/xml2-config /usr/local/bin/xml2-config
Now you can bundle install or gem install older versions of libxml-ruby
Written by Victor Ortiz
Related protips
1 Response
brew versions
doesn't work any more, but the second part still does, thanks :)
And actually, instead of manually creating the symlink in the last step, you can brew link libxml2 --force
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#