Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eweka.nl!lightspeed.eweka.nl!193.141.40.65.MISMATCH!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'root': 0.05; 'variables': 0.07; 'executable': 0.09; 'expected.': 0.09; 'makefile': 0.09; 'variables.': 0.09; 'wrapper': 0.09; 'cc:addr :python-list': 0.11; 'python': 0.11; 'compute': 0.16; 'i.e.,': 0.16; 'luck!': 0.16; 'macosx': 0.16; 'operation,': 0.16; 'subject:failed': 0.16; 'tripped': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'starts': 0.20; 'cc:addr:python.org': 0.22; 'load': 0.23; 'fixed.': 0.24; 'subject: .': 0.24; 'paul': 0.24; 'environment': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'correct': 0.29; 'errors': 0.30; 'needed.': 0.30; 'getting': 0.31; 'flags': 0.31; 'libraries': 0.31; 'probably': 0.32; 'python.org': 0.32; 'linux': 0.33; 'message.': 0.35; "can't": 0.35; 'problem.': 0.35; 'case,': 0.35; 'but': 0.35; 'add': 0.35; 'building': 0.35; 'thanks': 0.36; 'should': 0.36; 'whatever': 0.38; 'remove': 0.60; 'skip:u 10': 0.60; 'received:unknown': 0.61; 'received:173': 0.61; 'back': 0.62; "you'll": 0.62; 'header:Reply-To:1': 0.67; 'smith': 0.68; 'reply-to:no real name:2**0': 0.71; 'article': 0.77; 'installer': 0.84; 'choice.': 0.93 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mad-scientist.net; s=default; h=Content-Transfer-Encoding:Mime-Version:Content-Type:References:In-Reply-To:Date:Cc:To:Reply-To:From:Subject:Message-ID; bh=66+AAtZAXOUNFyAUhhd/m7ZdRYCgntodJP7c4CxhQLM=; b=f3JDFS4t37HxdShS4BDNLpXtHADLM/rDZ5aeyN+Y4YOwfNSLm9mVaBN8OKREWVHhYYUU2JGcac+oIe0qQJK3b1MVW2TLWB/n+yh02Y8U2jkNB2wwfq7xm7G4wSjkWLwK; Subject: Re: python 2.7.x on MacOSX: failed dlopen() on .so's From: Paul Smith To: Ned Deily Date: Fri, 15 Nov 2013 17:23:30 -0500 In-Reply-To: References: <1384370183.3496.472.camel@pdsdesk> <1384383583.3496.505.camel@pdsdesk> <1384392275.2758.153.camel@homebase> <668AB11B-465D-43DD-949E-71D421985EEB@acm.org> <1384442536.3496.532.camel@pdsdesk> Organization: GNU's Not UNIX! Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.6.4 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Identified-User: {678:box531.bluehost.com:madscie1:mad-scientist.us} {sentby:smtp auth 173.9.45.73 authed with paul+mad-scientist.us} Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: paul@mad-scientist.net List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 26 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1384554614 news.xs4all.nl 15961 [2001:888:2000:d::a6]:58609 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:59564 On Thu, 2013-11-14 at 10:36 -0800, Ned Deily wrote: > In article <1384442536.3496.532.camel@pdsdesk>, > Paul Smith wrote: > [...] > > By relocatable I mean "runnable from any location"; i.e., not fixed. I > > have a wrapper around the Python executable that can compute the correct > > root directory and set any environment variables or add flags or > > whatever might be needed. > > In that case, the python.org installer may not be a good choice. You should > be to accomplish what you want by building your own Python. You'll probably > find you were getting tripped up by unnecessarily setting environment > variables. Good luck! Thanks Ned. I got sidetracked for a while but I got back to this now, and I found my problem. The makefile I was using to control the build on Linux was stripping the python executable to make it smaller. However, stripping the python executable on MacOSX breaks it completely so it can't load its shared libraries and I get errors as in my original message. If I remove the "strip" operation, then everything starts to work as expected.