<br>I've got a dynamic link issue (see below) and could use some expert advice on the best way to resolve this for OSX. I want to avoid RPATH settings, if possible.<br><br>Thanks, Darren<br><br><br><br><div class="gmail_quote">
---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Darren Weber</b> <span dir="ltr"><<a href="mailto:darren.weber.lists@gmail.com">darren.weber.lists@gmail.com</a>></span><br>Date: Tue, Apr 7, 2009 at 5:20 PM<br>
Subject: Re: python path configuration<br>To: <a href="mailto:macports-dev@lists.macosforge.org">macports-dev@lists.macosforge.org</a><br><br><br><br>Thanks, Bryan.<br><br>I found an option to specify an install<br><br>--prefix='/opt/local/Library/Frameworks/Python.framework/Versions/2.6/'<br>
<br>That provided an installation into<br><br>/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/VTK-5.4.0-py2.6.egg/vtk/<br>
<br>That part is good, but it doesn't work due to dlopen issues (argh), eg:<br><br>Python 2.6.1 (r261:67515, Jan 30 2009, 11:23:18) <br>[GCC 4.0.1 (Apple Inc. build 5490)] on darwin<br>Type "help", "copyright", "credits" or "license" for more information.<br>
>>> import vtk<br>Traceback (most recent call last):<br> File "<stdin>", line 1, in <module><br> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/VTK-5.4.0-py2.6.egg/vtk/__init__.py", line 41, in <module><br>
from common import *<br> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/VTK-5.4.0-py2.6.egg/vtk/common.py", line 7, in <module><br> from libvtkCommonPython import *<br>
ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/VTK-5.4.0-py2.6.egg/vtk/libvtkCommonPython.so, 10): Library not loaded: libvtkCommonPythonD.5.4.dylib<br> Referenced from: /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/VTK-5.4.0-py2.6.egg/vtk/libvtkCommonPython.so<br>
Reason: image not found<br>>>> <br><br>So now I have to track down how the libraries were linked and check paths and stuff for that.<br><br>Take care, Darren<div><div></div><div class="h5"><br><br><br><div class="gmail_quote">
On Tue, Apr 7, 2009 at 1:38 PM, Bryan Blackburn <span dir="ltr"><<a href="mailto:blb@macports.org" target="_blank">blb@macports.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>On Tue, Apr 07, 2009 at 12:57:02PM -0700, Darren Weber said:<br>
> I am doing some manual testing of the build and install for VTK 5.4, which<br>
> has python wrapping. In the course of this testing, I've stumbled across an<br>
> installation issue with python 2.6. I can't proceed without knowing more<br>
> about this should be handled within macports. Any advice and pointers to<br>
> more information would be really handy!<br>
<br>
</div>Try setting PYTHONPATH to python.prefix (which is defined in the python<br>
groups), ${frameworks_dir}/Python.framework/Versions/${python.branch} (where<br>
python.branch would be 2.6 in this case). So something like<br>
<br>
configure.env PYTHONPATH="${frameworks_dir}/Python.framework/Versions/2.6"<br>
<br>
Since there is no ${prefix}/lib/python2.6 and hence no site-packages under<br>
that, if you can't specify the python prefix separately, using PYTHONPATH<br>
seems like it may work. And in case anyone asks, using a symlink in<br>
${prefix}/lib for python2.6 won't work or we'll run into the python25 issue<br>
of 'not a directory'.<br>
<br>
Bryan<br>
<br>
[...]<br>
<br>
_______________________________________________<br>
macports-dev mailing list<br>
<div><a href="mailto:macports-dev@lists.macosforge.org" target="_blank">macports-dev@lists.macosforge.org</a><br>
</div><a href="http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev" target="_blank">http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev</a><br>
</blockquote></div><br>
</div></div></div><br>