当我在macOS Sierra上运行brew upgrade
时,操作失败。它试图升级的唯一东西是vim 8.0.0550
。我试过删除tar文件并强制重新下载升级版,但这并没有帮助。这里是堆栈跟踪,我可以根据需要附加更多日志:升级VIM时Homebrew失败
ld: library not found for -lruby.2.4.0
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [vim] Error 1
make: *** [first] Error 2
编辑:发布以来,一个thread on this bug已经出现在GitHub上。在撰写本文时,仍然不能100%清楚问题所在。
嗯乍一看我会说,依赖(lruby)缺少导致铛(C编译器)失败。 –
也可能是因为您从未安装过另一个Ruby版本,而不是由macOS预装的版本?由于在使用Travis CI CLI界面时,我也遇到了与Ruby依赖关系相似的问题。 –
我已安装红宝石2.4.0 - “lruby”究竟是什么? – adc17