Error
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.

git bash

Install Ruby 1.9.2 on Rails 3 inside RVM and make project-specific gem set
Sunday, 05 June 2011 15:32
Install RVM and pre-requirements

sudo apt-get install bash curl git
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)


Add these lines to ~/.bashrc:

# This loads RVM into a shell session.
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"


Run following to test RVM and install pre-requirements specified there:

rvm notes


In my case it was:

sudo apt-get install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev


Install default Ruby 1.9.2 and test it:

rvm install 1.9.2
rvm --default ruby-1.9.2
ruby -v


Create project-specific gemset, make it default, install Rails with pre-requirements:

rvm gemset create my_project
rvm use 1.9.2@my_project --default


Then either create a new project:

gem install rails
rails my_project


Or install dependencies for an existing project:

cd my_project
gem install bundle
bundle install

Read more: http://feeds.dzone.com/~r/dzone/snippets/~3/nnzBniC7g70/13251

 


Taxonomy by Zaragoza Online