I need to install some Ruby gems in Windows in the offline-mode (without internet). I have gem files downloaded from the other PC.
As long as the gem does not require specific options (with --
), I just execute gem install somegem --local
and everything is fine.
But if the gem does require those options, there is a trouble. For example, I want to install sqlite3-1.3.10.gem
:
gem install sqlite3 --local -- --with-sqlite3-dir="c:\programs\sqlite"
This returns me an error:
ERROR: While executing gem ... (OptionParser::InvalidOption)
invalid option: --with-sqlite3-dir=c:\programs\sqlite
What is wrong?
- ruby 2.2.2p95 (2015-04-13 revision 50295) [x64-mingw32]
- Rails 4.2.2