I am having a problem with CGAL from MacPorts on OS X
- Keywords:
- mac os x macports cgal dolfin
I have just installed dolfin 0.9.7. The build process went smooth via Dorsal. However, I get the following when importing dolfin:
>>> >>>> from dolfin import *
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/install_
> import dolfin.cpp as cpp
> File "/install_
> _cpp = swig_import_
> File "/install_
> _mod = imp.load_
> ImportError: dlopen(
> Referenced from: /opt/local/
> Reason: image not found
This appears to be a bug in MacPorts' CGAL (or perhaps, CMake). In order to get around this for now, you need to do the following strange and dirty trick:
1. Navigate to your MacPorts library folder (/opt/local/lib by default) and do a
otool -L for each of libCGAL*
2. You will see your strange library
/opt/local/
popup in some of these.
3. Do a
install_
for each of the instances in each of the files.
e.g. install_name_tool -change /bigbroken/