Gem Install JSON Fails with Redifinition of Struct Timezone/Timespec

gem install json fails with redifinition of struct timezone/timespec

Ruby 1.9.3 was compiled with GCC 4.5.2, which is DevKit DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe available from RubyInstaller's download page

You downloaded the newer DevKits, that are only compatible with Ruby 2.0.0 release, as indicated in RubyInstaller announcement.

To clarify:

  • Ruby 1.8.7: tdm-32-4.5.2
  • Ruby 1.9.2: tdm-32-4.5.2
  • Ruby 1.9.3: tdm-32-4.5.2
  • Ruby 2.0.0: mingw64-32-4.7.2 (and 64bits version for 64bits Ruby)

I've added a clarification to RubyInstaller download page about this.

Hope that helps

Rails on windows - install issue

From the output shown above, I assume the following:

  • Installed Ruby 2.0.0 x64 (64bits)
  • Installed some DevKit from RubyInstaller page

Now, as explained here, for 64bits Ruby you need 64bits DevKit.

From the error in the output:


make: x86_64-w64-mingw32-gcc: Command not found

It is clear you didn't install the right DevKit.

Please remove the DevKit installed, download the correct one (as indicated in the link above and in RubyInstaller downloads page) and install again.

You will require to use ruby dk.rb install --force (note the --force option) to override the previous DevKit installation.

As for the the deprecation error, --include-dependencies is no longer required. I recommend you use as installation reference a modern Ruby/Rails guide.



Related Topics



Leave a reply



Submit