addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwchatcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobegmailgoogleimageimagesinstagramlinklocation-pinmagnifying-glassmailminusmoremuplabelShape 3 + Rectangle 1outlookpersonplusprice-ribbonImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruseryahoo

Installing Nokogiri on MacBook...

From: Jon S.
Sent on: Wednesday, September 18, 2013 4:42 PM

Has anyone gotten Nokogiri installed on Mac OSx with MacPorts? For some reason I cannot get it to work.

Short output from gem install nokogiri is:

Extracting libxml2-2.8.0.tar.gz into tmp/x86_64-apple-darwin12/ports/libxml2/2.8.0... OK

Running 'configure' for libxml2 2.8.0... OK

Running 'compile' for libxml2 2.8.0... OK

Running 'install' for libxml2 2.8.0... OK

Activating libxml[masked] (from /Users/jseidel/.rvm/gems/ruby-1.9.3-p327@rails3213/gems/nokogiri-1.6.0/ports/x86_64-apple-darwin12/libxml2/2.8.0)...

Extracting libxslt-1.1.26.tar.gz into tmp/x86_64-apple-darwin12/ports/libxslt/1.1.26... OK

Running 'configure' for libxslt 1.1.26... OK

Running 'compile' for libxslt 1.1.26... OK

Running 'install' for libxslt 1.1.26... OK

Activating libxslt[masked] (from /Users/jseidel/.rvm/gems/ruby-1.9.3-p327@rails3213/gems/nokogiri-1.6.0/ports/x86_64-apple-darwin12/libxslt/1.1.26)...

checking for libxml/parser.h... yes

checking for libxslt/xslt.h... yes

checking for libexslt/exslt.h... yes

checking for iconv_open() in iconv.h... yes

checking for xmlParseDoc() in -lxml2... no

-----

libxml2 is missing.  please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies.

However, MacPorts says that's already installed:

port installed | grep lib
libxml @1.8.17_0 (active)
libxml2 @2.9.1_0 (active)

What in the heck is going on here? It seems really weird to me that the installer is compiling libxml2 and then can’t find it!

I've followed the installation instructions at Nokigiri Installation and that doesn't help.

Finally, I uninstalled ports libxml and libxml2 and now it fails attempting to use libiconv, having gotten past the previous xml issue it seems.

Thanks...jon

 

Jon Seidel, CMC®

Effective Decisions... Priceless!

 

Our Sponsors

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy