Changes

Getting and Installing Ruby

1,128 bytes added, 20:23, 9 November 2007
Ruby on Red Hat Enterprise and Fedora Linux
<pre>
 
=== Ruby on Ubuntu and Debian Linux ===
 
Debian, Ubuntu and other Debian derived Linux distributions use the ''apt-get'' tool to manage package installation. If you are running Ubuntu Linux and get the following output from the ''ruby'' command, you need to install Ruby:
 
<pre>
$ ruby
The program 'ruby' is currently not installed. You can install it by typing:
sudo apt-get install ruby
-bash: ruby: command not found
</pre>
 
To install ruby, simply run the ''apt-get'' command:
 
<pre>
sudo apt-get install ruby
</pre>
 
The apt-get tool will display output listing any other packages required by Ruby (better known as ''dependencies''):
 
<pre>
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libruby1.8 ruby1.8
Suggested packages:
ruby1.8-examples rdoc1.8 ri1.8
The following NEW packages will be installed:
libruby1.8 ruby ruby1.8
0 upgraded, 3 newly installed, 0 to remove and 135 not upgraded.
Need to get 1769kB of archives.
After unpacking 6267kB of additional disk space will be used.
Do you want to continue [Y/n]?
</pre>
=== Ruby on Ubuntu and Debian Linux ===