您的位置:首页 > 其它

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

$ 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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐