Hi all,

I have installed xapian ruby binding on my Leopard, but when i use
require 'xapian', it's failed,
the errors is:
require 'xapian'
LoadError: no such file to load -- _xapian
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/rubygems/custom_require.rb:27:in `require'
from /Library/Ruby/Site/1.8/xapian.rb:40
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/rubygems/custom_require.rb:27:in `require'
from (irb):1
puts $:
/Library/Ruby/Site/1.8
/Library/Ruby/Site/1.8/powerpc-darwin9.0
/Library/Ruby/Site/1.8/universal-darwin9.0
/Library/Ruby/Site
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
1.8/powerpc-darwin9.0
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
1.8/universal-darwin9.0
.
=> nil
>>

anyone knows how to solve it? Thanks.

- crax

Search Discussions

  • James Aylett at Nov 23, 2007 at 11:11 am

    On Fri, Nov 23, 2007 at 02:29:50PM +0800, CraX SUN wrote:

    I have installed xapian ruby binding on my Leopard, but when i use
    require 'xapian', it's failed,
    the errors is:
    require 'xapian'
    LoadError: no such file to load -- _xapian
    How did you do the final install step? Looks like part of the glue
    that holds Ruby and Xapian together hasn't been copied (probably
    called _xapian.so or similar).

    J

    --
    /--------------------------------------------------------------------------\
    James Aylett xapian.org
    james@tartarus.org uncertaintydivision.org
  • CraX SUN at Nov 23, 2007 at 1:08 pm
    ? 2007-11-23???7:11? James Aylett ???
    On Fri, Nov 23, 2007 at 02:29:50PM +0800, CraX SUN wrote:

    I have installed xapian ruby binding on my Leopard, but when i use
    require 'xapian', it's failed,
    the errors is:
    require 'xapian'
    LoadError: no such file to load -- _xapian
    How did you do the final install step? Looks like part of the glue
    that holds Ruby and Xapian together hasn't been copied (probably
    called _xapian.so or similar).
    Final install step is just typing: sudo make install, and every thing
    seems fine.

    I have tested xapian ruby binding on linux, all works fine, so i think
    maybe there is something
    wrong with _xapian.so

    - crax

    J

    --
    /--------------------------------------------------------------------------\
    James Aylett
    xapian.org
    james@tartarus.org
    uncertaintydivision.org

    _______________________________________________
    Xapian-discuss mailing list
    Xapian-discuss@lists.xapian.org
    http://lists.xapian.org/mailman/listinfo/xapian-discuss
  • James Aylett at Nov 23, 2007 at 1:15 pm

    On Fri, Nov 23, 2007 at 09:08:18PM +0800, CraX SUN wrote:

    Final install step is just typing: sudo make install, and every thing
    seems fine.

    I have tested xapian ruby binding on linux, all works fine, so i
    think maybe there is something wrong with _xapian.so
    Actually, on MacOS X it'll be called _xapian.dylib; can you see what's
    being built in xapian-bindings/ruby/.libs (just list the directory and
    email the output, there shouldn't be much in there).

    J

    --
    /--------------------------------------------------------------------------\
    James Aylett xapian.org
    james@tartarus.org uncertaintydivision.org
  • CraX SUN at Nov 23, 2007 at 1:57 pm
    ? 2007-11-23???9:15? James Aylett ???
    On Fri, Nov 23, 2007 at 09:08:18PM +0800, CraX SUN wrote:

    Final install step is just typing: sudo make install, and every thing
    seems fine.

    I have tested xapian ruby binding on linux, all works fine, so i
    think maybe there is something wrong with _xapian.so
    Actually, on MacOS X it'll be called _xapian.dylib; can you see what's
    Yes, but actually not :-(
    being built in xapian-bindings/ruby/.libs (just list the directory and
    email the output, there shouldn't be much in there).


    CraX-SUN-2:ruby crax$ ll .libs/
    total 4872
    lrwxr-xr-x 1 crax staff 13 11 20 15:01 _xapian.la -> ../
    _xapian.la
    -rw-r--r-- 1 crax staff 843 11 20 15:01 _xapian.lai
    -rwxr-xr-x 1 crax staff 498188 11 20 15:01 _xapian.so
    -rw-r--r-- 1 crax staff 1985580 11 20 15:01 xapian_wrap.o
    CraX-SUN-2:ruby crax$


    J

    --
    /--------------------------------------------------------------------------\
    James Aylett
    xapian.org
    james@tartarus.org
    uncertaintydivision.org

    _______________________________________________
    Xapian-discuss mailing list
    Xapian-discuss@lists.xapian.org
    http://lists.xapian.org/mailman/listinfo/xapian-discuss
  • James Aylett at Nov 23, 2007 at 1:59 pm

    On Fri, Nov 23, 2007 at 09:57:20PM +0800, CraX SUN wrote:

    Actually, on MacOS X it'll be called _xapian.dylib; can you see what's
    Yes, but actually not :-(
    Hmm, that's annoying. In the installed directory, there'll be a
    _xapian.so - try renaming it to _xapian.dylib as a first attempt.

    I'll try to reproduce this on my Mac box, although last time I tried
    it wasn't happy for all sorts of arcane reasons.

    J

    --
    /--------------------------------------------------------------------------\
    James Aylett xapian.org
    james@tartarus.org uncertaintydivision.org
  • CraX SUN at Nov 23, 2007 at 2:42 pm
    ? 2007-11-23???9:59? James Aylett ???
    On Fri, Nov 23, 2007 at 09:57:20PM +0800, CraX SUN wrote:

    Actually, on MacOS X it'll be called _xapian.dylib; can you see
    what's
    Yes, but actually not :-(
    Hmm, that's annoying. In the installed directory, there'll be a
    _xapian.so - try renaming it to _xapian.dylib as a first attempt. failed:-(

    I'll try to reproduce this on my Mac box, although last time I tried
    it wasn't happy for all sorts of arcane reasons.
    I am not familiar with libtool. The following is copied from one of my
    projects, Hope can help you.

    LDFLAGS= -L$(SQLITE_LIB) -lsqlite3 $(RAKNET_LIB) -dynamiclib -
    install_name @executable_path/libggdisk.$(VERSION).dylib -compatibility
    _version $(VERSION) -current_version $(VERSION)

    - crax

    J

    --
    /--------------------------------------------------------------------------\
    James Aylett
    xapian.org
    james@tartarus.org
    uncertaintydivision.org

    _______________________________________________
    Xapian-discuss mailing list
    Xapian-discuss@lists.xapian.org
    http://lists.xapian.org/mailman/listinfo/xapian-discuss
  • James Aylett at Nov 23, 2007 at 3:46 pm

    On Fri, Nov 23, 2007 at 10:42:22PM +0800, CraX SUN wrote:

    I'll try to reproduce this on my Mac box, although last time I tried
    it wasn't happy for all sorts of arcane reasons.
    I am not familiar with libtool. The following is copied from one of my
    projects, Hope can help you.

    LDFLAGS= -L$(SQLITE_LIB) -lsqlite3 $(RAKNET_LIB) -dynamiclib -
    install_name @executable_path/libggdisk.$(VERSION).dylib -compatibility
    _version $(VERSION) -current_version $(VERSION)
    Erm. Not really sure what to do with that.

    Okay, rename '_xapian.so' in your ruby site_ruby space to
    '_xapian.bundle'. This Works For Me(tm) (using the Locomotive ruby
    install). Quite how we get libtool to get this right automatically is
    another matter.

    J

    --
    /--------------------------------------------------------------------------\
    James Aylett xapian.org
    james@tartarus.org uncertaintydivision.org
  • Olly Betts at Nov 27, 2007 at 2:57 am

    On Fri, Nov 23, 2007 at 03:46:51PM +0000, James Aylett wrote:
    Okay, rename '_xapian.so' in your ruby site_ruby space to
    '_xapian.bundle'. This Works For Me(tm) (using the Locomotive ruby
    install). Quite how we get libtool to get this right automatically is
    another matter.
    That bit is easy enough - we can just rename the file after installing
    it, as we already do for Java on OS X (which needs ".jnilib").

    What do these commands output for Ruby on OS X?

    ruby -rrbconfig -e 'puts Config::CONFIG["DLEXT"]'
    ruby -rrbconfig -e 'puts Config::CONFIG["DLEXT2"]'

    Cheers,
    Olly
  • CraX SUN at Nov 27, 2007 at 3:04 am
    ? 2007-11-27???10:57? Olly Betts ???
    On Fri, Nov 23, 2007 at 03:46:51PM +0000, James Aylett wrote:
    Okay, rename '_xapian.so' in your ruby site_ruby space to
    '_xapian.bundle'. This Works For Me(tm) (using the Locomotive ruby
    install). Quite how we get libtool to get this right automatically is
    another matter.
    That bit is easy enough - we can just rename the file after installing
    it, as we already do for Java on OS X (which needs ".jnilib").

    What do these commands output for Ruby on OS X?

    ruby -rrbconfig -e 'puts Config::CONFIG["DLEXT"]' bundle
    ruby -rrbconfig -e 'puts Config::CONFIG["DLEXT2"]'
    nothing!

    - crax

    Cheers,
    Olly

    _______________________________________________
    Xapian-discuss mailing list
    Xapian-discuss@lists.xapian.org
    http://lists.xapian.org/mailman/listinfo/xapian-discuss
  • Olly Betts at Nov 27, 2007 at 2:44 am

    On Fri, Nov 23, 2007 at 01:15:27PM +0000, James Aylett wrote:
    On Fri, Nov 23, 2007 at 09:08:18PM +0800, CraX SUN wrote:

    Final install step is just typing: sudo make install, and every thing
    seems fine.

    I have tested xapian ruby binding on linux, all works fine, so i
    think maybe there is something wrong with _xapian.so
    Actually, on MacOS X it'll be called _xapian.dylib
    My understanding is that on OS X, ".dylib" is a "shared library" while
    ".so" or ".bundle" is a "module" (I don't really know why Apple felt
    the need to make this distinction).

    Anyway, the module here shouldn't be called _xapian.dylib.

    Cheers,
    Olly

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupxapian-discuss @
categoriesxapian
postedNov 23, '07 at 6:29a
activeNov 27, '07 at 3:04a
posts11
users3
websitexapian.org
irc#xapian

People

Translate

site design / logo © 2021 Grokbase