Now Playing Tracks

Ruby on Rails environment on Ubuntu 12.10

1 . Uninstall default ruby : aptitude purge ruby* ; remove /usr/local/bin/ruby

2. Remove ~/.rvm and install rvm ; edit ~/.bashrc 

adding : 

[[ -s “$HOME/.rvm/scripts/rvm” ]] && source “$HOME/.rvm/scripts/rvm” 

# Load RVM into a shell session *as a function*

PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting

3. install newest ruby: rvm list known / never user sudo apt-get install

4. gem install rails 

5. create a gemfile: if you have problem with sqlite 1.3.5 than it must be something wrong with libsqlite-dev, plz install it. or goto stackoverflow.com

6. after creating the rails project, do “bundle update” to kill errors.

bundle install might not remove the error. but upgrading can.

7. rails s      #to start server

We make Tumblr themes