unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Michael Williams <mike@pentangle.net>
To: notmuch@notmuchmail.org
Subject: Installation problem on OS X
Date: Thu, 27 Oct 2011 20:07:05 -0500	[thread overview]
Message-ID: <EAF3A779-6A01-4B17-92B5-5236970DCECF@pentangle.net> (raw)

Hi,

there seems to be a problem with notmuch on OS X when installed to a non-standard location: it's install name is "libnotmuch.*.dylib" rather than something like "$(LIBDIR)/libnotmuch.*.dylib", which prevents the binary from locating the library when things are installed in a nonstandard location. make works, but attempts to run it result in

dyld: Library not loaded: libnotmuch.2.dylib
 Referenced from: /Users/mike/.homebrew/bin/notmuch
 Reason: image not found
Trace/BPT trap

I ran into this when installing it via the homebrew packaing system into somewhere other than /usr/local. I've fixed it for the time being by doing 

 install_name_tool -change libnotmuch.2.dylib /Users/mike/.homebrew/lib/libnotmuch.2.dylib /Users/mike/.homebrew/bin/notmuch

and in principle I could add a post-install hook to the homebrew formula to do this for other users of homebrew/OS X, but it seems like this is something that would be better fixed upstream. Any thoughts?

A related issue has come up before: http://notmuchmail.org/pipermail/notmuch/2011/004094.html. Here's the discussion of this issue at homebrew: https://github.com/mxcl/homebrew/issues/8284.

Mike

             reply	other threads:[~2011-10-28  1:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-28  1:07 Michael Williams [this message]
2011-10-28 13:47 ` Installation problem on OS X Tim Gray
2011-10-28 20:18   ` Michael Williams
2011-10-29  2:03     ` David Bremner
  -- strict thread matches above, loose matches on Subject: below --
2011-10-26  2:23 Michael Williams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=EAF3A779-6A01-4B17-92B5-5236970DCECF@pentangle.net \
    --to=mike@pentangle.net \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).