7stud
unread,Nov 21, 2009, 4:37:41 AM11/21/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to nokogiri-talk
Hi,
I get this warning when I use nokogiri on mac osx 10.4.11:
-----
HI. You're using libxml2 version 2.6.16 which is over 4 years old and
has
plenty of bugs. We suggest that for maximum HTML/XML parsing
pleasure, you
upgrade your version of libxml2 and re-install nokogiri. If you like
using
libxml2 version 2.6.16, but don't like this warning, please define the
constant
I_KNOW_I_AM_USING_AN_OLD_AND_BUGGY_VERSION_OF_LIBXML2 before requring
nokogiri.
----
As a result, I would like to upgrade libxml2. I recently installed a
python module that required the latest libxml2 and libxslt, which it
downloaded and installed(now I have libxml2(version 2.7.6) and libxslt
(version 1.1.26). Can I just link to those installs somehow? I set
an environment variable like this:
DYLD_LIBRARY_PATH=/path/to/dir/with/libxml2
and tried reinstalling nokogiri:
$ sudo gem install nokogiri
but I still get the same warning.
I also notice that the nokogiri website says the pre-requisites
include libxml2-dev and libxslt-dev, which I know nothing about. Is
there a straightforward way to upgrade everything without resorting to
Fink or Macports? I've never used those programs before because
everything I've tried to install is pretty easy.
Thanks.