Gem::Ext::BuildError: ERROR: Failed to build gem native extension - Rails 4

Gem::Ext::BuildError: ERROR: Failed to build gem native extension - Rails 4

`Gem::Ext::BuildError: ERROR: Failed to build gem native extension.`

`C:/Ruby193/bin/ruby.exe -r ./siteconf20150116-5956-smcp65.rb extconf.rb
creating Makefile`

`make clean Makefile:165: *** target pattern contains no `%'.  Stop.`

`make`

`Makefile:165: *** target pattern contains no `%'.  Stop.`

`make failed, exit code 2`

每次我创建新的 rails application.After 运行 命令时都会出现此错误 rails new Blog 我收到此错误。

我 运行 在执行 bundle install 时遇到了同样的错误。结果 it's a known issue, but the fix isn't due out until RubyGems 2.5。同时,降级到 v2.3.0 应该是一个合适的解决方法:

> gem update --system 2.3.0