top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

Getting OptionParser::InvalidOption error while installing ruby on rails

+1 vote
702 views

I 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
posted Dec 4, 2013 by Majula Joshi

Share this question
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button
There is not a Ubuntu 12.0. Perhaps you mean 12.04. I recommend using rvm to install and manage RoR. https://rvm.io/

1 Answer

+1 vote

Is --include-dependencies a valid flag? I dont see it when I call

gem help install
from the command line

answer Dec 4, 2013 by Luv Kumar
Similar Questions
+1 vote

Is it possible to run Ruby and Rails on Mac OS X off of a local folder (without local or system install using RVM, Homebrew, etc.)

Similar to the way one can copy/paste Java installation directory and just run off of it with no dependencies, I'd like to do the same with Ruby/Rails.

The goal is to be able to connect a USB drive to someone's Mac OS X, open terminal, and demo an application (execute "rails server" from the mounted USB drive) without having to install/compile anything.

Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...