HeatWare.net header image
HeatWare.net
TwitterRSSEmail
  • Home
  • Windows
    • Windows 8
    • Windows 7
    • Windows Vista
    • Windows XP
  • Linux/Unix
  • Mac
  • Mobile
    • Android
    • iOS
    • Phones (Help / Resources)
  • Software / Programming
    • Free Software
    • Programming – General
    • PHP
    • Ruby/Rails
    • Quality Assurance (QA)
    • Software – General
    • Software Help
    • Databases
  • Cool Websites
  • Other
    • Deals & Bargains
    • News
    • Video Games
    • Hardware
    • Electronics
  • About

11 comments / February 5, 2011 / sood / Programming – Ruby/Rails

How to install RubyGems on Linux (Ubuntu & Other)

RubyGems is a package management application for Ruby that is used to quickly and easily distribute Ruby/Rails applications and libraries. If you are planning on doing any development in Ruby, this is a must have. RubyGems is for Ruby as apt-get and yum are to Linux operating systems. This article will show you various ways to install it depending on what Linux distribution you are using.

Installing RubyGems Using apt-get on Ubuntu

sudo apt-get install rubygems

Installing RubyGems Using yum

sudo yum install rubygems

Manual Installation Method

wget http://production.cf.rubygems.org/rubygems/rubygems-1.5.0.tgz
tar xvf rubygems-1.5.0.tgz
cd rubygems-1.5.0
sudo ruby setup.rb

That’s all there is to it! You can begin install gems by using the gem install command

Related Posts

  • How to install Ruby 1.8.7 on CentOS 5.5 Linux
  • How to enable/install SSHD service on Linux (Ubuntu 9.04)
  • How to install a FTP server on Linux in 30 seconds
  • Using Linux ‘head’ command to preview a file
  • Codeigniter 2.0: How to Download & Install
11 comments… add one
  1. Tyler October 17, 2011, 1:01 pm

    yum : No package rubygems available.

  2. Sood (Admin) October 17, 2011, 1:47 pm

    Tyler: What OS and version are you running?

  3. Tyler October 17, 2011, 1:50 pm

    Centos 5.7

  4. Sood (Admin) October 17, 2011, 3:37 pm

    Tyler,
    Have you tried the ‘Manual Installation’ method listed above?

  5. Dan April 30, 2013, 11:51 am

    I tried the yum on RHEL6 no go
    I tried the manual installation and I get
    rubygems-2.0.3]# ruby setup.rb
    RubyGems 2.0.3 installed
    ERROR: While executing gem … (Gem::DocumentError)
    RDoc is not installed: no such file to load — rdoc/rdoc
    rubygems-2.0.3]# ls

  6. ali nouman June 27, 2013, 6:26 am

    Thanks it worked fine for me on ubuntu.

  7. David October 23, 2013, 1:50 pm

    FWIW, I get the same behavior as Tyler on RHEL 6.

  8. sayna June 27, 2015, 9:01 pm

    undefined method `map’ for Gem::Specification:Class (NoMethodError)
    on ubuntu

  9. Chintan August 11, 2015, 5:38 am

    undefined method `map’ for Gem::Specification:Class (NoMethodError)
    in ubuntu 14.04

  10. viranga November 23, 2016, 11:38 pm

    RubyGems 2.5.1 installed
    ERROR: While executing gem … (NameError)
    uninitialized constant Gem::SourceIndex
    Did you mean? Gem::Source

Cancel reply

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recent Posts

  • Why You Should Consider Diving Apps
  • How to Buy a Smartphone that Fits Your Budget
  • How to Overcome Frustrating PDF Stress
  • Convert PDF to Word: Easy, Reliable and Quality Conversion
  • PDF to Excel App ­ – A New Way of Handling Tricky Documents

Recent Comments

  • Valarie Walter on Basic Troubleshooting Steps for your Cell Phone
  • John Mists on A Brief History of Android OS
  • syarif on PostgreSQL: How to reload config settings without restarting database
  • Raghu on How to SSH to a server using Ruby – Part I
  • francisco clemente on Basic Troubleshooting Steps for your Cell Phone

Tags

ACSLS Android Bargain Cell Phones Cool Software Cool Websites Databases Deals Ebooks Facebook Free Software G2x Galaxy S5 iOS iPhone Kindle LG Linux Linux/Unix Mac Mobile mysql Office OpenStack OS X PHP Postgres PostgreSQL ruby Samsung Galaxy S6 Shell Smartphones Sun T-Mobile Tips Tips & Tricks Ubuntu Unix Virtualization VMWare Windows Windows 7 Windows 8 Windows Vista Windows XP

Latest Tweet

Follow @HeatwaredotNet

SP
@HeatwaredotNet

  • Why You Should Consider Diving Apps https://t.co/Is41cdUv2I #diving-apps
    about 6 years ago

All Categories

Other Links

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Copyright © 2015 — HeatWare