From 3a03ab93815b6da539a003bf528910b0de7ad395 Mon Sep 17 00:00:00 2001 From: Michael Williams Date: Fri, 28 Oct 2011 20:07:05 +1900 Subject: [PATCH] Installation problem on OS X --- b2/a5f5f7571381d932bacdb5c3a4f1abe7ffe350 | 92 +++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 b2/a5f5f7571381d932bacdb5c3a4f1abe7ffe350 diff --git a/b2/a5f5f7571381d932bacdb5c3a4f1abe7ffe350 b/b2/a5f5f7571381d932bacdb5c3a4f1abe7ffe350 new file mode 100644 index 000000000..79912c311 --- /dev/null +++ b/b2/a5f5f7571381d932bacdb5c3a4f1abe7ffe350 @@ -0,0 +1,92 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 8C647429E25 + for ; Thu, 27 Oct 2011 18:07:09 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.699 +X-Spam-Level: +X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5 + tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, + RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id cmXFFixAa-k9 for ; + Thu, 27 Oct 2011 18:07:09 -0700 (PDT) +Received: from mail-yw0-f53.google.com (mail-yw0-f53.google.com + [209.85.213.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id E9243431FB6 + for ; Thu, 27 Oct 2011 18:07:08 -0700 (PDT) +Received: by ywe9 with SMTP id 9so3030848ywe.26 + for ; Thu, 27 Oct 2011 18:07:08 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; + h=sender:from:content-type:content-transfer-encoding:subject:date + :message-id:to:mime-version:x-mailer; + bh=Q49MdnxyFTKpiwyG1voQ/Sw12LrHhOoPsUBovAfOrsQ=; + b=x0bVfYEGXgnzlHy7SxZNNglDfAut96lpguBjnLGTkJA/DQ9QTBPbSMCgUjfKAMAyGH + jVNnXL2xWktFFLl7yfSD3VHCdqjYhrOVutLwOcQSDU3fUsqP/C22kKnlakh+iNqx+5rx + 7YEcmOSIgl38bmzSyByUHJUsTxHlbMVT/Rgn4= +Received: by 10.150.103.8 with SMTP id a8mr721558ybc.11.1319764028511; + Thu, 27 Oct 2011 18:07:08 -0700 (PDT) +Received: from [192.168.3.148] (tqroute.as.utexas.edu. [198.214.229.68]) + by mx.google.com with ESMTPS id g38sm19943387ann.4.2011.10.27.18.07.06 + (version=TLSv1/SSLv3 cipher=OTHER); + Thu, 27 Oct 2011 18:07:07 -0700 (PDT) +Sender: Michael Williams +From: Michael Williams +Content-Type: text/plain; charset=us-ascii +Content-Transfer-Encoding: quoted-printable +Subject: Installation problem on OS X +Date: Thu, 27 Oct 2011 20:07:05 -0500 +Message-Id: +To: notmuch@notmuchmail.org +Mime-Version: 1.0 (Apple Message framework v1084) +X-Mailer: Apple Mail (2.1084) +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Fri, 28 Oct 2011 01:07:09 -0000 + +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=20 + + 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= -- 2.26.2