Subject: Re: [sup-talk] xapian load issues

From: Ben Walton <[email-masked]>
Date: Sat, 10 Jul 2010 14:28:48 -0400

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
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk

---

From: fedzor <[email-masked]>
Date: Sat, 10 Jul 2010 13:55:51 -0400

Hello:

I love sup. I have used it before (0.4) and loved it to bits, but had to stop using it because my computer was too slow.

But now, I have a fast laptop and want to make sup my primary MUA. Let's give it a shot, shall we?

[ari: ~] sup
/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
       from /Users/ari/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
       from /Users/ari/.rvm/gems/ruby-1.8.7-p174/gems/xapian-full-1.1.3.4/lib/xapian.rb:41
       from /Users/ari/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
       from /Users/ari/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
       from /Users/ari/.rvm/gems/ruby-1.8.7-p174/gems/sup-0.11/lib/sup/index.rb:3
       from /Users/ari/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
       from /Users/ari/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
       from /Users/ari/.rvm/gems/ruby-1.8.7-p174/gems/sup-0.11/lib/sup.rb:316
       from /Users/ari/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
       from /Users/ari/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
       from /Users/ari/.rvm/gems/ruby-1.8.7-p174/gems/sup-0.11/bin/sup:15
       from /Users/ari/.rvm/gems/ruby-1.8.7-p174/bin/sup:19:in `load'
       from /Users/ari/.rvm/gems/ruby-1.8.7-p174/bin/sup:19
[ari: ~] 

FUUUUUUUUU. I have no idea how to fix this, and I have done mucho googling for it. Thoughts? Suggestions? Help?

- Ari Brown (seydar)