问题描述
- 使用bundle install时遇到的问题
-
Fetching source index from https://ruby.taobao.org/
Resolving dependencies...............
Using rake 10.4.2Gem::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:intry_do': The compiler failed to gen
try_link0'
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
from C:/Ruby22-x64/lib/ruby/2.2.0/mkmf.rb:556:intry_link'
try_func'
from C:/Ruby22-x64/lib/ruby/2.2.0/mkmf.rb:735:in
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:inopen'
block in postpone'
from C:/Ruby22-x64/lib/ruby/2.2.0/mkmf.rb:351:in
from C:/Ruby22-x64/lib/ruby/2.2.0/mkmf.rb:321:inopen'
postpone'
from C:/Ruby22-x64/lib/ruby/2.2.0/mkmf.rb:347:in
from C:/Ruby22-x64/lib/ruby/2.2.0/mkmf.rb:910:inchecking_for'
have_library'
from C:/Ruby22-x64/lib/ruby/2.2.0/mkmf.rb:961:in
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 thatgem install RedCloth -v '4.2.9'
succeeds before bundling.
解决方案
http://blog.csdn.net/pan_tian/article/details/8761956
解决方案二:
提示的的RedCloth,你安装好了没
解决方案三:
在windows下配的环境?