我在使用 Zookeeper 1.4.11 时遇到问题。这是我的项目的依赖项,每次我尝试捆绑时都会得到:
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
...
_zookeeper_interest
_zookeeper_process
make[1]: *** [libzookeeper_st.la] Error 1
make: *** [all] Error 2
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options.
当我查找mkmf.log
时,它在任何地方都不存在。有人见过这个吗?
最佳答案
问题出在我的 ~/.bash_profile 中的以下行:
导出 GREP_OPTIONS='--color=always'
在意想不到的地方注入(inject)了彩色字符。我发现这一点的方法是查看由 Zookeeper 内的构建脚本生成的 libtool,我发现了一些奇怪的颜色字符。
关于ruby - Zookeeper 1.4.11 无法安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41708873/