Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9266029
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T14:13:23+00:00 2026-06-18T14:13:23+00:00

When I try to install rails in Ubuntu 12.10 I get this error: $

  • 0

When I try to install rails in Ubuntu 12.10 I get this 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 I completely removed rvm:

rvm implode
sudo rm -rf ~/.rvm

removed the script calls in my .bashrc and .bash_profile

and checked if they’re really removed:

env | grep rvm #no output, so rvm is removed
ruby -v #The program 'ruby' can be found in the following packages: blabla

I already 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 to install from scratch

curl -L https://get.rvm.io | bash -s stable --ruby --auto-dotfiles

then run that line and restarted terminal regard to this message:

  * To start using RVM you need to run `source /home/adige/.rvm/scripts/rvm`
    in all your open shell windows, in rare cases you need to reopen all shell windows.

Then rvm pkg install readline but completed with error:

...
Error running 'autoreconf -is --force', please read /home/adige/.rvm/log/readline/autoreconf.log
...
Please note that it's required to reinstall all rubies:

    rvm reinstall all --force

I think it’s installed anyway, right? Before reinstall all rubies, I installed zlib of course:

# w/out verify, it gives checksum error
rvm pkg install zlib --verify-downloads 1

Then run rvm reinstall all --force and completed with 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 with zlib support:

rvm reinstall 1.9.3-p374 --with-zlib-dir=$rvm_path/usr

which returned same error and same log but completed anyway.

Finally I tried to install rails gem again but cannot load such file -- zlib !

Here is the rvm info

What am I doing wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T14:13:24+00:00Added an answer on June 18, 2026 at 2:13 pm

    You should not install readline / zlib on ubuntu, follow this steps:

    rvm get head
    rvm pkg remove
    rvm requirements run force
    rvm reinstall 1.9.3-p374
    

    make sure to include output of the installation process if this fails, also include all mentioned log files

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

whenever I try to install Rails on windows7 , I get the error, File
I get this error when I try to install Rails on my Mac OS
In Ubuntu 12.04, gem install rails succeeds, but when I try rails -v I
When I try to install the eclipse plugin for GAE I get an error:
I keep getting this error when I try to install a package: Download error
When I run 'rails server' I get the following error: Could not find gem
I have a fresh Ubuntu install with ruby -v 1.9.2, rails -v 3.1.1, gem
I get this error on my application when i try to run in Tomcat,
I try to install rails version 2.3.4 with rvm rvm gem install --no-ri --no-rdoc
I recently installed rubygems 1.3.7. When I try to install rails by typing :gem

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.