Erase all of your ruby which was installed via yum or rpm:
#
Install required development tools to do so:
Attention: Ruby 1.9.2 now includes RubyGems so there's no need to install it separately. As a matter of fact, if you try doing so you will get an error like:
Test that everything installed successfully:
#
yum erase ruby ruby-libs ruby-mode ruby-rdoc ruby-irb ruby-ri ruby-docs
Install required development tools to do so:
# yum install openssl-devel zlib-devel \
gcc gcc-c++ make autoconf readline-devel \
curl-devel expat-devel gettext-devel
After that, Download Ruby from: http://www.ruby-lang.org/en/downloads/
Install it:
# ./configure --enable-shared --enable-pthread --prefix=/usr
# make
# make install
Attention: Ruby 1.9.2 now includes RubyGems so there's no need to install it separately. As a matter of fact, if you try doing so you will get an error like:
rubygems-1.3.7/lib/rubygems/source_index.rb:68:in `installed_spec_directories': undefined method `path' for Gem:Module (NoMethodError)
Test that everything installed successfully:
$ ruby -v
ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux]
$ gem --version
1.3.7
No comments:
Post a Comment