小编Cam*_*sei的帖子

Gem 安装失败,在 cygwin 上显示“编译器无法生成可执行文件”

尝试在 上安装多个 gem cygwin,我不断收到此错误:/usr/share/ruby/2.2.0/mkmf.rb:456:in try_do': The compiler failed to generate an executable file. (RuntimeError)

此错误是以下完整错误消息的一部分:

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

    /usr/bin/ruby.exe -r ./siteconf20150603-27012-w371hi.rb extconf.rb
*** 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
        [...truncated...]
        --without-pkg-config
/usr/share/ruby/2.2.0/mkmf.rb:456:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to …
Run Code Online (Sandbox Code Playgroud)

windows cygwin ruby gcc gem

3
推荐指数
1
解决办法
5427
查看次数

标签 统计

cygwin ×1

gcc ×1

gem ×1

ruby ×1

windows ×1