Subscribe to How-To Geek Підписатись на How-To 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 Установка Ruby On Rails на Ubuntu Edgy і Dapper

Ruby on Rails is a popular new framework for developing web applications. Ruby On Rails є популярним нові основи для розробки веб-додатків. Since Ruby on Rails includes a built-in web server for development purposes, there is no need to install a separate web server. З Ruby On Rails включає в себе вбудований веб-сервер для цілей розвитку, немає необхідності встановлювати окремий веб-сервер.

First you will want to make sure that you've Спочатку ви будете хотіти, щоб переконатися, що ви enabled the universe repository. включений Всесвіту сховище.

Open up a terminal window, and type in the following commands: Відкрийте вікно терміналу і введіть таку команду:

sudo apt-get install ruby ri rdoc Суду Apt-Get установці Ruby RI RDoc
sudo wget http://rubyforge.org/frs/download.php/11289/rubygems-0.9.0.tgz Суду Wget http://rubyforge.org/frs/download.php/11289/rubygems-0.9.0.tgz
tar -xvzf rubygems-0.9.0.tgz Тар-xvzf RubyGems-0.9.0.tgz
cd rubygems-0.9.0 CD RubyGems-0.9.0
sudo ruby setup.rb Суду Ruby setup.rb
sudo gem install rails –include-dependencies Суду Gem установки рейок включати-залежних

To test out the installation, you can create a test rails project: Щоб перевірити установку, ви можете створити тестовий проект рейок:

$ rails testapp $ Рейок TestApp

This will create a test application. Це дозволить створити тестові програми. Change directory into that directory and launch the Ruby on Rails development server (WEBrick) Перейдіть в каталог в цю директорію і запустите Ruby On Rails Development Server (WEBrick)

$ ./script/server $. / Сценарій / сервер

Example: Приклад:

/testapp$ ./script/server / TestApp $. / Сценарій / сервер
=> Booting WEBrick… => WEBrick загрузка ...
=> Rails application started on => Rails додаток, запущене на http://0.0.0.0:3000 http://0.0.0.0:3000
=> Ctrl-C to shutdown server; call with –help for options => Ctrl-C для завершення роботи сервера;-виклику за допомогою посилань на
[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 # старт: PID = 6687 порт = 3000

You'll notice that the server is listening on port 3000. Ви помітите, що сервер працює на порту 3000. Open up a browser, and go to Відкрийте браузер і перейдіть на http://localhost:3000 http://localhost:3000

This article was originally written on 12/7/06 Tagged with: Ця стаття була спочатку написана на 12/7/06 тегами: Adding Software Додавання програмного забезпечення , , Ruby on Rails Ruby On Rails , , Ubuntu Ubuntu

Daily Email Updates Email Щоденні оновлення

You can get our how-to articles in your inbox each day for free. Ви можете отримати наші довідкові статті у Вашу поштову скриньку щодня безкоштовно. Just enter your name and email below: Просто введіть ваші ім'я та адресу електронної пошти нижче:


Name: Ім'я:
Email: Електронна пошта:

Comments (2) Коментарі (2)

  1. Piku Piku

    You should always install the latest version of Ви завжди повинні встановити останню версію Gems Дорогоцінні камені (currently 1.0.1). (в даний час 1.0.1).

  2. SubbaRao Subbarao

    Thanks, It helped. Дякую, допомогло.


Leave a Comment Залишити коментар




Leave your Залиш свій friendly дружній comment here. коментарі.

If you have a computer help question, Якщо у вас є комп'ютер допоможе питання, click here to leave it on the forums Натисніть тут, щоб залишити його на форумах instead. замість.

Note: Your comment may not show up immediately on the site. Примітка: Ваш коментар може не з'явитися відразу на місці.

Our Friends Наші друзі
Getting Started Приступаючи до роботи


About How-To Geek Про How-To Geek
What Is That 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. Всі права захищені.