RVM “ERROR: Loading command: install (LoadError) > no such file to load — zlib”

1.rvm notes

 

2.查看ruby需要哪些依赖包

 

3.安装  apt-get install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake

 

4.卸载已安装的ruby ,rvm remove 1.9.2

5.重新安装ruby,rvm install 1.9.2

你可能感兴趣的:(LoadError,no zlib)