Category Archives: LinuxMint

[RVM] rvm 1.14.10 error installing ruby-1.9.3-head

ref. http://www.linuxguy.in/error-rvm-requires-autoreconf/

Install a package called automake.

$ sudo aptitute install automake

then try to install ruby again.

$ rvm install 1.9.3-head

$ lsb_release -a
No LSB modules are available.
Distributor ID: LinuxMint
Description: Linux Mint 13 Maya
Release: 13
Codename: maya

Error Message:

$ rvm install 1.9.3-head

rvm requires autoreconf to install the selected ruby interpreter however autoreconf was not found in the PATH.
ruby-1.9.3-head is not installed.

————————-
cannot load such file — zlib
ref. https://rvm.io/packages/zlib/

Find the requirements (follow the instructions):

$ rvm requirements 
$ 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

Reinstall ruby:

$ rvm reinstall 1.9.3-head

$ rvm alias create default 1.9.3-head
$ rvm list
rvm rubies
   ruby-1.8.7-p370 [ i686 ]
=* ruby-1.9.3-head [ i686 ]

# => - current
# =* - current && default
#  * - default

Error Message 2:

 $ gem update --system

ERROR:  Loading command: update (LoadError)
    cannot load such file -- zlib
ERROR:  While executing gem ... (NameError)
    uninitialized constant Gem::Commands::UpdateCommand