unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: "Robert Künnemann" <robert@kunnemann.de>
To: David Bremner <david@tethera.net>
Cc: notmuch@notmuchmail.org
Subject: Re: [bug] Python bindings fail to load shared libraries in MacOS El Capitan
Date: Thu, 22 Oct 2015 09:38:29 +0200	[thread overview]
Message-ID: <20151022073829.GE15696@peachum.local> (raw)
In-Reply-To: <87pp08t5jf.fsf@maritornes.cs.unb.ca>

Hi!

On 21/10, David Bremner wrote:
>Robert Künnemann <robert@kunnemann.de> writes:
>>
>> nmlib = CDLL("libnotmuch.so.{0:s}".format(SOVERSION))
>>
>> in globals.py
>>
>> nmlib = CDLL("/usr/local/lib/libnotmuch.{0:s}.dylib".format(SOVERSION))
>
>In recent versions of notmuch there's already code there to detect MacOS
>and do something different. Are you saying that detection is not
>working?
It is working and adds the suffix ".dylyb" to the library name.

>Also, it seems like you are coding the absolute path name of
>the library. Is that really necessary?
It seems so. Two responses in the thread I mentioned
http://stackoverflow.com/questions/32905322/oserror-dlopenlibsystem-dylib-6-image-not-found
suggest the same, and it solved the issue for me.

I am happy to try out other, better solutions.

Cheers, Robert

  reply	other threads:[~2015-10-22  7:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-19 11:53 [bug] Python bindings fail to load shared libraries in MacOS El Capitan Robert Künnemann
2015-10-21 18:55 ` David Bremner
2015-10-22  7:38   ` Robert Künnemann [this message]
2015-10-22 15:32     ` David Bremner

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=20151022073829.GE15696@peachum.local \
    --to=robert@kunnemann.de \
    --cc=david@tethera.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).