我正在尝试奔跑bundle install
但我在尝试安装 Nokogiri 1.10.3 时遇到错误
这是来自的错误消息mkmf.log
.
gcc -o conftest -I/home/chille/.rvm/rubies/ruby-2.5.1/include/ruby-2.5.0/x86_64-linux -I/home/chille/.rvm/rubies/ruby-2.5.1/include/ruby-2$
gcc: error: unrecognized command line option '-Wmisleading-indentation'
gcc: error: unrecognized command line option '-Wimplicit-fallthrough=0'
gcc: error: unrecognized command line option '-Wduplicated-cond'
gcc: error: unrecognized command line option '-Wrestrict'
对于那些不看评论的人
Debian 10 用户,如果你发现
gcc: error: unrecognized command line option '-Wduplicated-cond'
在 mkmf.log 中
brew unlink gcc
就是您正在寻找的。我花了一个小时寻找答案,是的,我曾经在这里错过了答案,但幸运的是我回来了并发现了它。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)