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 Instalasi Ruby on Rails di Ubuntu Dapper atau Edgy

Ruby on Rails is a popular new framework for developing web applications. Ruby on Rails adalah sebuah kerangka kerja baru yang populer untuk mengembangkan aplikasi web. Since Ruby on Rails includes a built-in web server for development purposes, there is no need to install a separate web server. Sejak Ruby on Rails termasuk built-in web server untuk tujuan pembangunan, tidak perlu untuk menginstal sebuah web server terpisah.

First you will want to make sure that you've Pertama Anda akan ingin memastikan bahwa Anda telah enabled the universe repository. memungkinkan alam semesta repositori.

Open up a terminal window, and type in the following commands: Membuka jendela terminal, dan ketik perintah berikut:

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

To test out the installation, you can create a test rails project: Untuk menguji instalasi, Anda dapat membuat rel tes proyek:

$ rails testapp $ Rel testapp

This will create a test application. Ini akan menciptakan sebuah aplikasi pengujian. Change directory into that directory and launch the Ruby on Rails development server (WEBrick) Ubah direktori ke direktori tersebut dan meluncurkan pengembangan Ruby on Rails server (WEBrick)

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

Example: Contoh:

/testapp$ ./script/server / testapp $. / script / server
=> Booting WEBrick… => Boot WEBrick ...
=> Rails application started on => Aplikasi Rails dimulai pada http://0.0.0.0:3000 http://0.0.0.0:3000
=> Ctrl-C to shutdown server; call with –help for options => Ctrl-C untuk shutdown server; panggilan dengan opsi-bantuan untuk
[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. Anda akan melihat bahwa server yang mendengarkan pada port 3000. Open up a browser, and go to Buka browser, dan pergi ke http://localhost:3000 http://localhost:3000

This article was originally written on 12/7/06 Tagged with: Artikel ini awalnya ditulis pada 12/7/06 Tagged with: Adding Software Menambahkan Software , , Ruby on Rails Ruby on Rails , , Ubuntu Ubuntu

Daily Email Updates Harian Email Pembaharuan

You can get our how-to articles in your inbox each day for free. Anda bisa mendapatkan kita bagaimana-untuk artikel dalam kotak masuk Anda setiap hari secara gratis. Just enter your name and email below: Cukup masukkan nama dan email Anda di bawah ini:


Name: Nama:
Email: Email:

Comments (2) Komentar (2)

  1. Piku Piku

    You should always install the latest version of Anda harus selalu menginstal versi terbaru Gems Permata (currently 1.0.1). (saat ini 1.0.1).

  2. SubbaRao Subbarao

    Thanks, It helped. Terima kasih, itu membantu.


Leave a Comment Tinggalkan Komentar




Leave your Meninggalkan friendly ramah comment here. komentar di sini.

If you have a computer help question, Jika Anda memiliki pertanyaan bantuan komputer, click here to leave it on the forums klik di sini untuk meninggalkannya di forum instead. selain.

Note: Your comment may not show up immediately on the site. Catatan: Komentar anda mungkin tidak muncul segera di situs.

Our Friends Our Friends
Getting Started Persiapan


About How-To Geek Tentang How-To Geek
What Is That Process? Apa Proses Itu?
svchost.exe svchost.exe
jusched.exe jusched.exe
dwm.exe dwm.exe
ctfmon.exe ctfmon.exe
wmpnetwk.exe wmpnetwk.exe
mDNSResponder.exe mDNSResponder.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.