linux - Error in ruby: cannot load such file -- zlib -
when seek install rails in ubuntu 12.10 error:
$ gem install rails error: loading command: install (loaderror) cannot load such file -- zlib error: while executing gem ... (nameerror) uninitialized constant gem::commands::installcommand
so removed rvm:
rvm implode sudo rm -rf ~/.rvm
removed script calls in .bashrc
, .bash_profile
and checked if they're removed:
env | grep rvm #no output, rvm removed ruby -v #the programme 'ruby' can found in next packages: blabla
i have these via sudo apt-get install:
curl zlib1g-dev zlib1g libssl-dev build-essential openssl libreadline6 libreadline6-dev curl git-core libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkg-config
then proceed install scratch
curl -l https://get.rvm.io | bash -s stable --ruby --auto-dotfiles
then run line , restarted terminal regard message:
* start using rvm need run `source /home/adige/.rvm/scripts/rvm` in open shell windows, in rare cases need reopen shell windows.
then rvm pkg install readline
completed error:
... error running 'autoreconf -is --force', please read /home/adige/.rvm/log/readline/autoreconf.log ... please note it's required reinstall rubies: rvm reinstall --force
i think it's installed anyway, right? before reinstall rubies, installed zlib of course:
# w/out verify, gives checksum error rvm pkg install zlib --verify-downloads 1
then run rvm reinstall --force
, completed error again:
... install of ruby-1.9.3-p374 - #complete making gemset ruby-1.9.3-p374 pristine. error running '' under , please read /home/adige/.rvm/log/ruby-1.9.3-p374/gemset.pristine.log making gemset ruby-1.9.3-p374@global pristine.
gemset.pristine.log
then reinstall ruby zlib support:
rvm reinstall 1.9.3-p374 --with-zlib-dir=$rvm_path/usr
which returned same error , same log completed anyway.
finally tried install rails gem 1 time again cannot load such file -- zlib
!
here rvm info
what doing wrong?
you should not install readline
/ zlib
on ubuntu, follow steps:
rvm head rvm pkg remove rvm requirements run forcefulness rvm reinstall 1.9.3-p374
make sure include output of installation process if fails, include mentioned log files
ruby linux rvm
No comments:
Post a Comment