top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Getting OptionParser::InvalidOption error while installing ruby on rails

+1 vote
1,247 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 LinkedIn 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.

...