Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #59363
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed3.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.016 |
| X-Spam-Evidence | '*H*': 0.97; '*S*': 0.00; 'problem?': 0.07; 'variables': 0.07; 'linker': 0.09; 'suggestions:': 0.09; 'variables.': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'suggest': 0.14; 'created.': 0.16; 'subject:failed': 0.16; 'sure.': 0.16; 'subject:python': 0.16; 'files.': 0.16; 'wrote:': 0.18; 'do.': 0.18; 'library': 0.18; 'wed,': 0.18; 'trying': 0.19; 'cc:addr:python.org': 0.22; 'installation': 0.23; "shouldn't": 0.24; 'subject: .': 0.24; 'environment': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; "i've": 0.25; 'source': 0.25; 'least': 0.26; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; 'wonder': 0.29; "i'm": 0.30; 'gcc': 0.31; "they'll": 0.31; 'figure': 0.32; 'but': 0.35; 'building': 0.35; 'there': 0.35; 'version': 0.36; 'options:': 0.36; 'thanks': 0.36; "i'll": 0.36; 'too': 0.37; 'starting': 0.37; 'problems': 0.38; 'skip:- 10': 0.38; 'ability': 0.39; 'does': 0.39; 'sure': 0.39; 'even': 0.60; 'received:unknown': 0.61; 'received:173': 0.61; 'you.': 0.62; 'back': 0.62; "you've": 0.63; 'different': 0.65; 'header:Reply- To:1': 0.67; 'reply-to:no real name:2**0': 0.71; 'friends': 0.81; '*really*': 0.84; 'env': 0.84; 'itself?': 0.84; 'pycrypto': 0.84 |
| 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=zt8o/DerZPsYaixU5ZqV8GBxfBw/kmI3RIPz8LZKwS8=; b=FYwvrDWAYO946muKTfH+72PT8jWQqxSDbmPA2zrazVqLp1dbsJlaAeAQsr4LRoNB/hS2/7pLpSrVWF50lvS0Mz58wDOc549SPAwpgDU1Pb9zcUrRYfwy/loinFcjZqbm; |
| 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 17:59:43 -0500 |
| In-Reply-To | <nad-E7CC3B.14401113112013@news.gmane.org> |
| References | <1384370183.3496.472.camel@pdsdesk> <nad-E7CC3B.14401113112013@news.gmane.org> |
| 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} |
| X-Mailman-Approved-At | Thu, 14 Nov 2013 01:03:13 +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.2566.1384387394.18130.python-list@python.org> (permalink) |
| Lines | 45 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1384387394 news.xs4all.nl 15993 [2001:888:2000:d::a6]:35487 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:59363 |
Show key headers only | View raw
Thanks for the response Ned!
On Wed, 2013-11-13 at 14:40 -0800, Ned Deily wrote:
> There shouldn't be any problems with what you are trying to do. It
> works for me with Python 2.7.6 and pycrypto-2.6.1. Some suggestions:
> - Avoid --enable-shared on OS X at least initially. There are too
> many ways things can go wrong. If you've built with it, suggest
> starting with a fresh Python source directory just to be sure.
I've tried it with all three options: no flag, --disable-shared, and
--enable-shared, and don't notice any difference in the results; even
with --enable-shared I don't seem to get any shared libs created.
> - Check the dynamic library dependencies of _struct. On OS X:
>
> otool -L /Users/build/python/lib/python2.7/lib-dynload/_struct.so
I get a libgcc_s reference as well, since I'm building with GCC:
/Users/build/python/lib/python2.7/lib-dynload/_struct.so:
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 159.1.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current
version 1105.0.0)
I wonder if using the GCC linker etc. is part of the problem?
> - Make sure you are *really* building pycrypto and friends with your
> Python and not with some other one.
I'm pretty sure but I'll triple-check.
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.
> - Check your other environment variables and make sure you are not
> setting any DYLD_ or LD_ env variables.
Hm; I am setting LD_LIBRARY_PATH to find the Python .so files. Does
python figure out where to look for them by itself?
Thanks for this info; I'll get back to you.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: python 2.7.x on MacOSX: failed dlopen() on .so's Paul Smith <paul@mad-scientist.net> - 2013-11-13 17:59 -0500
csiph-web