[Xapian-tickets] [Xapian] #323: Can not build xapian-bindings for ruby 1.9
Xapian
nobody at xapian.org
Tue Jan 20 12:59:11 GMT 2009
#323: Can not build xapian-bindings for ruby 1.9
-----------------------------+----------------------------------------------
Reporter: cheba | Owner: olly
Type: defect | Status: assigned
Priority: normal | Milestone: 1.0.11
Component: Xapian-bindings | Version: 1.0.10
Severity: normal | Resolution:
Keywords: | Blockedby:
Platform: All | Blocking:
-----------------------------+----------------------------------------------
Comment(by olly):
Hmm, there's an impressive lack of consistency between distros here -
Ubuntu intrepid has a compatibility header for rubyio.h which just
includes ruby/io.h:
{{{
-rw-r--r-- 1 root root 3274 2008-01-07 04:49
/usr/include/ruby-1.9.0/ruby/io.h
-rw-r--r-- 1 root root 21 2007-06-10 15:06
/usr/include/ruby-1.9.0/rubyio.h
}}}
This header inclusion comes from SWIG and there's machinery in more recent
SWIG versions to handle this it seems.
For now, let's try a simpler workaround - from the xapian-bindings-1.0.10
directory:
{{{
#!sh
echo '#include "ruby/io.h"' > ruby/rubyio.h
make INCLUDES=-I`ruby -rrbconfig -e 'puts Config::CONFIG["rubyhdrdir"] +
"/" + Config::CONFIG["arch"]'`
}}}
--
Ticket URL: <http://trac.xapian.org/ticket/323#comment:7>
Xapian <http://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list