IT Community - Software Programming, Web Development and Technical Support

Installing Ruby and Rails on Windows

This is a discussion on Installing Ruby and Rails on Windows within the Ruby forums, part of the Web Development category; Install Ruby and Rails on Windows Just follow these steps to install Ruby: Download the one-click installer for Ruby ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > Ruby

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 10-03-2007, 04:00 AM
prasannavigneshr prasannavigneshr is offline
D-Web Incredible
 
Join Date: Feb 2007
Posts: 1,321
prasannavigneshr is on a distinguished road
Send a message via MSN to prasannavigneshr
Thumbs up Ruby & Rails

Install Ruby and Rails on Windows

Just follow these steps to install Ruby:
  1. Download the one-click installer for Ruby at http://rubyinstaller.rubyforge.org.
  2. Click the installer to install Ruby.

Setting up Rails is just about as easy.

Select Start->Run. Type cmd in the Open field and click OK.
Then, type the following at the command prompt:
Quote:
gem install rails --include-dependencies
And that’s it! You’ve got Ruby, and you’ve got Rails.
__________________
Prasanna Vignesh
MCPD | Web Developer

Last edited by prasannavigneshr : 10-09-2007 at 02:42 AM.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 10-03-2007, 04:04 AM
prasannavigneshr prasannavigneshr is offline
D-Web Incredible
 
Join Date: Feb 2007
Posts: 1,321
prasannavigneshr is on a distinguished road
Send a message via MSN to prasannavigneshr
Thumbs up Ruby & Rails

Installing Ruby and Rails in Mac OS X

As of Mac OS X version 10.4 (the version called Tiger), installation is more than simple—Ruby comes built in. To check that, open the Terminal application by using Finder to go to Applications➪Utilities, double-click Terminal, and then enter ruby -v to check Ruby’s version number.

You should see a version of Ruby that’s 1.8.2 or later. If not, you’re going to have to install Ruby yourself.

The locomotive project (Locomotive) is a complete one-step install Rails environment for OS X.

Alternatively, you can download Rails yourself. To do that, you first need RubyGems, which you can
pick up by going to http://rubygems.rubyforge.org and clicking the download link. Then go to the directory containing the download in the Terminal application and enter the following at the command
prompt, updating rubygems-0.8.10.tar.gz to the most recent version of the download:

Quote:
tar xzf rubygems-0.8.10.tar.gz
cd rubygems-0.8.10
sudo ruby setup.rb
The final step is to use RubyGems to download Rails, so enter this command:

Quote:
sudo gem install rails --include-dependencies
That’s it—you should be on Rails!

Ruby comes installed in Mac OS X, but it’s not really installed all that well. For
example, support for the Ruby readline library isn’t working, which means that
you could have problems if you want to use the interactive Ruby tool discussed later in this chapter. To fix the problem and install Ruby yourself, take a look at http://tech.ruby.com/entry/46.

Hope useful.
__________________
Prasanna Vignesh
MCPD | Web Developer

Last edited by prasannavigneshr : 10-04-2007 at 07:20 AM.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 10-03-2007, 04:11 AM
prasannavigneshr prasannavigneshr is offline
D-Web Incredible
 
Join Date: Feb 2007
Posts: 1,321
prasannavigneshr is on a distinguished road
Send a message via MSN to prasannavigneshr
Thumbs up Ruby & Rails

Installing Ruby and Rails in Linux and Unix

If you’re using Linux or Unix, you probably already have Ruby installed.


Open a shell and type ruby -v at the prompt—if you have version 1.8.2 or
later installed, you’re all set. If you don’t have Ruby installed, you can find pre-built versions for your Linux/Unix installation on the Internet, or you can build it from the source, which you can find at http:// ruby-lang.org/en.

To build Ruby from source, download ruby-1.8.4.tar.gz (change that name to the most recent version), untar the file, and build it:

Quote:
tar xzf ruby-1.8.4.tar.gz
cd ruby-1.8.4
./configure
make
make test
sudo make install

You’re also going to need Rails, which is most easily installed with RubyGems. To get RubyGems, go to http://rubygems.rubyforge.org and click the download link. Then go to the directory containing the download in a shell and enter the following at the command prompt, updating rubygems-0.8.10.tar.gz to the most recent version of the download:


Quote:
tar xzf rubygems-0.8.10.tar.gz
cd rubygems-0.8.10
sudo ruby setup.rb
All that’s left is to use RubyGems to install Rails, which you can do this way:

Quote:
sudo gem install rails --include-dependencies
Things very rarely go wrong with the Ruby and Rails installation process, but if there was a problem,
take a look at the online help files, starting with http://rubyinstaller.rubyforge.org/wiki/wiki.pl?RubyInstallerFAQ.
__________________
Prasanna Vignesh
MCPD | Web Developer

Last edited by prasannavigneshr : 10-04-2007 at 07:19 AM.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ruby on Rails prasannavigneshr Ruby 13 09-11-2008 01:16 AM
Ruby on Rails server config vivekanandan Ruby 7 08-04-2007 05:02 AM
What are the required components of Windows Server 2003 for installing Exchange 2003? karunagaran Server Management 0 07-17-2007 12:21 AM
ruby with postgres on windows XP archana Ruby 1 05-18-2007 04:27 AM
setting up ruby on rails in Fedora core 6 rgm5 Ruby 1 04-18-2007 12:42 AM


All times are GMT -7. The time now is 02:56 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0