Senior & Expert RoR Developers Discussion Forum by Nyros Technologies

HIRE Ruby on Rails Expert Developers Programmers Coders From India
Ruby on Rails PHP .Net Developers Community, Nyros Technologies, Kakinada
 
Log in  or IF not a member please REGISTER
Username:
Password:   


Keyword
Log in | Profile 

Installing Ruby on Debian Linux Distributions with apt

 
Post new topic   Reply to topic    Senior & Expert RoR Developers Discussion Forum by Nyros Technologies Index -> Setting up ruby and rails
View previous topic :: View next topic  
Author Message
srinivas



Joined: 13 Aug 2007
Posts: 28

PostPosted: Mon Jun 01, 2009 9:19 am    Post subject: Installing Ruby on Debian Linux Distributions with apt Reply with quote

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
Back to top
View user's profile Send private message
umamahesh_nyros



Joined: 17 Jul 2007
Posts: 231
Location: KAKINADA

PostPosted: Thu Oct 29, 2009 3:56 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    Senior & Expert RoR Developers Discussion Forum by Nyros Technologies Index -> Setting up ruby and rails
Page 1 of 1

 latest topics 
 Topics   Replies   Author   Views   Last Post 
No new posts How to customize Google Maps InfoWindow using ym4r_gm
0 kalyanallampalli 49 Thu Sep 02, 2010 5:34 pm
kalyanallampalli View latest post
No new posts Drag and Drop file upload
0 umamageshwari 45 Wed Sep 01, 2010 9:36 am
umamageshwari View latest post
No new posts Flex On Rails
0 Raghu 45 Wed Sep 01, 2010 3:00 am
Raghu View latest post
No new posts MongoDB
0 Raghu 44 Tue Aug 31, 2010 3:30 pm
Raghu View latest post
No new posts Problem with Dreamweaver / java error
3 Raja 36 Tue Aug 31, 2010 3:24 pm
Raghu View latest post
No new posts Generating Model
0 phani.galla 43 Tue Aug 31, 2010 2:09 pm
phani.galla View latest post
No new posts Hide Panels using JQuery
0 Anu 46 Tue Aug 31, 2010 1:50 pm
Anu View latest post
No new posts Load a text file using ajax in jquery
0 Anu 35 Tue Aug 31, 2010 1:39 pm
Anu View latest post
No new posts Generating Migrations
0 phani.galla 29 Tue Aug 31, 2010 1:38 pm
phani.galla View latest post
No new posts Generating Controllers
0 phani.galla 31 Tue Aug 31, 2010 1:22 pm
phani.galla View latest post




Hire an expert Ruby on Rails developer / coder / programmer or development team from India now!!

Other Forums : PHP   ::   .Net   |   Free unlimited HTML CSS templates download

Nyros Technologies   |   Kakinada City Portal   |   Developers Blog   |   About Ruby on Rails Experts   |   More