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 Namestitev Ruby na tirih na Ubuntu Dapper in Edgy

Ruby on Rails is a popular new framework for developing web applications. Ruby na tirih, je priljubljena nov okvir za razvoj spletnih aplikacij. Since Ruby on Rails includes a built-in web server for development purposes, there is no need to install a separate web server. Ker Ruby na tirih vključuje vgrajen spletni strežnik za razvojne namene, ni treba namestiti ločeno spletnim strežnikom.

First you will want to make sure that you've Najprej boste želeli, da se prepričajte, da ste enabled the universe repository. omogočena universe skladišča.

Open up a terminal window, and type in the following commands: Odpri terminalsko okno in vnesite naslednje ukaze:

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 rubygems cd-0.9.0
sudo ruby setup.rb sudo ruby setup.rb
sudo gem install rails –include-dependencies sudo gem install rails-so-odvisnosti

To test out the installation, you can create a test rails project: Če želite preizkusiti napravo, lahko ustvarite test tirih projekta:

$ rails testapp $ Rails testapp

This will create a test application. To bo ustvarilo test uporabo. Change directory into that directory and launch the Ruby on Rails development server (WEBrick) Spremenite imenik v to mapo in zaženite Ruby na tirih razvoju strežniku (WEBrick)

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

Example: Primer:

/testapp$ ./script/server / testapp $. / script / server
=> Booting WEBrick… => Škorenj WEBrick ...
=> Rails application started on => Rails uporaba se je začela http://0.0.0.0:3000 http://0.0.0.0:3000
=> Ctrl-C to shutdown server; call with –help for options => Ctrl-C zapreti server; klic z-help za možnosti
[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) [486-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. Opazili boste, da je strežnik posluša na vratih 3000. Open up a browser, and go to Odprite brskalnik in pojdite na http://localhost:3000 http://localhost:3000

This article was originally written on 12/7/06 Tagged with: Ta članek je bil prvotno napisan na 12/7/06 Tagged with: Adding Software Dodajanje Software , , Ruby on Rails Ruby on Rails , , Ubuntu Ubuntu

Daily Email Updates Dnevni Email Updates

You can get our how-to articles in your inbox each day for free. Lahko dobite našo kako do člankov v vašo mapo »Prejeto vsak dan brezplačno. Just enter your name and email below: Preprosto vpišite vaše ime in e-pošto spodaj:


Name: Ime:
Email: E-pošta:

Comments (2) Komentarji (2)

  1. Piku Piku

    You should always install the latest version of Vedno namestite najnovejšo različico Gems Gems (currently 1.0.1). (trenutno 1.0.1).

  2. SubbaRao SubbaRao

    Thanks, It helped. Hvala, je pomagalo.


Leave a Comment Pustite komentar




Leave your Pustite friendly prijazen comment here. comment here.

If you have a computer help question, Če imate računalnik pomagati vprašanje, click here to leave it on the forums kliknite tukaj, da ga pustijo na forumih instead. namesto.

Note: Your comment may not show up immediately on the site. Opomba: Tvoj komentar morda ne pokažejo takoj na mestu.

Our Friends Naši prijatelji
Getting Started Getting Started


About How-To Geek O Kako naj Geek
What Is That Process? Kaj je to 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.