我们即将毕业了 2015-04-17 08:59 采纳率: 0%
浏览 4274
已结题

使用bundle install时遇到的问题

Fetching source index from https://ruby.taobao.org/
Resolving dependencies...............
Using rake 10.4.2

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

C:/Ruby22-x64/bin/ruby.exe -r ./siteconf20150417-6052-ppbpwq.rb extconf.rb

checking for main() in -lc... *** 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=C:/Ruby22-x64/bin/$(RUBY_BASE_NAME)
--with-redcloth_scan-dir
--without-redcloth_scan-dir
--with-redcloth_scan-include
--without-redcloth_scan-include=${redcloth_scan-dir}/include
--with-redcloth_scan-lib
--without-redcloth_scan-lib=${redcloth_scan-dir}/lib
--with-clib
--without-clib
C:/Ruby22-x64/lib/ruby/2.2.0/mkmf.rb:456:in try_do': The compiler failed to gen
erate an executable file. (RuntimeError)
You have to install development tools first.
from C:/Ruby22-x64/lib/ruby/2.2.0/mkmf.rb:541:in
try_link0'
from C:/Ruby22-x64/lib/ruby/2.2.0/mkmf.rb:556:in try_link'
from C:/Ruby22-x64/lib/ruby/2.2.0/mkmf.rb:735:in
try_func'
from C:/Ruby22-x64/lib/ruby/2.2.0/mkmf.rb:966:in `block in have_library'

    from C:/Ruby22-x64/lib/ruby/2.2.0/mkmf.rb:911:in `block in checking_for'

    from C:/Ruby22-x64/lib/ruby/2.2.0/mkmf.rb:351:in `block (2 levels) in po

stpone'
from C:/Ruby22-x64/lib/ruby/2.2.0/mkmf.rb:321:in open'
from C:/Ruby22-x64/lib/ruby/2.2.0/mkmf.rb:351:in
block in postpone'
from C:/Ruby22-x64/lib/ruby/2.2.0/mkmf.rb:321:in open'
from C:/Ruby22-x64/lib/ruby/2.2.0/mkmf.rb:347:in
postpone'
from C:/Ruby22-x64/lib/ruby/2.2.0/mkmf.rb:910:in checking_for'
from C:/Ruby22-x64/lib/ruby/2.2.0/mkmf.rb:961:in
have_library'
from extconf.rb:5:in `'

extconf failed, exit code 1

Gem files will remain installed in C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/RedClo
th-4.2.9 for inspection.
Results logged to C:/Ruby22-x64/lib/ruby/gems/2.2.0/extensions/x64-mingw32/2.2.0
/RedCloth-4.2.9/gem_make.out
An error occurred while installing RedCloth (4.2.9), and Bundler cannot
continue.
Make sure that gem install RedCloth -v '4.2.9' succeeds before bundling.

  • 写回答

3条回答 默认 最新

  • devmiao 2015-04-17 18:32
    关注
    评论

报告相同问题?

悬赏问题

  • ¥15 Arcgis相交分析无法绘制一个或多个图形
  • ¥15 seatunnel-web使用SQL组件时候后台报错,无法找到表格
  • ¥15 fpga自动售货机数码管(相关搜索:数字时钟)
  • ¥15 用前端向数据库插入数据,通过debug发现数据能走到后端,但是放行之后就会提示错误
  • ¥30 3天&7天&&15天&销量如何统计同一行
  • ¥30 帮我写一段可以读取LD2450数据并计算距离的Arduino代码
  • ¥15 飞机曲面部件如机翼,壁板等具体的孔位模型
  • ¥15 vs2019中数据导出问题
  • ¥20 云服务Linux系统TCP-MSS值修改?
  • ¥20 关于#单片机#的问题:项目:使用模拟iic与ov2640通讯环境:F407问题:读取的ID号总是0xff,自己调了调发现在读从机数据时,SDA线上并未有信号变化(语言-c语言)