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 Diegimas Ruby on Rails apie Ubuntu Dapper arba Edgy

Ruby on Rails is a popular new framework for developing web applications. Ruby on Rails yra populiari naują struktūrą kuriant interneto programas. Since Ruby on Rails includes a built-in web server for development purposes, there is no need to install a separate web server. Nuo Ruby on Rails yra built-in Web server vystymosi tikslams, nėra būtinybės diegti atskiras interneto serverį.

First you will want to make sure that you've Pirmiausia jūs norite įsitikinti, kad jūs enabled the universe repository. leido universe saugykloje.

Open up a terminal window, and type in the following commands: Atidarykite terminalo langą, ir įveskite šias komandas:

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-priklausomybes

To test out the installation, you can create a test rails project: Išbandyti įrengimas, galite sukurti bandymų bėgiai projektas:

$ rails testapp $ Bėgiai testapp

This will create a test application. Tai sukurs bandymo taikymą. Change directory into that directory and launch the Ruby on Rails development server (WEBrick) Pakeisti katalogą į tą katalogą ir paleisti Ruby on Rails plėtros serverio (WEBrick)

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

Example: Pavyzdys

/testapp$ ./script/server / testapp $. / script / server
=> Booting WEBrick… => Atsisiųsti WEBrick ...
=> Rails application started on => Rails prasidėjo http://0.0.0.0:3000 http://0.0.0.0:3000
=> Ctrl-C to shutdown server; call with –help for options => Ctrl-C išjungti serverį; pareikalavimo-pagalba puslapį
[2006-12-07 05:28:37] INFO WEBrick 1.3.1 [2006-12-07 05:28:37] Informacija 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] Informacija 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] Informacija WEBrick: HTTPServer # pradžia: pid = 6.687 port = 3000

You'll notice that the server is listening on port 3000. Jūs pastebėsite, kad serveris yra klausymas dėl uosto 3000. Open up a browser, and go to Atidarykite naršyklę ir eikite į http://localhost:3000 http://localhost:3000

This article was originally written on 12/7/06 Tagged with: Šis straipsnis buvo parašytas ant 12/7/06 Tagged with: Adding Software Įrašyta įranga , , Ruby on Rails Ruby on Rails , , Ubuntu Ubuntu

Daily Email Updates Dienos paštas Atnaujinimai

You can get our how-to articles in your inbox each day for free. Galite gauti mūsų kaip prie straipsnių į Jūsų pašto dėžutę kasdien nemokamai. Just enter your name and email below: Tiesiog įveskite vardą ir elektroninio pašto adresą žemiau:


Name: Vardas:
Email: Paštas:

Comments (2) Komentarai (2)

  1. Piku Piku

    You should always install the latest version of Jūs visada turite įdiegti naujausią Gems Deimantai (currently 1.0.1). (šiuo metu 1.0.1).

  2. SubbaRao SubbaRao

    Thanks, It helped. Ačiū, Ji padėjo.


Leave a Comment Palikite komentarą




Leave your Palikite friendly draugiškas comment here. komentarus.

If you have a computer help question, Jei turite kompiuteryje Pagalba klausimą, click here to leave it on the forums Spauskite čia, jei norite palikti jį dėl forumai instead. vietoj.

Note: Your comment may not show up immediately on the site. Pastaba: Jūsų komentaras gali būti rodomas iš karto svetainėje.

Our Friends Mūsų draugai
Getting Started Paruo


About How-To Geek Apie How-To Geek
What Is That Process? Kas yra šis procesas?
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.