Zookeeper 1.4.11不会安装

1tu0hz3e  于 2022-12-09  发布在  Apache
关注(0)|答案(2)|浏览(79)

我在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时,它并不存在。有人见过这个吗?

scyqe7ek

scyqe7ek1#

问题出在我的~/.bash_profile中的下面一行:
export GREP_OPTIONS='--color=always'
这是在意想不到的地方注入颜色字符。我发现这一点的方式是查看Zookeeper内部构建脚本生成的libtool,我发现了一些奇怪的颜色字符。

xoefb8l8

xoefb8l82#

较新的编译器可能会将警告视为错误:

cc1: all warnings being treated as errors

要忽略这些警告,请用途:

CFLAGS=-Wno-error=format-overflow gem install zookeeper --version 1.4.11

相关问题