Вы находитесь на странице: 1из 2

Installing Ruby on Rails –ROR

1. First download Ruby from


http://rubyforge.org/frs/download.php/72170/rubyinstaller-1.9.2-p0.exe
2. Run the Ruby installer and get Ruby installed.
3. Open command prompt and type “gem install rails”. This will install rail and some
other gems into Ruby.
4. Then type “gem install sqlite3-ruby”. This will install SQL for web applications.
5. While in staying in the command prompt type “rails ~/any-name”. This will make a
folder which will contain all necessary files and documents for web application.
6. Change directory to any-name by typing “cd /any-name”.
7. Type “ruby script/server”, If it won’t work type “ruby script/rails server”.
8. If you get error like sqlite3.dll not found, go to http://www.sqlite.org/sqlitedll-
3_7_3.zip or http://www.sqlite.org/download.html. Unzip downloaded file and you
will get two files namely, sqlite3.def and sqlite3.dll. Paste these files to
C:\WINDOWS\system32 (If you are using Windows XP, Vista or any latest
Microsoft’s Operating System).
9. After dealing with this error, again open command prompt and type “ruby
script/rails server”. This will start server machine.

Figure 1

Haseeb Ahmad
Pakistan
10. You can check your machine whether it is working or not by typing
http://127.0.0.1:3000/ in any Browser. In Browser you would see something like
this

Figure 2

11. You can turn OFF your server by pressing “Ctrl+C”, while command prompt is
selected.
12. You could see in your command prompt that IP address may differ from
127.0.0.1:3000, but you don’t need to worry, http://127.0.0.1:3000/ is default for
Ruby on Rails. If you are getting figure#2 in your Browser it’s all ok.

NOTE: THIS MANUAL IS JUST GETTING STARTED WITH ROR. BASIC INSTALLATION AND FIRST RUN IS
COVERED IN THIS MANUAL.

Haseeb Ahmad
Pakistan

Вам также может понравиться