[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sup-talk] xapian load issues



Excerpts from fedzor's message of Sat Jul 10 13:55:51 -0400 2010:

I'm not a mac person, but...

> /Users/ari/.rvm/gems/ruby-1.8.7-p174/gems/xapian-full-1.1.3.4/lib/_xapian.bundle: dlopen(/Users/ari/.rvm/gems/ruby-1.8.7-p174/gems/xapian-full-1.1.3.4/lib/_xapian.bundle, 9): Library not loaded: /usr/local/lib/libxapian-1.1.3.dylib (LoadError)
>  Referenced from: /Users/ari/.rvm/gems/ruby-1.8.7-p174/gems/xapian-full-1.1.3.4/lib/_xapian.bundle
>  Reason: image not found -
>  /Users/ari/.rvm/gems/ruby-1.8.7-p174/gems/xapian-full-1.1.3.4/lib/_xapian.bundle

How did you install the non-gem part of xapian?  Eg the .dylib files
that the .dylib file built by the gem would be linked
against...looking at this error, I'd suspect you built it by hand or
with some other (macports?) process.  Does
/usr/local/lib/libxapian-1.1.3.dylib exist?  Is it in fact a dynamic
shared object (file /usr/local/lib/libxapian...).  Excuse the
terminology if it's not that used by the mac platform.

If libxapian-1.1.3.dylib is not in /usr/local, but in some other
location, you could be fighting an RPATH (embedded in another .dylib
file) or an environment setting like LD_LIBRARY_PATH, etc.

First of all, make sure your environment isn't polluted with LD*
variables.  Second, determine the correct location of the xapian
library.  Third, report back and hope there are some other mac people
here! :)

HTH.
-Ben
--
Ben Walton
Systems Programmer - CHASS
University of Toronto
C:416.407.5610 | W:416.978.4302

_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk