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 7756237
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T12:46:17+00:00 2026-06-01T12:46:17+00:00

I didn’t know that installing ruby is such a pain After lot of trouble

  • 0

I didn’t know that installing ruby is such a pain
After lot of trouble with curl certificate, I installed the rvm using the methods mentioned in the rvm site also with lot of help from stackoverflow questions.
Now I am trying to install rails using the gems command

gem install rails

but I always get this error

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

I did follow every thing mentioned here https://rvm.beginrescueend.com/packages/zlib/
and also as a mentioned in a stackoverflow post

I did install all the tools as required by the requirements

   yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison iconv-devel

But still I get this error. When I looked at the build log for ruby under
/usr/local/rvm/log/ruby-1.9.3-p125/configure.log
I see this error

  [2012-04-07 01:13:44]  ./configure --prefix=/usr/local/rvm/rubies/ruby-1.9.3-p125 --enable-shared --disable-install-doc --with-zlib --with-opt-dir=/usr/local/rvm/usr --with-libyaml
  configure: WARNING: unrecognized options: --with-zlib, --with-libyaml

Is the rvm broken ? or is there a problem while building the ruby src.

Note: I am running fedora 14

  • 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-01T12:46:18+00:00Added an answer on June 1, 2026 at 12:46 pm

    RVM causes more problems than it solves (IMHO). Better tools are ruby-build and rb-env. Newer tools that look very good too are ruby-install and chruby.

    Here are my notes from my recent Red Hat Enterprise Linux (RHEL) installation of Ruby, which I believe is pretty similar to Fedora. Perhaps these notes can be of some help to you. Ask me questions if you like.

    Install zlib

    yum install zlib zlib-devel
    

    Install YAML

    export k=yaml v=0.1.4
    wget http://pyyaml.org/download/libyaml/$k-$v.tar.gz
    tar zxvf $k-$v.tar.gz
    cd $k-$v 
    
    ./configure
    make && make install
    

    Install X11 if you want X or headless browsing for testing

    yum install 
      xorg-x11-fonts-misc
      xorg-x11-fonts-truetype
      xorg-x11-server-Xorg
      xorg-x11-server-Xvfb
    

    Install libraries

    yum install 
      gdbm gdbm-devel
      ncurses ncurses-devel
      openssl openssl-devel
      readline readline-devel
      tk tk-devel
      libjpeg libjpeg-devel
      libpng libpng-devel
      libxml2 libxml2-devel
      libxslt libxslt-devel
      zlib zlib-devel
    

    Install ruby-build

    cd /opt
    git clone git://github.com/sstephenson/ruby-build.git
    cd ruby-build/
    ./install.sh
    

    Install Ruby

    export k=ruby v=1.9.3-p125
    wget http://ftp.ruby-lang.org/pub/ruby/1.9/$k-$v.tar.gz
    tar zxvf $k-$v.tar.gz
    cd $k-$v
    
    # Either onfigure with defaults...
    ./configure 
    
    # Or configure with custom locations...
    ./configure --prefix=/opt/$k/$v --enable-shared --with-opt-dir=/opt/yaml/current
    
    make && make check && make install
    

    Environment

    Edit /etc/environment to add this:

    RUBYOPT='-r rubygems -r psych'
    

    If you put Ruby in a custom directory, also merge this with your existing path:

    PATH=/opt/ruby/1.9.3-p125/bin  (or wherever you put it)
    

    Load environment:

    source /etc/environment
    

    Verify gem runs and you see the intial set of gems:

    gem list
    

    Gem update:

    gem update --system
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Didn't know how else to put this. Say I have a JavaScript method that
Didn't know how to shorten that title. I'm basically trying to wrap my head
I didn't find any solution that helped me on the older questions on SO...
I didn't find an answer to this question because I don't know if I'm
I didn't face this error before. I have a database db , that contains
I didn’t know about the <button> tag until today.
(Didn't mean to create a new question, but revised the old one enough that
I didn't know what I did in eclipse . I think I accidentally pressed
Didn't find how to do that. What I found was more or less on
Didn't Snow Leopard introduce some alternative to the old beginSheet: method that allows using

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.