swaminadhan
Joined: 14 Sep 2009 Posts: 73
|
Posted: Mon Feb 15, 2010 11:59 am Post subject: Ruby and Rails installation in windows environment. |
|
|
Hi friends!
Here am going to discuss about the ruby and rails installation process in the windows environment along with the mysql database. Let us see the installation process :
==================================
!. First of all , to run an application in Ruby on Rails we requires ruby software first.
To install the ruby software we need to download the ruby software from
http://www.ruby-lang.org/en/downloads/
Here we have to download the version of ruby that we require to run the application
Once we download the ruby software we will get the .exe file. Just click on it and walk through the installation process.
By the above steps the ruby will get installed.
=========================================
2. Once the Ruby was installed,we have to install Rails.
In console, we can install Rails by using the following command.
gem install rails
Even we can specify the Rails version within the above command. For example if i want to install rails of version 2.3.4 i can install with the help of above command like
gem install rails -v2.3.4
With the above command we can install rails 2.3.4.
========================================
3. Now we have to set the database. For example if we are using mysql as our database. we can install phpMyAdmin, a tool that allows you to easily manage your MySQL databases.
To install the phpmyadmin, we need to download the setup file from http://www.phpmyadmin.net. Once the set up file was downloaded ,Please click on it to install. During the installation process it will ask for the server name and administrators email.
In the server name field enter the server name as "localhost"
in the administrators email. Enter your email address and click on 'OK'.
It will ask for the user name and password,you can provide your own user name and password.
And follow the installation process.
In the above way even the phpmyadmin will get installed.
=========================================
Note:
If your system is not accepting .exe or.err files, it will throw an error as
‘nmake’ is not recognized as an internal or external command, operable program or batch file
if you get this error download the nmake set up file and installed it. You will be up.
Thank you,
swaminadhan |
|