通过gem 安装库redis-3.0.0.gem报错

通过gem 安装库redis-3.0.0.gem时,报错

  #gem install mysql
ERROR:  Loading command: install (LoadError)
    no such file to load -- zlib
ERROR:  While executing gem ... (NameError)
    uninitialized constant Gem::Commands::InstallCommand

  解决办法是:

  进入ruby源码文件夹
安装ruby自身提供的zlib包
#cd ext/zlib
#ruby ./extconf.rb
#make
#make install

  问题解决


你可能感兴趣的:(redis)