I did sudo apt-get install rails and all seemed good.
Reading package lists... Done
Building dependency tree
Reading state information...
...
Setting up ruby-actionmailer-2.3 (2.3.14-2) ...
Setting up ruby-activeresource-2.3 (2.3.14-1) ...
Setting up ruby-rails-2.3 (2.3.14-2) ...
Setting up rails (2.3.14.1) ...
Setting up ruby1.8-dev (1.8.7.352-2ubuntu0.1) ...
But now when I try to do
rails new test
I get cannot load such file -- active_support (LoadError)
I would not recommend trying to load rails via aptitude, I would use RubyGems. Then just run
gem install rails, and pass a specific version if needed.Case in point, aptitude is trying to serve you up Rails 2.3, when Rails is currently on version 3.2. The command you ran,
rails new testis the rails 3 version. In Rails 2 it would bescript/rails ...something.Specifically, you can try: