srinivas
Joined: 13 Aug 2007 Posts: 28
|
Posted: Mon Jun 01, 2009 9:19 am Post subject: Installing Ruby on Debian Linux Distributions with apt |
|
|
Installing Ruby on Debian Linux Distributions with apt
-------------------------------------------------------------
apt is a popular package-management system for Debian Linux and Debian-based distributions, such as Ubuntu Linux, Lindows, Xandros, and others. It bears some similarities to RubyGems; for instance, it can download, install, and remove software from the command line. (apt can also be used on non-Debian distributions, but it does not come installed by
default.)
If you’d like to use apt to install Ruby, you can do so as follows:
sudo apt-get install ruby*
This will automatically download and install Ruby, and you can proceed to the “Testing Your Ruby Installation”
Installing Ruby on Red Hat Linux Distributions with yum
---------------------------------------------------------------
yum is another package-management system—it’s very similar to apt. It’s available on all versions of Fedora Core.
If you’d like to use yum to install Ruby, you can do so as follows:
yum install ruby
This will download and install Ruby and the required libraries for you.
Installing RubyGems Under Linux and Mac OS X
-------------------------------------------------------
It’s fairly easy to install RubyGems on Linux, and you can use the same procedure to install RubyGems on Mac OS X. On those systems, use the following shell commands to download and install RubyGems:
curl -O http://rubyforge.org/frs/download.php/11289/rubygems-0.9.0.tgz
tar -xvzf rubygems-0.9.0.tgz
cd rubygems-0.9.0.tgz
ruby setup.rb
Once you’ve done so, set an environment variable, RUBYOPT, using a line in your .profile:
export RUBYOPT=rubygems
This environment variable causes RubyGems to be run whenever Ruby is run. You can get an similar effect by including the line require "rubygems" in all of your Ruby scripts.
Updating Your RubyGems System After You’ve Installed It
-------------------------------------------------------------------
gem update --system |
|
umamahesh_nyros

Joined: 17 Jul 2007 Posts: 231 Location: KAKINADA
|
Posted: Thu Oct 29, 2009 3:56 am Post subject: |
|
|
Hello srinivas,
i have tried to install ruby in ubuntu by fallowing above process. but i am unable to install ruby correctly in ubuntu.
i have run the below command
> sudo apt-get install ruby*
so to check ruby has installed in my system i have rum the command
> ruby -v
The program 'ruby' is currently not installed. You can install it by typing:
sudo apt-get install ruby
bash: ruby: command not found
so now i have run the command
> sudo apt-get install ruby
the problem in your command is '*' which should not have.
Thank You,
Uma. |
|