Libxml2 warning message

I used rvm to install jruby 1.4.0 on OSX 10.5 and it seems to work but
i get this libxml2 message that I don’t get using c ruby:

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.

I installed libxml 2.7.3 using macports and it sits in front of /usr/
bin in my PATH. I am using java 1.6.0_15 under /System/Library/
Frameworks/JavaVM.framework/Versions/1.6.0/Home/.

I can’t seem to figure out why jruby uses the older version of libxml2.

thx

-karl


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Hi Karl,

On Sat, Feb 6, 2010 at 2:59 PM, Karl B. [email protected] wrote:

I used rvm to install jruby 1.4.0 on OSX 10.5 and it seems to work but i get
this libxml2 message that I don’t get using c ruby:

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.

Did you read
http://wiki.github.com/tenderlove/nokogiri/what-to-do-if-libxml2-is-being-a-jerk?
I got the same libxml2 message as yours. After I reinstalled nokogiri
following the instruction there, I don’t see the
message anymore. Give it a try.

-Yoko


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Thanks Yoko. I followed those instructions and installed pointing to
my macports installation and unfortunately i still ran into the same
message along with a missing ZoneInfo message.

petrushka:weshop_email karl$ cucumber features/
ZoneInfo: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/
Home/lib/zi/ZoneInfoMappings (No such file or directory)
ZoneInfo: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/
Home/lib/zi/ZoneInfoMappings (No such file or directory)
Using the default profile…
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.
On Feb 6, 2010, at 3:49 PM, Yoko H. wrote:

pleasure, you
following the instruction there, I don’t see the
I can’t seem to figure out why jruby uses the older version of


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

On Sat, Feb 6, 2010 at 6:48 PM, Karl B. [email protected] wrote:

I downgraded down to java 1.5 and the libxml problem seems to have gone away
though I still have that ZoneInfoMappings message.

ZoneInfo:
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/zi/ZoneInfoMappings
(No such file or directory)
ZoneInfo:
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/zi/ZoneInfoMappings
(No such file or directory)

I’m using Java update 6 on OS X, but I haven’t encountered this error.
I think Support : DbVis Software
looks similar to your case, so the error might be gone if you
reinstall Java.

-Yoko

(No such file or directory)
constant

this libxml2 message that I don’t get using c ruby:
nokogiri.
I installed libxml 2.7.3 using macports and it sits in front of /usr/bin

To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

I downgraded down to java 1.5 and the libxml problem seems to have
gone away though I still have that ZoneInfoMappings message.

ZoneInfo: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/
Home/lib/zi/ZoneInfoMappings (No such file or directory)
ZoneInfo: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/
Home/lib/zi/ZoneInfoMappings (No such file or directory)

On Feb 6, 2010, at 4:33 PM, Karl B. wrote:

HI. You’re using libxml2 version 2.6.16 which is over 4 years old

plenty of bugs. We suggest that for maximum HTML/XML parsing
Did you read http://wiki.github.com/tenderlove/nokogiri/what-to-do-if-libxml2-is-being-a-jerk?
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/.

http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

first uninstall nokogiri gem… It will warn you about dependencies but
dont care, go ahead and uninstall nokogiri…

brew uninstall libxml2

brew install libxml2

brew link libxml2

Then install nokogiri again… gem install nokogiri… That’s it!!!

Yoko H. wrote in post #887193:

On Sat, Feb 6, 2010 at 6:48 PM, Karl B. [email protected] wrote:

I downgraded down to java 1.5 and the libxml problem seems to have gone away
though I still have that ZoneInfoMappings message.

ZoneInfo:

/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/zi/ZoneInfoMappings

(No such file or directory)
ZoneInfo:

/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/zi/ZoneInfoMappings

(No such file or directory)

I’m using Java update 6 on OS X, but I haven’t encountered this error.
I think Support : DbVis Software
looks similar to your case, so the error might be gone if you
reinstall Java.

-Yoko

(No such file or directory)
constant

this libxml2 message that I don’t get using c ruby:
nokogiri.
I installed libxml 2.7.3 using macports and it sits in front of /usr/bin

To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email