Getting OptionParser::InvalidOption error while installing rails

313 views
Skip to first unread message

Muralitharan A.

unread,
Dec 4, 2013, 1:10:41 PM12/4/13
to rubyonra...@googlegroups.com
Hi,

Topic : Ruby On Rails
Issue : Error while installing rails using rubygems.

Description:

Am using ruby 1.9.3p194 and rubygems-2.1.7 on Ubuntu 12.0.

Getting the below error when trying to install Rails using rubyGems.

gem install rails --include-dependencies
ERROR: While executing gem ... (OptionParser::InvalidOption)
invalid option: --include-dependencies


Any sort of help is much appreciated.

Regards,
Muralitharan A

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

Colin Law

unread,
Dec 4, 2013, 4:19:31 PM12/4/13
to rubyonra...@googlegroups.com
On 4 December 2013 18:10, Muralitharan A. <li...@ruby-forum.com> wrote:
> Hi,
>
> Topic : Ruby On Rails
> Issue : Error while installing rails using rubygems.
>
> Description:
>
> Am using ruby 1.9.3p194 and rubygems-2.1.7 on Ubuntu 12.0.

There is not a Ubuntu 12.0. Perhaps you mean 12.04. I recommend
using rvm to install and manage RoR. https://rvm.io/

Others suggest rbenv but I have no experience of that.

Colin

Thomas Murphy

unread,
Dec 4, 2013, 1:15:09 PM12/4/13
to rubyonra...@googlegroups.com
On Wed, Dec 4, 2013 at 1:10 PM, Muralitharan A. <li...@ruby-forum.com> wrote:
Hi,

Topic : Ruby On Rails
Issue : Error while installing rails using rubygems.

Description:

Am using ruby 1.9.3p194 and rubygems-2.1.7 on Ubuntu 12.0.

Getting the below error when trying to install Rails using rubyGems.

gem install rails --include-dependencies
ERROR:  While executing gem ... (OptionParser::InvalidOption)
    invalid option: --include-dependencies

Is --include-dependencies a valid flag?

I don't see it when I call

gem help install

from the command line

 
Any sort of help is much appreciated.

Regards,
Muralitharan A
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/3d8224ec2edfac7aa7675c8f6952e394%40ruby-forum.com.
For more options, visit https://groups.google.com/groups/opt_out.

Muralitharan A.

unread,
Dec 6, 2013, 3:16:47 AM12/6/13
to rubyonra...@googlegroups.com
Colin Law wrote in post #1129611:
Thanks Colin and Thomas for your suggestion. I tried with rvm to install
rails and am able to do it with out any issue...
Reply all
Reply to author
Forward
0 new messages