![dapper 安装](https://i-blog.csdnimg.cn/blog_migrate/f29adf4d98d9a8f02d128a05d961904d.png)
dapper 安装
Ruby on Rails is a popular new framework for developing web applications. 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是用于开发Web应用程序的流行新框架。 由于Ruby on Rails包含用于开发目的的内置Web服务器,因此无需安装单独的Web服务器。
First you will want to make sure that you’ve enabled the universe repository.
首先,您将要确保已启用Universe资源库。
Open up a terminal window, and type in the following commands:
打开一个终端窗口,然后输入以下命令:
sudo apt-get install ruby ri rdoc sudo wget http://rubyforge.org/frs/download.php/11289/rubygems-0.9.0.tgz tar -xvzf rubygems-0.9.0.tgz cd rubygems-0.9.0 sudo ruby setup.rb sudo gem install rails –include-dependencies
sudo apt-get install ruby ri rdoc sudo wget http://rubyforge.org/frs/download.php/11289/rubygems-0.9.0.tgz tar -xvzf rubygems-0.9.0.tgz cd rubygems-0.9.0 sudo ruby setup.rb sudo gem安装导轨–include-dependencies
To test out the installation, you can create a test rails project:
要测试安装,可以创建一个测试轨道项目:
$ rails testapp
$ rails testapp
This will create a test application. Change directory into that directory and launch the Ruby on Rails development server (WEBrick)
这将创建一个测试应用程序。 将目录更改为该目录,然后启动Ruby on Rails开发服务器(WEBrick)
$ ./script/server
$ ./脚本/服务器
Example:
例:
/testapp$ ./script/server=> Booting WEBrick…=> Rails application started on http://0.0.0.0:3000=> Ctrl-C to shutdown server; call with –help for options[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 WEBrick::HTTPServer#start: pid=6687 port=3000
/ testapp $ ./script/server=>正在启动WEBrick…=> Rails应用程序从http://0.0.0.0:3000 => Ctrl-C启动以关闭服务器; 使用–help进行选项调用[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]信息WEBrick :: HTTPServer#start:pid = 6687 port = 3000
You’ll notice that the server is listening on port 3000. Open up a browser, and go to http://localhost:3000
您会注意到服务器正在侦听端口3000。打开浏览器,然后转到http:// localhost:3000。
![](https://i-blog.csdnimg.cn/blog_migrate/ef5607ea51a8b01976fe5d34889a9bcd.png)
翻译自: https://www.howtogeek.com/howto/ubuntu/installing-ruby-on-rails-on-ubuntu-dapper-or-edgy/
dapper 安装