Computer How To How To, Tutorial, Example, Review


 

Install rubygems on CentOS

August 11, 2011 by Computer

The Ruby framework is a fantastic programming resource. Ruby can utilize rubygems. It can provide useful pacakges for your ruby framework. It provides easy installation and integration of packages. With a vast repository of packages to choose from.

To utilize rubygems centos will need to be installed first. It is generally best to install ruby first. On Centos, it is often a difficult tool to find in the yum repository, so this is one that may need to be installed from source.

Ruby can be downloaded from http://www.ruby-lang.org/en/. Once downloaded untar the tarball it will need to be configured.

Wherever ruby is installed, be sure it is in your path. This variable may need to be set manually.

After installed the next application to install is rubygems. It can be downloaded from the rubygems website and install it:

[root@computer rubygems-1.8.7]# wget http://production.cf.rubygems.org/rubygems/rubygems-1.8.7.tgz
[root@computer rubygems-1.8.7]# ruby setup.rb
RubyGems 1.8.7 installed

== 1.8.7 / 2011-08-02

* 5 bug fixes:
  * Added missing require for `gem uninstall --format-executable`
  * The correct name of the executable being uninstalled is now displayed with
    --format-executable
  * Fixed `gem unpack uninstalled_gem` default version picker
  * RubyGems no longer claims a nonexistent gem can be uninstalled
  * `gem which` no longer claims directories are requirable files
  * `gem cleanup` continues cleaning up gems if one can't be uninstalled due
    to permissions.  Issue #82
  * Gem repository directories are no longer created world-writable.  Patch by
    Sakuro OZAWA.  Ruby Bug #4930

------------------------------------------------------------------------------

RubyGems installed the following executables:
        /usr/local/bin/gem

The “gem” executable is now usable and can be used to install other ruby packages on centos.


No comments yet.

RSS feed for comments on this post.

Leave a comment





The field of computers is very vast and can somtimes be extremely challenging, but also very rewarding. One will often times encounter problems that they may not have the answer to. Problems don't always have solutions, but sometimes they do. And helpting to provide some of those solutions is our mission. It is our goal to provide helpful computer how to, tutorial, example, and review for the benefit of everyone.

Some funny jokes...
"Dating a girl is just like writing software. Everything's going to work just fine in the testing lab (dating), but as soon as you have contract with a customer (marriage), then your program (life) is going to be facing new situations you never expected. You.ll be forced to patch the code (admit you're wrong) and then the code (wife) will just end up all bloated and unmaintainable in the end."

"Once upon a time there was a DOS user who saw Unix, and saw that it was good. After typing cp on his DOS machine at home, he downloaded GNU's unix tools ported to DOS and installed them. He rm'd, cp'd, and mv'd happily for many days, and upon finding elvis, he vi'd and was happy. After a long day at work (on a Unix box) he came home, started editing a file, and couldn't figure out why he couldn't suspend vi (w/ ctrl-z) to do a compile."

Terms and Disclaimer