From: nobu@... Date: 2014-03-16T07:57:12+00:00 Subject: [ruby-core:61528] [ruby-trunk - Bug #9643] [Assigned] error on install dir contain space . Issue #9643 has been updated by Nobuyoshi Nakada. Category changed from platform/windows to lib/rubygems Status changed from Open to Assigned Assignee changed from cruby-windows to Eric Hodel Seems it is caused by `Gem::Ext::ExtConfBuilder.build`. It insert `-r#{siteconf_path}` to `RUBYOPT`, and the path is cwd, which is under the installed gem directory. I'd suggest to use just base name in `RUBYOPT` and pass cwd by `RUBYLIB` instead. ---------------------------------------- Bug #9643: error on install dir contain space . https://bugs.ruby-lang.org/issues/9643#change-45814 * Author: kk kk * Status: Assigned * Priority: Low * Assignee: Eric Hodel * Category: lib/rubygems * Target version: * ruby -v: ruby 2.0.0p451 (2014-02-24) [x64-mingw32] * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN ---------------------------------------- invalid switch in RUBYOPT: -F (RuntimeError) error on install dir contain space . http://stackoverflow.com/questions/16898286/error-invalid-switch-in-rubyopt-f-runtimeerror-is-shown-while-install-gems -- http://bugs.ruby-lang.org/