homebrew - ld:存档没有目录文件错误与自制程序
问题描述
我正在尝试编译微信,
%> brew upgrade weechat --debug
...
[ 86%] Built target weechat_gui_curses_normal
[ 87%] Building C object src/gui/curses/normal/CMakeFiles/weechat.dir/main.o
[ 87%] Linking C executable weechat
ld: archive has no table of contents file '../../../plugins/libweechat_plugins.a' for architecture x86_64
clang: error: unable to execute command: Segmentation fault: 11
clang: error: linker command failed due to signal (use -v to see invocation)
make[2]: *** [src/gui/curses/normal/weechat] Error 254
make[1]: *** [src/gui/curses/normal/CMakeFiles/weechat.dir/all] Error 2
make: *** [all] Error 2
bash-3.2$ exit
它失败了archive has no table of contents file for architecture x86_64
,这似乎是一个通用错误,因为它发生在 mysql@5.5 和许多其他包中。
我还看到了 ranlib 错误
/usr/local/homebrew/bin/ranlib: libweechat_gui_curses_normal.a(gui-curses-term.o): unknown load command 0x32
有任何想法吗?
解决方案
解决。
简单地做brew unlink binutils
或指定 RANLIB=/usr/bin/ranlib。
推荐阅读
- javascript - Date.toString 和 Date.toLocaleDateString 在 Chrome 和 Firefox 中不一致?
- java - 将 URL 从推送通知传递到 WebView
- javascript - MatDialog 服务单元测试 Angular 6 错误
- wix - 升级期间未(仅)复制文件
- html - CSS - 调整浏览器窗口大小时修复边框宽度变化
- regex - 在特殊情况下用裸 url 替换 Markdown 链接
- ionic-framework - 即使手机使用 Ionic 处于静音模式,如何在收到推送通知时发出声音?
- ruby-on-rails - 使用 session 来确定它是注册还是登录
- python - 取忽略零值的列表列表的平均值
- laravel - Laravel 集合对集合中的多列求和