我们即将毕业了 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 有偿求码,CNN+LSTM实现单通道脑电信号EEG的睡眠分期评估
  • ¥15 没有证书,nginx怎么反向代理到只能接受https的公网网站
  • ¥50 成都蓉城足球俱乐部小程序抢票
  • ¥15 yolov7训练自己的数据集
  • ¥15 esp8266与51单片机连接问题(标签-单片机|关键词-串口)(相关搜索:51单片机|单片机|测试代码)
  • ¥15 电力市场出清matlab yalmip kkt 双层优化问题
  • ¥30 ros小车路径规划实现不了,如何解决?(操作系统-ubuntu)
  • ¥20 matlab yalmip kkt 双层优化问题
  • ¥15 如何在3D高斯飞溅的渲染的场景中获得一个可控的旋转物体
  • ¥88 实在没有想法,需要个思路