오래전 이야기/Server

Install ruby on rails

리눅스 엔지니어였던 2008. 9. 15. 14:17

###  Install Ruby on Rails

- Ruby Distribution
URL: ftp://ftp.ruby-lang.org/pub/ruby/

- Ruby Homepage

http://www.ruby-lang.org/


cd /usr/local/src

wget http://rubyforge.org/frs/download.php/7858/ruby-1.8.4.tar.gz

wget http://rubyforge.org/frs/download.php/5207/rubygems-0.8.11.tgz

http://rubyforge.org/frs/download.php/7654/rails-1.0.0.tgz


== Ruby Install

tar xvfzp ruby-1.8.4.tar.gz


cd ruby-1.8.4


./configure --prefix=/usr/local/ruby


make


make install


== RubyGems Install


cd /usr/local/src


tar xvfzp rubygems-0.8.11.tgz


cd rubygems-0.8.11


/usr/local/ruby/bin/ruby setup.rb


== Rails Install


cd /usr/local/src


tar xvfzp rails-1.0.0.tgz


/usr/local/rubygems-0.8.11/bin/gems install rails --include-dependencies


/usr/local/rubygems-0.8.11/bin/gems update rails



== Testing of ruby on rails


cd /home/sysadmin3/ruby


[root@CStest ruby]# rails demo
      create 
      create  app/controllers
      create  app/helpers
      create  app/models
      create  app/views/layouts
      create  config/environments
      create  components
      create  db
      create  doc
      create  lib
      create  lib/tasks
      create  log
      create  public/images
      create  public/javascripts
      create  public/stylesheets
      create  script/performance
      create  script/process
      create  test/fixtures
      create  test/functional
      create  test/mocks/development
      create  test/mocks/test
      create  test/unit
      create  vendor
      create  vendor/plugins
      create  Rakefile
      create  README
      create  app/controllers/application.rb
      create  app/helpers/application_helper.rb
      create  test/test_helper.rb
      create  config/database.yml
      create  config/routes.rb
      create  public/.htaccess
      create  config/boot.rb
      create  config/environment.rb
      create  config/environments/production.rb
      create  config/environments/development.rb
      create  config/environments/test.rb
      create  script/about
      create  script/breakpointer
      create  script/console
      create  script/destroy
      create  script/generate
      create  script/performance/benchmarker
      create  script/performance/profiler
      create  script/process/reaper
      create  script/process/spawner
      create  script/process/spinner
      create  script/runner
      create  script/server
      create  script/plugin
      create  public/dispatch.rb
      create  public/dispatch.cgi
      create  public/dispatch.fcgi
      create  public/404.html
      create  public/500.html
      create  public/index.html
      create  public/favicon.ico
      create  public/robots.txt
      create  public/images/rails.png
      create  public/javascripts/prototype.js
      create  public/javascripts/effects.js
      create  public/javascripts/dragdrop.js
      create  public/javascripts/controls.js
      create  doc/README_FOR_APP
      create  log/server.log
      create  log/production.log
      create  log/development.log
      create  log/test.log


 ruby script/server


connect http://localhost:3000/