简体   繁体   中英

Rails Gem 5.0.0 install error

I am having an error with installing Rails. I am using 64-bit Windows 10 and I already install the MSYS2 dev kit and Ruby. Here is the error message from the Command Prompt:

C:/Ruby24-x64/lib/ruby/2.4.0/mkmf.rb:457:in 'try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from C:/Ruby24-x64/lib/ruby/2.4.0/mkmf.rb:588:in 'try_cpp'
from C:/Ruby24-x64/lib/ruby/2.4.0/mkmf.rb:1095:in 'block in have_header'
from C:/Ruby24-x64/lib/ruby/2.4.0/mkmf.rb:945:in 'block in checking_for'
from C:/Ruby24-x64/lib/ruby/2.4.0/mkmf.rb:351:in 'block (2 levels) in postpone'
from C:/Ruby24-x64/lib/ruby/2.4.0/mkmf.rb:321:in 'open'
from C:/Ruby24-x64/lib/ruby/2.4.0/mkmf.rb:351:in 'block in postpone'
from C:/Ruby24-x64/lib/ruby/2.4.0/mkmf.rb:321:in 'open'
from C:/Ruby24-x64/lib/ruby/2.4.0/mkmf.rb:347:in 'postpone'
from C:/Ruby24-x64/lib/ruby/2.4.0/mkmf.rb:944:in 'checking_for'
from C:/Ruby24-x64/lib/ruby/2.4.0/mkmf.rb:1094:in 'have_header'
from extconf.rb:3:in ''

To see why this extension failed to compile, please check the mkmf.log which can be found here:

C:/Ruby24-x64/lib/ruby/gems/2.4.0/extensions/x64-mingw32/2.4.0/nio4r-1.2.1/mkmf.log

extconf failed, exit code 1

Any advice? Any help or tips?

Thanks for your time and help, David

You have to install development tools first.

This is a mandatory to have the development tools installed. You can find more instruction reading this article

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM