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
Why Is Heroku's Heroku-18 Stack Only Compatible with Puma Versions 3.7.X
Undefined Method 'Has_Attached_File' with Paperclip 2.3.8 Gem for Rails 2 Using Ruby 1.8.7
Regex "Punct" Character Class Matches Different Characters Depending on Ruby Version
Find Out Which Words in a Large List Occur in a Small String
Ruby/Rails Actionmailer Not Working with Ntlm
Actionmailer Smtp "Certificate Verify Failed"
Gem Install Debugger -V '1.5.0' Fails
Count Iteration on the Enumerable Cycle
Regexp Search Through a Very Large File
Error: Null Value in Column "Id" Violates Not-Null Constraint
Different Behaviour of 'Do .. End' and "{..}" Block in Ruby
Can Someone Explain the Following Code to Me
How to Sort So That "Vitamin B12" Is Not in Front of "Vitamin B6"
Carrierwave and Correct File Extension Depending on Its Contents