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

RE: [ruby-81] Installing Nokogiri on MacBook...

From: Jon S.
Sent on: Thursday, September 19, 2013 6:49 AM

Thanks, Earl... I tried that, but no dice...

 

Jon Seidel, CMC®

Effective Decisions... Priceless!

 

From: [address removed] [mailto:[address removed]] On Behalf Of Earl St Sauver
Sent: Wednesday, September 18,[masked]:49 PM
To: [address removed]
Subject: Re: [ruby-81] Installing Nokogiri on MacBook...

 

In general I have found only sadness to come from using macports, but may I suggest explicitly telling the gem installation where the xml and xslt libs are?

 

gem install nokogiri -- --with-xml2-dir=/home/joe/builds

                        --with-xslt-dir=/home/joe/builds



 

(From the bottom of the docs.)


~Earl

 

On Wed, Sep 18, 2013 at 4:43 PM, Jon Seidel <[address removed]> wrote:

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!

 





--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Jon Seidel ([address removed]) from The East Bay Ruby Meetup Group.
To learn more about Jon Seidel, visit his/her member profile
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, POB 4668 #37895 NY NY USA 10163 | [address removed]

 





--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Earl St Sauver ([address removed]) from The East Bay Ruby Meetup Group.
To learn more about Earl St Sauver, visit his/her member profile
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, POB 4668 #37895 NY NY USA 10163 | [address removed]

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