Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #59415

Re: python 2.7.x on MacOSX: failed dlopen() on .so's

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <paul@mad-scientist.net>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.015
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'third-party': 0.04; 'base.': 0.05; '(b)': 0.07; 'binary': 0.07; 'dynamically': 0.07; 'versions,': 0.07; 'cc:addr:python-list': 0.11; 'python': 0.11; 'systems.': 0.12; 'windows': 0.15; '16:00': 0.16; ':-).': 0.16; 'gnu/linux.': 0.16; 'infinitely': 0.16; 'internally': 0.16; 'libraries.': 0.16; 'macos': 0.16; 'macosx': 0.16; 'mean,': 0.16; 'portable': 0.16; 'subject:failed': 0.16; 'supplied,': 0.16; 'subject:python': 0.16; 'thanks,': 0.17; 'wrote:': 0.18; 'wed,': 0.18; 'trying': 0.19; 'first.': 0.19; 'seems': 0.21; 'cc:addr:python.org': 0.22; 'installation': 0.23; '(a)': 0.24; 'subject: .': 0.24; 'versions': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; "i've": 0.25; 'certain': 0.27; 'header:In-Reply- To:1': 0.27; "i'm": 0.30; 'that.': 0.31; 'usually': 0.31; 'libraries': 0.31; "they'll": 0.31; 'yourself.': 0.31; 'python.org': 0.32; 'another': 0.32; 'running': 0.33; 'guess': 0.33; 'older': 0.33; 'trouble': 0.34; 'could': 0.34; 'but': 0.35; 'add': 0.35; 'building': 0.35; 'version': 0.36; 'installing': 0.36; 'next': 0.36; "i'll": 0.36; 'should': 0.36; 'effort': 0.37; 'so,': 0.37; 'system,': 0.38; 'skip:- 10': 0.38; 'ability': 0.39; 'how': 0.40; 'even': 0.60; 'worry': 0.60; 'received:unknown': 0.61; 'hardware': 0.61; 'range': 0.61; 'simple': 0.61; 'kind': 0.63; 'stand': 0.64; 'different': 0.65; 'chance': 0.65; 'needs,': 0.65; 'header:Reply-To:1': 0.67; 'default': 0.69; 'saving': 0.69; 'reply-to:no real name:2**0': 0.71; 'guaranteed': 0.75; '*really*': 0.84; 'actually,': 0.84; 'hand.': 0.84; 'received:69.89': 0.84; 'wars': 0.84; 'careful': 0.91; 'discovering': 0.91; 'releases.': 0.91; 'task,': 0.91; 'thing,': 0.91
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=9dv1DqFA54/tVWeb8cZ4jWZloJFPLqS5hQ0gA5IRQnk=; b=SG0vlPRyY0bjfs5hsrwE+f3ie3312x6xrJI6f4sFcgEx9kJu8pdk19go5qRowVlDRcxznC/rHlRpC7w3X6DC1aEm9j9554weEmjEu3aWJc6y4NXFKSOO+wlA69F+S8sW;
Subject Re: python 2.7.x on MacOSX: failed dlopen() on .so's
From Paul Smith <paul@mad-scientist.net>
To Ned Deily <nad@acm.org>
Date Wed, 13 Nov 2013 20:24:35 -0500
In-Reply-To <CDF80417-B552-488E-8FC9-BF84CA32AA78@acm.org>
References <1384370183.3496.472.camel@pdsdesk> <nad-E7CC3B.14401113112013@news.gmane.org> <1384383583.3496.505.camel@pdsdesk> <CDF80417-B552-488E-8FC9-BF84CA32AA78@acm.org>
Organization GNU's Not UNIX!
Content-Type text/plain; charset="UTF-8"
X-Mailer Evolution 3.6.4-0ubuntu1
Mime-Version 1.0
Content-Transfer-Encoding 7bit
X-Identified-User {678:box531.bluehost.com:madscie1:mad-scientist.us} {sentby:smtp auth 146.115.71.23 authed with paul@mad-scientist.us}
X-Mailman-Approved-At Thu, 14 Nov 2013 08:47:54 +0100
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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2584.1384415276.18130.python-list@python.org> (permalink)
Lines 52
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1384415276 news.xs4all.nl 15868 [2001:888:2000:d::a6]:48749
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:59415

Show key headers only | View raw


On Wed, 2013-11-13 at 16:00 -0800, Ned Deily wrote:
> > The reason I've set PYTHONHOME is ultimately I need this installation to
> > be relocatable.  It's going to be shared across lots of different
> > systems and they'll have the ability to copy it wherever they want.
> 
> That could be problematic. You need to be *really* careful about how
> you do that.  You stand a chance with a non-shared installation.

You mean, --disable-shared?  That's what I want, ultimately, but I was
going to start with the default configuration first.

I'm discovering that this is tricky.  I don't want to bring OS wars into
it, but this kind of thing is so simple and just works on GNU/Linux.  I
guess I've been spoiled :-).

I'm somewhat dreading my next effort after MacOS: the same thing, on
Windows :-/.

And another task, which seems like it will be fun: building GDB on
MacOSX with Python support enabled...

> You still should not need to set PYTHONHOME.  Also, be aware that
> executables and libraries built on one version of OS X are not
> guaranteed to work on other versions, particularly older versions
> unless you take certain precautions.  Even non-shared Pythons on OS X
> dynamically link with system-supplied libraries which can vary across
> os releases.  And not all libraries are supplied, so, depending on
> your needs, you may need to supply some additional third-party
> libraries.

This is why I'm building on this very old system, and am loath to update
it.

One saving grace is that while I need my installation to be relocatable,
I _don't_ need it to be infinitely portable across MacOSX systems.  I'm
using it internally only and so I have some control over the version of
MacOS and the hardware that it's running on.  I don't need to worry
about non-Intel hardware, or versions of MacOS prior to the one I'm
using here.

> For the python.org OS X binary installers, we go to a fair amount of
> trouble to build Pythons that will work across a range of OS X
> releases.  You might want to consider using one of them as a base.
> It's usually a lot less work than trying to make it work yourself.

Hm, that's an idea.  I don't HAVE to build Python myself, actually, I
just need (a) it to be relocatable, and (b) to add these extra modules
to it so I can use it across systems without installing them
individually by hand.

Thanks, I'll look into this further.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: python 2.7.x on MacOSX: failed dlopen() on .so's Paul Smith <paul@mad-scientist.net> - 2013-11-13 20:24 -0500

csiph-web