unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* Installation problem on OS X
@ 2011-10-26  2:23 Michael Williams
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Williams @ 2011-10-26  2:23 UTC (permalink / raw)
  To: notmuch

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. I am not on the mailing list so please CC me on replies.

Mike

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Installation problem on OS X
@ 2011-10-28  1:07 Michael Williams
  2011-10-28 13:47 ` Tim Gray
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Williams @ 2011-10-28  1:07 UTC (permalink / raw)
  To: notmuch

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Installation problem on OS X
  2011-10-28  1:07 Installation problem on OS X Michael Williams
@ 2011-10-28 13:47 ` Tim Gray
  2011-10-28 20:18   ` Michael Williams
  0 siblings, 1 reply; 5+ messages in thread
From: Tim Gray @ 2011-10-28 13:47 UTC (permalink / raw)
  To: notmuch

On Oct 27, 2011 at 08:07 PM -0500, Michael Williams wrote:
>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?

I see you found my original issue.  I also submitted a patch for this 
way back on April 3rd:

http://notmuchmail.org/pipermail/notmuch/2011/004114.html

I'm not sure if it still works, or if it's the best solution.  But it 
worked at the time.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Installation problem on OS X
  2011-10-28 13:47 ` Tim Gray
@ 2011-10-28 20:18   ` Michael Williams
  2011-10-29  2:03     ` David Bremner
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Williams @ 2011-10-28 20:18 UTC (permalink / raw)
  To: notmuch


On 28 Oct 2011, at 08:47, Tim Gray wrote:

> On Oct 27, 2011 at 08:07 PM -0500, Michael Williams wrote:
>> 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?
> 
> I see you found my original issue.  I also submitted a patch for this way back on April 3rd:
> 
> http://notmuchmail.org/pipermail/notmuch/2011/004114.html
> 
> I'm not sure if it still works, or if it's the best solution.  But it worked at the time.

Thanks Tim. 

Would it be possible for a solution like this be applied to notmuch/master by someone with commit rights, or should OS X users patch downstream?

Mike

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Installation problem on OS X
  2011-10-28 20:18   ` Michael Williams
@ 2011-10-29  2:03     ` David Bremner
  0 siblings, 0 replies; 5+ messages in thread
From: David Bremner @ 2011-10-29  2:03 UTC (permalink / raw)
  To: Michael Williams, notmuch

On Fri, 28 Oct 2011 15:18:09 -0500, Michael Williams <mike@pentangle.net> wrote:
> > 
> > I'm not sure if it still works, or if it's the best solution.  But
> > it worked at the time.
> 
> Thanks Tim. 
> 
> Would it be possible for a solution like this be applied to
> notmuch/master by someone with commit rights, or should OS X users
> patch downstream?

I'm sure we can eventually patch the problem upstream. But we probably
need to be a bit more sure that this is really the correct solution. So
hopefully some other OS X users will chime in.

d

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-10-29  2:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-28  1:07 Installation problem on OS X Michael Williams
2011-10-28 13:47 ` 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

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).