Can't setup Rails with RVM in ubuntu 12.04

38 views
Skip to first unread message

haxuan lac

unread,
May 29, 2013, 8:55:07 AM5/29/13
to rubyonra...@googlegroups.com
I'm doing setu Ruby on Rails with RVM.

I had setup ruby 1.9.3 p429 and RVM,RubyGem... succesfully

But I can't setup Rails with command : gem install rails because of
error:

ERROR: While executing gem ... (Gem::DependencyError)
Unable to resolve dependencies: rails requires activesupport (=
3.2.13), actionpack (= 3.2.13), activerecord (= 3.2.13), activeresource
(= 3.2.13), actionmailer (= 3.2.13), railties (= 3.2.13)
and Rails is 2.3.14

please help me solve this problem.Thanks.....

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

mike

unread,
May 29, 2013, 4:12:39 PM5/29/13
to rubyonra...@googlegroups.com
This is odd.  Try the following:

gem install rails --version '3.2.13'

 

haxuan lac

unread,
May 30, 2013, 10:28:41 AM5/30/13
to rubyonra...@googlegroups.com
Thanks .I had solved my problem.I using sudo gem install rails and some
command...

Colin Law

unread,
May 30, 2013, 5:11:06 PM5/30/13
to rubyonra...@googlegroups.com
On 30 May 2013 15:28, haxuan lac <li...@ruby-forum.com> wrote:
> Thanks .I had solved my problem.I using sudo gem install rails and some
> command...

If you are using rvm you should /not/ use sudo with gem install.

Colin

haxuan lac

unread,
May 31, 2013, 7:45:43 AM5/31/13
to rubyonra...@googlegroups.com
Thanks Colin,Mike
I had done with instruction of You.And i tried with
gem install rails --version '3.2.13'
and add : [[ -s "$HOME/.rvm/scripts/rvm" ]] && source
"$HOME/.rvm/scripts/rvm" to Bashrc file
This run.Thanks a lot
Reply all
Reply to author
Forward
0 new messages