[Trilinos-Users] Some issue related to rpath in Mac OS X El Capitan

Sai P Uppati uppatis at utexas.edu
Fri Jan 15 16:00:56 EST 2016


I'm compiling Trilinos 12.7 (dev) version on Mac OS X 10.11.2 (El Capitan).
The compilation and installation for Trilinos goes fine (with the package
options I've chosen), however when I try to build Peridigm based on this
Trilinos dependency, (after compilation), all unit tests fail for Peridigm.
When I check the logs, I see the same type of error over and over again:

dyld: Library not loaded: libsuplib.12.dylib
 Referenced from: /Users/Sai/Box
 Reason: image not found

This is an example, but it happens with other binaries (e.g. exodiff) and
their dependent libraries. All the libraries are intact in the
/usr/local/trilinos/lib directory, but during runtime these libraries don't
seem to be loading as need for the executables in the
/usr/local/trilinos/bin directory to run.

All tests (100%) failed for Peridigm, so maybe there is some simple fix,
but I'm not sure.

In this version of OS X especially, I'm not able to add DYLD_LIBRARY_PATH
as an environment variable to allow the linkers to find the appropriate
libraries with in the trilinos lib directory. Apparently, SIP (system
integrity protection) is a new feature that needs to be turned off before
such an environment variable can be set. I'm not sure turning off SIP is a
good idea.

Any help with this issue is appreciated.

One more thing to note: I got a lot of the cmake configure script options
from another researcher in my group, and the following option was set as


Not sure if this has anything to do with it, but just wanted to mention it.
I can provide the whole cmake configure script for trilinos I'm using if
needed, but for now I think this email is long enough.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://trilinos.org/pipermail/trilinos-users/attachments/20160115/42954e0b/attachment.html>

More information about the Trilinos-Users mailing list