4Apr/100
Install nokogiri and libxml2 on Snow Leopard
This gets me everytime.
You have installed libxml2 through MacPorts but Nokogiri won't compile, even with complex command line arguments.
Solution:
sudo port upgrade --enforce-variants libxml2 +universal sudo port upgrade --enforce-variants libxslt +universal gem install nokogiri -- --with-xml2-include=/opt/local/include/libxml2 --with-xml2-lib=/opt/local/lib --with-xslt-dir=/opt/local
Now I can install capybara or webrat:
gem install capybaraRelated posts:
- Install id3lib-ruby on Snow Leopard
- How to install pg (postgresql) gem on Snow Leopard, 64 bit
- Install Passenger (mod_rails) in Snow Leopard 64 bit
- Install MySQL and MySQL Ruby gem on Snow Leopard, 64 bit
- Passenger (mod_rails) $PATH on Leopard / Snow Leopard
Enjoy this article?
Additional comments powered by BackType