Ruby on rails 无法运行rails服务器

Ruby on rails 无法运行rails服务器,ruby-on-rails,Ruby On Rails,我刚刚开始使用ruby on rails,在安装rails并在控制台上执行许多命令后,我尝试使用命令rails server运行rails服务器,但在未加载coffee rails时出错,我尝试了命令gem install coffee rails gem install coffee-rails Temporarily enhancing PATH to include DevKit... Building native extensions. This could

我刚刚开始使用ruby on rails,在安装rails并在控制台上执行许多命令后,我尝试使用命令
rails server
运行rails服务器,但在未加载coffee rails时出错,我尝试了命令
gem install coffee rails

    gem install coffee-rails
    Temporarily enhancing PATH to include DevKit...
    Building native extensions.  This could take a while...
    ERROR:  Error installing coffee-rails:
    ERROR: Failed to build gem native extension.

C:/Ruby193/bin/ruby.exe -r ./siteconf20140724-4244-v083ym.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

Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/json-1.8.
1 for inspection.
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/extensions/x86-mingw32/1.9.1/js
on-1.8.1/gem_make.out

-他们似乎也遇到了同样的问题,不得不使用旧版本的make。

RubyGems 2.4.1不会在Ruby 1.9.3及更早版本的Windows上构建本机扩展

您需要将RubyGems降级到1.8.29。 要执行此操作,请运行以下命令:

gem update --system 1.8.29
检查gem版本:

gem -v
1.8.29
现在重试您的命令:

gem install coffee-rails

ref:

并且不要在Windows下运行,请使用Unix;)我不使用Windows。在mac/linux/unix下,您将始终遇到无法解决的问题。我买了一本macbook只是为了rails编程,它好得多。是的,windows很糟糕,随时都会切换到unix。。。