Friday, 23 March 2012

Installing Rails 3.2 into Linux Mint (and other Linux distributions)


1) Install RVM:
  bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)   


2) Install or update RubyGems:
 gem update --system  


3) Install Rails:
 gem install rails  


That's it! Any problems, let me know below.

4 comments:

  1. thanks!!! that did it for me!

    ReplyDelete
  2. Wonderfully simple. Now it works for my root user, but I have problems with non privileged users. Rails command returns this:

    (under linux mint 13)

    $ rails
    /usr/lib/ruby/1.8/rubygems.rb:779:in `report_activate_error': Could not find RubyGem railties (>= 0) (Gem::LoadError)
    from /usr/lib/ruby/1.8/rubygems.rb:214:in `activate'
    from /usr/lib/ruby/1.8/rubygems.rb:1082:in `gem'
    from /usr/share/ruby-rvm/gems/ruby-1.9.2-p320/bin/rails:18
    from /usr/share/ruby-rvm/gems/ruby-1.9.2-p320/bin/ruby_noexec_wrapper:14

    I've heard at least one other person with the same problem.

    Any help with that?

    Thanks,
    d

    ReplyDelete
    Replies
    1. I've not seen that specific error before, but did you install Rails using sudo gem install rails? If so, try again without using sudo, and see if that resolves your problem. There's also a StackOverflow answer here:
      http://stackoverflow.com/questions/3518294/installing-rails-path-on-ubuntu-with-rvm
      which may help you out. Best of luck!

      Delete

Please leave a comment if you find this blog helpful or interesting! I'd love to hear from you!