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 Instalēšana Ruby on Rails uz Ubuntu Dapper vai Kaitinošs

Ruby on Rails is a popular new framework for developing web applications. Ruby on Rails ir populārs jaunu sistēmu, lai attīstītu tīmekļa lietojumprogrammas. Since Ruby on Rails includes a built-in web server for development purposes, there is no need to install a separate web server. Tā kā Rails Ruby ietilpst iebūvēts web serveris attīstības nolūkā, nav nepieciešams uzstādīt atsevišķu web serveri.

First you will want to make sure that you've Vispirms jūs vēlaties, lai pārliecinātos, ka jūs esat enabled the universe repository. ļāva Universe repozitorijā.

Open up a terminal window, and type in the following commands: Atvērt termināla logu un ierakstiet šādas 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-ietvert atkarības

To test out the installation, you can create a test rails project: Izmēģināt iekārtā, var izveidot testa rails projekts:

$ rails testapp $ Sliedes testapp

This will create a test application. Tas radīs pārbaudes pieteikumu. Change directory into that directory and launch the Ruby on Rails development server (WEBrick) Change directory minētajā direktorijā un sākt Ruby on Rails attīstības serveri (WEBrick)

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

Example: Piemērs:

/testapp$ ./script/server / testapp $. / script / server
=> Booting WEBrick… => Booting WEBrick ...
=> Rails application started on => Rails piemērošana sākās http://0.0.0.0:3000 http://0.0.0.0:3000
=> Ctrl-C to shutdown server; call with –help for options => Ctrl-C to shutdown server; zvanu-help opcijas
[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 # Sākums: pid = 6.687 ports = 3000

You'll notice that the server is listening on port 3000. Jūs ievērosiet, ka serveris ir klausīties no 3000 portu. Open up a browser, and go to Atvērt pārlūkprogrammā un dodieties uz http://localhost:3000 http://localhost:3000

This article was originally written on 12/7/06 Tagged with: Šis pants tika sākotnēji rakstīts uz 12/7/06 tagged with: Adding Software Ievietošanas Software , , Ruby on Rails Ruby on Rails , , Ubuntu Ubuntu

Daily Email Updates Daily Email Updates

You can get our how-to articles in your inbox each day for free. Jūs varat saņemt mūsu how-to rakstus savā pastkastītē katru dienu par brīvu. Just enter your name and email below: Vienkārši ievadiet jūsu vārdu un e-pasta zemāk:


Name: Vārds:
Email: E-pasts:

Comments (2) Komentāri (2)

  1. Piku Piku

    You should always install the latest version of Jums vienmēr vajadzētu instalēt jaunāko versiju Gems Dārgakmeņi (currently 1.0.1). (šobrīd 1.0.1).

  2. SubbaRao SubbaRao

    Thanks, It helped. Paldies, tas palīdzēja.


Our Friends Our Friends
Getting Started Getting Started


About How-To Geek Par How-To Geek
What Is That Process? Kas ir šis process?
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.