Friday, September 30, 2011

Restart(close and open) a new console window and continue running these commands on Rails

Setelah semalaman berkutat dengan instalasi yang error Ruby di OpenSuse 11.3 akhirnya kutemukan obatnya...

bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)

restart console

Insert the following code to the last line of your .bashrc file then save your changes
$HOME/.rvm/scripts/rvm” ]] && . “$HOME/.rvm/scripts/rvm”
Restart(close and open) a new console window and continue running these commands
  • rvm install 1.8.7
  • rvm install 1.9.2
  • rvm —default 1.9.2
  • rvm use 1.9.2
  • ruby -v
  • gem update —system
  • gem install rails
  • rvm rubygems current
  • Finally

  • fatur@internal:~> rails new ~/test/code
          create
          create  README
          create  Rakefile
          create  config.ru
          create  .gitignore
          create  Gemfile
          create  app
          create  app/assets/images/rails.png
          create  app/assets/javascripts/application.js
          create  app/assets/stylesheets/application.css
          create  app/controllers/application_controller.rb
          create  app/helpers/application_helper.rb
          create  app/mailers
          create  app/models
          create  app/views/layouts/application.html.erb
          create  app/mailers/.gitkeep
          create  app/models/.gitkeep
          create  config
          create  config/routes.rb
          create  config/application.rb
          create  config/environment.rb
          create  config/environments
          create  config/environments/development.rb
          create  config/environments/production.rb
          create  config/environments/test.rb
          create  config/initializers
          create  config/initializers/backtrace_silencers.rb
          create  config/initializers/inflections.rb
          create  config/initializers/mime_types.rb
          create  config/initializers/secret_token.rb
          create  config/initializers/session_store.rb
          create  config/initializers/wrap_parameters.rb
          create  config/locales
          create  config/locales/en.yml
          create  config/boot.rb
          create  config/database.yml
          create  db
          create  db/seeds.rb
          create  doc
          create  doc/README_FOR_APP
          create  lib
          create  lib/tasks
          create  lib/tasks/.gitkeep
          create  lib/assets
          create  lib/assets/.gitkeep
          create  log
          create  log/.gitkeep
          create  public
          create  public/404.html
          create  public/422.html
          create  public/500.html
          create  public/favicon.ico
          create  public/index.html
          create  public/robots.txt
          create  script
          create  script/rails
          create  test/fixtures
          create  test/fixtures/.gitkeep
          create  test/functional
          create  test/functional/.gitkeep
          create  test/integration
          create  test/integration/.gitkeep
          create  test/unit
          create  test/unit/.gitkeep
          create  test/performance/browsing_test.rb
          create  test/test_helper.rb
          create  tmp/cache
          create  tmp/cache/assets
          create  vendor/assets/stylesheets
          create  vendor/assets/stylesheets/.gitkeep
          create  vendor/plugins
          create  vendor/plugins/.gitkeep
             run  bundle install
    /home/fatur/.rvm/gems/ruby-1.8.7-p352/gems/bundler-1.0.20/lib/bundler/index.rb:110: [BUG] Segmentation fault
    ruby 1.8.7 (2010-01-10 patchlevel 249) [i586-linux]

    Fetching source index for http://rubygems.org/
    fatur@internal:~>