Subscribe to How-To Geek Mag-subscribe sa Paano-Upang Geek

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 Pag-install ng Ruby sa daang-bakal sa Ubuntu maselang nakasuot o nerbiyoso

Ruby on Rails is a popular new framework for developing web applications. Ruby sa daang-bakal ay isang popular na bagong framework para sa pagbubuo ng mga aplikasyon ng web. Since Ruby on Rails includes a built-in web server for development purposes, there is no need to install a separate web server. Since Ruby sa daang-bakal kabilang ang isang built-in ng web server para sa mga layunin ng pag-unlad, hindi na kailangang i-install ng isang hiwalay na web server.

First you will want to make sure that you've Una ay gusto mong siguraduhin na ang iyong ka enabled the universe repository. naka-enable ang universe repository.

Open up a terminal window, and type in the following commands: Buksan ang isang terminal window, at i-type ang mga sumusunod na command:

sudo apt-get install ruby ri rdoc sudo APT-i-install ang makakuha ng 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 alkitran-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 hiyas i-install ang daang-bakal-isama-dependencies

To test out the installation, you can create a test rails project: Upang subukan ang pag-install, maaari kang lumikha ng isang pagsubok sa daang-bakal proyekto:

$ rails testapp $ Daang-bakal testapp

This will create a test application. Ito ay lilikha ng isang pagsubok sa aplikasyon. Change directory into that directory and launch the Ruby on Rails development server (WEBrick) Baguhin ang direktoryo sa direktoryong iyon at ilunsad ang Ruby sa daang-bakal-unlad ng server (WEBrick)

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

Example: Halimbawa:

/testapp$ ./script/server / testapp $. / script / server
=> Booting WEBrick… => Booting WEBrick ...
=> Rails application started on => Daang-bakal application makapagsimula sa 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; tumawag sa may-tulong para sa mga pagpipilian
[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 # simulan: pid = 6,687 port = 3000

You'll notice that the server is listening on port 3000. Mapapansin mo na ang server ay nakikinig sa port 3000. Open up a browser, and go to Buksan up ng isang browser, at pumunta sa http://localhost:3000 http://localhost:3000

This article was originally written on 12/7/06 Tagged with: Ang artikulong ito ay orihinal na isinulat sa 12/7/06 Tagged with: Adding Software Pagdaragdag ng Software , , Ruby on Rails Ruby sa daang-bakal , , Ubuntu Ubuntu

Daily Email Updates Araw-araw na Updates Email

You can get our how-to articles in your inbox each day for free. Maaari kang makakuha ng aming kung-paano na mga artikulo sa iyong inbox sa bawat araw para sa libre. Just enter your name and email below: Ilagay lamang ang inyong pangalan at email sa ibaba:


Name: Pangalan:
Email: Email:

Comments (2) Comments (2)

  1. Piku Piku

    You should always install the latest version of Ikaw ay dapat palaging i-install ang pinakabagong bersyon ng Gems Diamante (currently 1.0.1). (kasalukuyang 1.0.1).

  2. SubbaRao SubbaRao

    Thanks, It helped. Salamat, ito ay tumulong.


Leave a Comment Iwanan ng isang Puna




Leave your Iwanan ang iyong mga friendly friendly comment here. puna dito.

If you have a computer help question, Kung ikaw ay may isang computer ng tulong tanong, click here to leave it on the forums i-click dito upang mag-iwan ito sa forums instead. sa halip ng.

Note: Your comment may not show up immediately on the site. Tandaan: Ang iyong puna ay maaaring hindi magpapakita agad sa site.

Our Friends Ang aming mga Friends
Getting Started Pagsisimula


About How-To Geek Tungkol sa Paano-Upang Geek
What Is That Process? Ano ba ang Proseso Iyon?
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.