I'm trying to compile caffe without GPU support. I successfully ran "make all" and "make test", but when I try to run "make runtest", I get the following output:
.build_release/tools/caffe
dyld: Library not loaded: libcaffe.so.1.0.0-rc3
Referenced from: /Users/SullyChen/Desktop/caffe/.build_release/tools/caffe
Reason: image not found
make: *** [runtest] Trace/BPT trap: 5
Any ideas on how to fix?
.build_release/tools/caffedyld: Library not loaded: libcaffe.so.1.0.0-rc3
Referenced from: /Users/mh/caffe/.build_release/tools/caffe
Reason: image not foundmake: *** [runtest] Trace/BPT trap: 5
echo $DYLD_FALLBACK_LIBRARY_PATH/usr/local/cuda/lib:/Users/mh/anaconda/lib:/usr/local/lib:/usr/lib:/Users/mh/caffe/build/lib
export LD_LIBRARY_PATH=/Users/SullyChen/Desktop/caffe/.build_release/lib
export DYLD_LIBRARY_PATH=/Users/SullyChen/Desktop/caffe/.build_release/lib
I'm not sure why none of that worked. I compiled Caffe a while ago on an older version of OS X, but I'm running 10.11.2 and struggling to compile.
install_name_tool -change libcaffe.so.1.0.0-rc3 @executable_path/../lib/libcaffe.so.1.0.0-rc3 .build_release/tools/caffe
install_name_tool -change libcaffe.so.1.0.0-rc3 @executable_path/../lib/libcaffe.so.1.0.0-rc3 .build_release/test/test_all.testbin
install_name_tool -change libcaffe.so.1.0.0-rc3 @loader_path/../../.build_release/lib/libcaffe.so.1.0.0-rc3 python/caffe/_caffe.so