我正在我的windows env中尝试捆绑安装,但由于以下错误而失败。 我安装了开发套件:
ruby dk.rb init
ruby dk.rb install
运行bundle install
时,我得到以下输出。
DL is deprecated, please use Fiddle
Fetching gem metadata from https://rubygems.org/.........
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
Using mime-types 2.3
Using mini_portile 0.6.0
Using nokogiri 1.6.2.1
Using rack 1.5.2
Using rack-test 0.6.2
Using xpath 2.0.0
Using capybara 2.3.0
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
c:/Ruby200/bin/ruby.exe extconf.rb
creating Makefile
make "DESTDIR=" clean
0 [main] rm 10376 open_stackdumpfile: Dumping stack trace to rm.exe.stackdump
make: [clean-static] Error 5 (ignored)
0 [main] rm 14216 open_stackdumpfile: Dumping stack trace to rm.exe.stackdump
make: [clean] Error 5 (ignored)
make "DESTDIR="
generating generator-i386-mingw32.def
compiling generator.c
In file included from c:/Ruby200/include/ruby-2.0.0/ruby.h:33:0,
from ../fbuffer/fbuffer.h:5,
from generator.c:1:
c:/Ruby200/include/ruby-2.0.0/ruby/ruby.h:125:14: error: size of array 'ruby_check_sizeof_voidp' is negative
In file included from c:/Ruby200/include/ruby-2.0.0/ruby.h:33:0,
from ../fbuffer/fbuffer.h:5,
from generator.c:1:
答案 0 :(得分:1)
我在运行bundle
时遇到了类似的错误,并且通过同意Xcode许可证来修复它。我最近更新了Xcode,事实证明我需要重新同意许可才能成功使用命令行工具。
跑步
xcodebuild -license
答案 1 :(得分:1)
Mine也是一个xcode问题,我正在使用Mac。我不得不使用sudo来通过shell提供许可。
sudo xcodebuild -license
这对我有用。