gem install 时报错,no such file to load -- zlib
2011-06-03 13:16
369 查看
通过gem 安装mysql库时,报告
#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
问题解决
#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
问题解决
相关文章推荐
- gem install 时报错,no such file to load -- zlib
- no such file to load -- zlib
- no such file to load -- zlib when using gem install
- no such file to load — zlib (LoadError)
- Rubygem 缺少no such file to load zlib 错误
- ERROR: Loading command: search (LoadError) no such file to load -- zlib
- install rubyonrails( no such file to load -- zlib )
- Rubygem 缺少no such file to load zlib 错误
- CentOS下安装rails,遇到no such file to load -- zlib错误...
- 编译git时报错: zlib.h: No such file or directory
- Rails错误:LoadError: no such file to load – openssl 解决办法
- Failed to restart network.service: Unit network.service failed to load: No such file or directory.
- Solve: no such file to load -- sqlite3/sqlite3_native (LoadError)
- Fix “Unit iptables.service failed to load: No such file or directory” Error In CentOS7
- : "no such file to load -- sqlite3" Rails
- Failed to issue method call: Unit mysql.service failed to load: No such file or directory解决的方式
- rails console" 提示`require': no such file to load -- readline 的问题
- Failed to issue method call: Unit mysqld.service failed to load: No such file or directory.
- require "watir"报装载库文件错误(no such file to load -- watir)
- no such file to load -- openssl