install-name-tool

dyld: Library not loaded … Reason: Image not found

蹲街弑〆低调 提交于 2019-11-26 11:02:34
When trying to run an executable I've been sent in Mac OS X, I get the following error dyld: Library not loaded: libboost_atomic.dylib Referenced from: /Users/"Directory my executable is in" Reason: image not found Trace/BPT trap:5 I have installed the boost libraries and they are located in /opt/local/lib . I think the problem has something to do with the executable only looking in the directory it is in as when I paste the 'libboost_atomic.dylib' in there, it doesn't mind about it anymore. Unfortunately then it complains it can't find the next boost library. Is there an easy way to fix this?

dyld: Library not loaded … Reason: Image not found

白昼怎懂夜的黑 提交于 2019-11-26 02:04:24
问题 When trying to run an executable I\'ve been sent in Mac OS X, I get the following error dyld: Library not loaded: libboost_atomic.dylib Referenced from: /Users/\"Directory my executable is in\" Reason: image not found Trace/BPT trap:5 I have installed the boost libraries and they are located in /opt/local/lib . I think the problem has something to do with the executable only looking in the directory it is in as when I paste the \'libboost_atomic.dylib\' in there, it doesn\'t mind about it