Error installing Rails on Ubuntu 11.10 (Gem::DependencyError)

30 views
Skip to first unread message

Paulo Cassiano

unread,
Mar 30, 2012, 11:00:19 PM3/30/12
to rubyonra...@googlegroups.com
I'm trying to install Ruby on Rails on Ubuntu 11.10, but receiving this
error:

$ sudo gem install rails
ERROR: While executing gem ... (Gem::DependencyError)
Unable to resolve dependencies: rails requires activesupport (=
3.2.3), actionpack (= 3.2.3), activerecord (= 3.2.3), activeresource (=
3.2.3), actionmailer (= 3.2.3), railties (= 3.2.3)


How can I fix this?

Note: Git (1.7.5.4 ) and Ruby (1.9.2p290) are installed properly.

--
Posted via http://www.ruby-forum.com/.

Leonardo Mateo

unread,
Mar 30, 2012, 11:30:39 PM3/30/12
to rubyonra...@googlegroups.com
How did you installed Ruby?
Do you have an updated rubygems?

--
Leonardo Mateo.
There's no place like ~

Alex Mercer

unread,
Mar 31, 2012, 4:25:44 PM3/31/12
to rubyonra...@googlegroups.com
gem update --system

Leonardo Mateo

unread,
Mar 31, 2012, 6:10:29 PM3/31/12
to rubyonra...@googlegroups.com
On Sat, Mar 31, 2012 at 5:25 PM, Alex Mercer <alexey....@gmail.com> wrote:
> gem update --system

Actually, that might not work on a Debian based distro if rubygems has
been installed via apt packages.
That's why I asked how Ruby was installed.

Colin Law

unread,
Apr 1, 2012, 3:52:18 AM4/1/12
to rubyonra...@googlegroups.com
On 31 March 2012 04:00, Paulo Cassiano <li...@ruby-forum.com> wrote:
> I'm trying to install Ruby on Rails on Ubuntu 11.10, but receiving this
> error:
>
>    $ sudo gem install rails
>    ERROR:  While executing gem ... (Gem::DependencyError)
>        Unable to resolve dependencies: rails requires activesupport (=
> 3.2.3), actionpack (= 3.2.3), activerecord (= 3.2.3), activeresource (=
> 3.2.3), actionmailer (= 3.2.3), railties (= 3.2.3)

I strongly advise that you use rvm to install ruby and rails (I am
assuming that you are not using rvm as you have used sudo on gem
install).

Colin

YogiZoli

unread,
Apr 2, 2012, 5:06:14 PM4/2/12
to Ruby on Rails: Talk
Hi,

Colin is right, using RVM has lots of advantages! You can have
multiple Rubies and Gem versions, Gemsets for projects, etc. Highly
recommend because without it you're gonna have a tone of Gem version
problems later.

We made a 1 line script for Ubuntu which installs Wayne's RVM, with
RVM installs a Ruby version 1.9.2 then creates a Gemset which installs
Rails3.2. Just updated it for you! :)
Would be great if you'd give a try. Report me back how it worked
please, I'd like to publish it.

https://github.com/YogiZoli/RVMinstallerForUbuntu

Welcome on Rails!
YogiZoli
Reply all
Reply to author
Forward
0 new messages