#41135: Better way as to set DYLD_LIBRARY_PATH? ---------------------------+-------------------------------- Reporter: mario.stief@… | Owner: macports-tickets@… Type: request | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Keywords: | Port: ---------------------------+-------------------------------- I'm using MacPorts for Mavericks. After installing the package gsl and executing a program that's using the library I'm getting {{{ dyld: Library not loaded: /usr/local/lib/libgsl.0.dylib }}} because obviously the library is located in /opt. Setting DYLD_LIBRARY_PATH to /opt/local/lib solves this problem, but then I get errors like {{{ dyld: Symbol not found: _iconv Referenced from: /usr/lib/libcups.2.dylib Expected in: /opt/local/lib/libiconv.2.dylib in /usr/lib/libcups.2.dylib ./bin/login: line 1: 7163 Trace/BPT trap: 5 osascript -e 'mount volume "afp://10.0.0.3/hdd1"' }}} for scripts that run just well before. I expect there is some better way than setting DYLD_LIBRARY_PATH? -- Ticket URL: <https://trac.macports.org/ticket/41135> MacPorts <http://www.macports.org/> Ports system for OS X