所以有一天,我的Mac拒绝启动,我只能通过重新安装OSX Mavericks来修复它。之后,由自制程序管理的我的编程环境停止工作。
首先,我必须重新链接所有公式以取回命令。现在,当我编译我的C++项目时,出现以下错误。
cls ~/workspace/NetworKit $ !scons
scons --target=Tests --optimize=D
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
g++-4.8 -o .buildD/centrality/Betweenness.o -c -std=c++11 -Wall -c -fmessage-length=0 -fPIC -fopenmp -O0 -g3 -I/Users/cls/workspace/gtest-1.7.0/include src/cpp/centrality/Betweenness.cpp
dyld: Library not loaded: /usr/local/opt/libmpc08/lib/libmpc.2.dylib
Referenced from: /usr/local/Cellar/gcc48/4.8.2/libexec/gcc/x86_64-apple-darwin13.0.0/4.8.2/cc1plus
Reason: image not found
g++-4.8: internal compiler error: Trace/BPT trap: 5 (program cc1plus)
scons: *** [.buildD/centrality/Betweenness.o] Error -6
scons: building terminated because of errors.
图书馆发生了什么事,我该如何解决?
最佳答案
通过以下方法重新安装GCC 4.8来解决:
brew reinstall gcc48
关于c++ - libmpc-dyld:库未加载-原因:找不到图像,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/23384162/