cannot load such file -- zlib
2012-10-09 14:08
429 查看
For some reason, I need to use Ubuntu to develop Ruby on Rails. After installing ruby through rvm, I use command 'gem sources -a http://ruby.taobao.org/' to add source, but I got an error 'cannot load such file -- zlib....'. The reason is that I haven't install required packages, so, the solution is
and then reinstall ruby
Actually, all of below packages should be installed(command 'rvm requirements' will show you)
$ sudo apt-get install zlib1g-dev
and then reinstall ruby
$ rvm reinstall 1.9.3
Actually, all of below packages should be installed(command 'rvm requirements' will show you)
$ sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkg-config
相关文章推荐
- 源码安装ruby时 ERROR: Loading command: install (LoadError) cannot load such file -- zlib 解决方法
- 出现 ruby cannot load such file -- zlib 问题的解决方法
- kernel_require.rb:55:in `require': cannot load such file -- mach (LoadError)
- 解决Failed to load module "pk-gtk-module": libpk-gtk-module.so: cannot open shared object file: No such file or directory
- CentOS下安装rails,遇到no such file to load -- zlib错误...
- pod update, LoadError - cannot load such file -- openssl报错解决办法,pod重装
- Failed to load libGL.so error libGL.so: cannot open shared object file: No such file or directory
- `require': cannot load such file -- bcrypt_ext (LoadError) (window 7+ruby2.33+rails5.0. 下出现的问题)
- rubygems/core_ext/kernel_require.rb:120:in `require': cannot load such file -- colored2 (LoadError)
- Ruby 'require' error: cannot load such file
- install rubyonrails( no such file to load -- zlib )
- Ruby on Rails 安装出现`require’: cannot load such file — openssl (LoadError)的解决方法
- Rubygem 缺少no such file to load zlib 错误
- CocoaPods 出现LoadError - cannot load such file -- nanaimo错误解决办法
- no such file to load -- zlib when using gem install
- Failed to load libGL.so error libGL.so: cannot open shared object file: No such file or directory
- /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- re
- cannot load such file -- openssl
- Ubuntu上安装gem包时报`require': cannot load such file -- openssl (LoadError)
- kernel_require.rb:55:in `require': cannot load such file