在 cygwin 中安装 rails 时。我收到此错误
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/ruby
--with-atomic_reference-dir
--without-atomic_reference-dir
--with-atomic_reference-include
--without-atomic_reference-include=${atomic_reference-dir}/include
--with-atomic_reference-lib
--without-atomic_reference-lib=${atomic_reference-dir}/lib
/usr/lib/ruby/1.9.1/mkmf.rb:381:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from /usr/lib/ruby/1.9.1/mkmf.rb:461:in `try_link0'
from /usr/lib/ruby/1.9.1/mkmf.rb:712:in `try_run'
from extconf.rb:22:in `<main>'
我尝试了不同的解决方案。网上的大部分教程都在谈论安装开发包。但是 cygwin 包管理器在开发时会提供很多包搜索。任何人都可以告诉我在这里缺少什么,或者可以指向有关在 Windows 7 中使用 cygwin 安装 ROR 的详细教程。