gem install json fails with redifinition of struct timezone/timespec

后端 未结 2 485
花落未央
花落未央 2021-01-17 21:28

I am on Windows with Ruby 1.9.3 with DevKit (all 32 bit on Win 7 64 bit). Now I try to install rails, but get an error from bundle. If I try to run (what bundle is complaini

相关标签:
2条回答
  • 2021-01-17 22:23

    You can open "win32.h" found in the include directory fo your ruby version.

    Then comment out the lines where the "clock_gettime" "clock_getres" functions are declared.

    0 讨论(0)
  • 2021-01-17 22:31

    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

    0 讨论(0)
提交回复
热议问题