On Jan 30, 5:39 pm, Sam Ruby <[EMAIL PROTECTED]> wrote:
> Trans wrote:
>
> > On Jan 29, 1:59 pm, Sam Ruby <[EMAIL PROTECTED]> wrote:
> >> Two things:
>
> >> I'm trying to port a number of projects to Ruby 1.9. Current status can
> >> be seen here:
>
> >>http://intertwingly.net/projects/ruby19/logs/
>
> >> I'd like to try libxml2, presuming that people would be interested in
> >> accepting patches to make this work under 1.9, while continuing to work
> >> under 1.8.
>
> >> The second thing is that I first tried to build it under 1.8. What I
> >> get is:
>
> >> $ rake
> >> (in /home/rubys/svn/libxml)
> >> rake aborted!
> >> No such file or directory - ext/xml/libxml.h
> >> /home/rubys/svn/libxml/Rakefile:18:in `read'
> >> (See full trace by running task with --trace)
>
> >> Did I miss a step?
>
> > $ task/make
>
> OK, that builds a .so file. What setup do I need to run tast/test? I'm
> getting a lot of Error loading: tests/tc_* messages currently.
Ah... in task/test change the line:
$LOAD_PATH.unshift(File.expand_path('ext/libxml')) unless live
to:
unless live
$LOAD_PATH.unshift(File.expand_path('ext/libxml'))
$LOAD_PATH.unshift(File.expand_path('lib'))
end
BTW, to compile and install it is:
$ task/setup
This is a minor variation on Minero Aoki setup.rb, so anything you
could do with setup.rb you can do with task/setup.
T.
_______________________________________________
libxml-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/libxml-devel