Important! This is an automatic machine translated page. If you can read english, you should Click Here to read the original English version of the article.

Installing Ruby on Rails on Ubuntu Dapper or Edgy Inštalácia Ruby on Rails na Ubuntu Dapper a Edgy

Ruby on Rails is a popular new framework for developing web applications. Ruby on Rails je populárny nový rámec pre vývoj webových aplikácií. Since Ruby on Rails includes a built-in web server for development purposes, there is no need to install a separate web server. Vzhľadom k tomu, Ruby on Rails obsahuje vstavaný web-serverom pre účely vývoja, nie je potrebné inštalovať samostatný webový server.

First you will want to make sure that you've Najprv vám bude chcieť, aby ste sa uistili, že ste enabled the universe repository. povolená vesmír úložiska.

Open up a terminal window, and type in the following commands: Otvoriť okno terminálu a zadajte nasledovné príkazy:

sudo apt-get install ruby ri rdoc sudo apt-get install ruby ri rdoc
sudo wget http://rubyforge.org/frs/download.php/11289/rubygems-0.9.0.tgz sudo wget http://rubyforge.org/frs/download.php/11289/rubygems-0.9.0.tgz
tar -xvzf rubygems-0.9.0.tgz tar-xvzf rubygems-0.9.0.tgz
cd rubygems-0.9.0 cd rubygems-0.9.0
sudo ruby setup.rb sudo ruby setup.rb
sudo gem install rails –include-dependencies sudo gem install rails-include-závislostí

To test out the installation, you can create a test rails project: Ak chcete vyskúšať inštaláciu, môžete vytvoriť test koľaje projektu:

$ rails testapp $ Koľajnice testapp

This will create a test application. Tým sa vytvorí testovacej aplikácie. Change directory into that directory and launch the Ruby on Rails development server (WEBrick) Zmeňte adresár do tohto adresára a spustiť Ruby on Rails rozvoj servera (WEBrick)

$ ./script/server $. / Script / server

Example: Príklad:

/testapp$ ./script/server / Testapp $. / Script / server
=> Booting WEBrick… => Zavedenie WEBrick ...
=> Rails application started on => Rails aplikácie sa začal dňa http://0.0.0.0:3000 http://0.0.0.0:3000
=> Ctrl-C to shutdown server; call with –help for options => Ctrl-C až do vypnutia servera, hovor s-help pre voľby
[2006-12-07 05:28:37] INFO WEBrick 1.3.1 [2006-12-07 05:28:37] INFO WEBrick 1.3.1
[2006-12-07 05:28:37] INFO ruby 1.8.4 (2005-12-24) [i486-linux] [2006-12-07 05:28:37] INFO ruby 1.8.4 (2005-12-24) [i486-linux]
[2006-12-07 05:28:37] INFO WEBrick::HTTPServer#start: pid=6687 port=3000 [2006-12-07 05:28:37] INFO WEBrick:: HTTPServer # start: pid = 6687 port = 3000

You'll notice that the server is listening on port 3000. Všimnite si, že server počúva na porte 3000. Open up a browser, and go to Otvoriť prehliadač a prejdite na http://localhost:3000 http://localhost:3000

This article was originally written on 12/7/06 Tagged with: Tento článok bol pôvodne napísaný na 12/7/06 Tagged s: Adding Software Pridanie Software , , Ruby on Rails Ruby on Rails , , Ubuntu Ubuntu

Daily Email Updates Denný Svářeč

You can get our how-to articles in your inbox each day for free. Môžete si naše jak-na články vo vašej schránky každý deň zadarmo. Just enter your name and email below: Stačí zadať svoje meno a e-mail nižšie:


Name: Meno:
Email: E-mail:

Comments (2) Komentáre (2)

  1. Piku Piku

    You should always install the latest version of Vždy by ste sa mali nainštalovať najnovšiu verziu Gems Drahokamy (currently 1.0.1). (aktuálne 1.0.1).

  2. SubbaRao SubbaRao

    Thanks, It helped. Vďaka, to pomohlo.


Leave a Comment Zanechať komentár




Leave your Zanechajte svoj friendly priateľský comment here. komentár tu.

If you have a computer help question, Ak máte počítač pomôže otázku, click here to leave it on the forums kliknite tu nechať to na fórach instead. miesto.

Note: Your comment may not show up immediately on the site. Poznámka: Váš komentár sa nezobrazia okamžite na mieste.

Our Friends Naši priatelia
Getting Started Začíname


About How-To Geek O tom, ako-To Geek
What Is That Process? Čo je to za proces?
svchost.exe svchost.exe
jusched.exe jusched.exe
dwm.exe Dwm.exe
ctfmon.exe ctfmon.exe
wmpnetwk.exe wmpnetwk.exe
wmpnscfg.exe WMPNSCFG.exe
rundll32.exe rundll32.exe
wfcrun32.exe wfcrun32.exe
Ipoint.exe Ipoint.exe
Itype.exe Itype.exe
Wfica32.exe Wfica32.exe
Mobsync.exe Mobsync.exe
conhost.exe conhost.exe
Dpupdchk.exe Dpupdchk.exe Adobe_Updater.exe Adobe_Updater.exe

Copyright © 2006-2009 HowToGeek.com. Copyright © 2006-2009 HowToGeek.com. All Rights Reserved. All Rights Reserved.