首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

no such file to load - zlib uninitialized constant Gem:Commands:InstallCom

2012-09-09 
no such file to load -- zlibuninitialized constant Gem::Commands::InstallCom#gem install mysql ERRO

no such file to load -- zlib uninitialized constant Gem::Commands::InstallCom
#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


热点排行