bLaXjack bLaXjack - 2 years ago 224
Ruby Question

gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw] Command line error

I have install the window rails installer and when i execute this command

gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw]

I am getting

ERROR: While executing gem ... (Gem::CommandLineError)
Unknown command tzinfo-data,

not sure what i am missing.

Answer Source

The line you posted isn't a command, it is not meant to be run on the command line. Instead you add the line to your Gemfile in the root of your application and run:

bundle install

on your command line to install that gem and all other gems mentioned in the Gemfile.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download