系统环境:centos7 x64 ruby : ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux]
执行 gem source -a 报错
[hadoop@rubypc ~]$ gem source -a http://ruby.taobao.org ERROR: While executing gem ... (NameError) uninitialized constant Gem::RemoteFetcher::Zlib
网上说,要安装 zlib 于是:按照下面的步骤执行 $cd ext/zlib $ruby ./extconf.rb $make $make install
但是,在执行 ruby ./extconf.rb 的时候,报错了
[hadoop@rubypc zlib]$ ruby ./extconf.rb checking for deflateReset() in -lz... no checking for deflateReset() in -llibz... no checking for deflateReset() in -lzlib1... no checking for deflateReset() in -lzlib... no checking for deflateReset() in -lzdll... no checking for deflateReset() in -lzlibwapi... no
请问,哪里错了,怎么解决 是不是有些包没有装,什么包?