libmpc - dyld:未加载库 - 原因:未找到图像

时间:2014-04-30 09:15:44

标签: c++ macos gcc homebrew dynamic-linking

所以有一天我的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.

图书馆发生了什么,我该如何解决?

1 个答案:

答案 0 :(得分:3)

通过重新安装GCC 4.8解决:

brew reinstall gcc48
相关问题