|
From: | Magnus Lie Hetland |
Subject: | Re: Uninstalled interlibrary dependencies |
Date: | Tue, 14 Mar 2006 15:30:55 +0100 |
On Mar 14, 2006, at 14:24, Peter O'Gorman wrote:
Magnus,You'll need to run the python interpreter with the "right" env vars set. For Mac OS X, env DYLD_LIBRARY_PATH=/path/to/uninstalled/library python foo, for linux LD_LIBRARY_PATH=/path/to/uninstalled/library python etc..
Ah. Thanks -- that worked. I didn't think that would work when -rpath was used -- I guess I should have checked :)
Libtool usually generates a wrapper script for uninstalled programs, unfortunately, it can not do so for python or other interpreters.
I see. But is there any support functionality for this sort of thing? Any way of finding a platform-independent (sort of) environment variable, for example?
It seems a bit "icky" to use Autotools, and then to slap on an if statement to choose between DYLD_LIBRARY_PATH and LD_LIBRARY_PATH... (I guess this might be in the docs, though. I'll have another look there.)
Thanks!
Peter
-- Magnus Lie Hetland http://hetland.org
[Prev in Thread] | Current Thread | [Next in Thread] |