Ruby bundle install 出错

jokry · 2012年01月01日 · 最后由 jokry 回复于 2012年08月06日 · 6451 次阅读

进行 bundle install 出现以下错误,看上去和 rails 没有关系,一直无法解决,请高手指教。 万分感谢。

Fetching source index for http://rubygems.org/
Using rake (0.9.2.2) 
Using multi_json (1.0.4) 
Using activesupport (3.1.1) 
Using builder (3.0.0) 
Using i18n (0.6.0) 
Using activemodel (3.1.1) 
Using erubis (2.7.0) 
Using rack (1.3.6) 
Using rack-cache (1.1) 
Using rack-mount (0.8.3) 
Using rack-test (0.6.1) 
Using hike (1.2.1) 
Using tilt (1.3.3) 
Using sprockets (2.0.3) 
Using actionpack (3.1.1) 
Using mime-types (1.17.2) 
Using polyglot (0.3.3) 
Using treetop (1.4.10) 
Using mail (2.3.0) 
Using actionmailer (3.1.1) 
Using arel (2.2.1) 
Using tzinfo (0.3.31) 
Using activerecord (3.1.1) 
Using activeresource (3.1.1) 
Using bundler (1.0.21) 
Using coffee-script-source (1.2.0) 
Using execjs (1.2.13) 
Using coffee-script (2.2.0) 
Using rack-ssl (1.3.2) 
Installing json (1.6.4) with native extensions creating Makefile
D:/dev/RailsInstaller/Ruby1.9.2/bin/ruby -e "puts 'EXPORTS', 'Init_parser'"  > parser-i386-mingw32.def
      0 [main] make 4948 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
 248826 [main] make 4948 open_stackdumpfile: Dumping stack trace to make.exe.stackdump
MSYS-1.0.16 Build:2010-09-29 00:07
Exception: STATUS_ACCESS_VIOLATION at eip=10002840
eax=00000000 ebx=00000000 ecx=75A3F648 edx=00260178 esi=04000024 edi=00000001
ebp=0022D638 esp=0022D4A0 program=D:\dev\RailsInstaller\DevKit\bin\make.exe
cs=001B ds=0023 es=0023 fs=003B gs=0000 ss=0023
Stack trace:
Frame     Function  Args
0022D638  10002840  (0022E6F0, 00000000, 6089E54C, 6089E54C)
0022EA58  6085BD9C  (00000000, 10074B88, 10074980, 100747E0)
0022EA88  6085CDA6  (00000000, 00000003, 10074B88, 10074980)
0022EAA8  6080E216  (10074B88, 10074980, 00000015, 00000000)
0022EED8  6088274F  (10074B88, 10074980, 0041C410, 10060008)
0022EF08  0040ECAE  (10074980, 100747E0, 10074980, 100747E0)
0022EF78  0040E157  (100747B8, 00000190, 0022EFA8, 00404E71)
0022EFA8  0040E230  (100747B8, 10070AD8, 10074608, 00000006)
0022F028  0040E5EA  (10070AD8, 00000000, 00000000, 00000000)
0022F098  004193EA  (10070AD8, 00000004, 00000000, 00000003)
0022F0B8  004189AD  (10070AD8, 00000004, 10070838, 10070A78)
0022F0F8  00419E28  (10070AD8, 00000003, 00000001, 00000000)
0022F168  00418CE6  (100709E0, 00000002, 00000000, 00000001)
0022F188  004189AD  (100709E0, 00000002, 00000001, 10070838)
0022F1C8  00419E28  (100709E0, 00000001, 00000001, 00000000)
0022F238  00418CE6  (1006C7E8, 00000000, 00000000, 1006C7E8)
End of stack trace (more stack frames may be present)

windows 下折腾 rails 是有挺多问题的。。json 这个 gem 是个 native extensions ,需要编译,devkit 这个东西本身就不是很完善。。如果非得在 win 下折腾,建议就装个 cywin 算了。

如果是 1.8.7 的话,那谁也救不了你。 json 这个 gem 我在 win 下一样用。

*** LOCAL GEMS ***

actionmailer (3.1.3, 3.1.1)
actionpack (3.2.0.rc1, 3.1.3, 3.1.1)
activemodel (3.2.0.rc1, 3.1.3, 3.1.1)
activerecord (3.1.3, 3.1.1)
activerecord-sqlserver-adapter (3.1.4, 3.1.3)
activeresource (3.1.3, 3.1.1)
activesupport (3.2.0.rc1, 3.1.3, 3.1.1)
acts-as-taggable-on (2.1.1)
addressable (2.2.6)
albino (1.3.3)
ansi (1.4.1)
arel (2.2.1)
bcrypt-ruby (3.0.1 x86-mingw32)
builder (3.0.0)
bundler (1.0.21)
classifier (1.3.3)
coderay (1.0.4)
coffee-rails (3.2.0, 3.1.1)
coffee-script (2.2.0)
coffee-script-source (1.2.0, 1.1.3, 1.1.2)
configuration (1.3.1)
devise (1.5.1)
directory_watcher (1.4.1)
engineyard (1.4.16, 1.4.3)
engineyard-serverside-adapter (1.5.21, 1.5.10)
erubis (2.7.0)
escape (0.0.4)
execjs (1.2.13, 1.2.9)
fast-stemmer (1.0.0)
github (0.6.2)
highline (1.6.9, 1.6.2, 1.5.2)
hike (1.2.1)
hpricot (0.8.5)
i18n (0.6.0)
jekyll (0.11.2)
journey (1.0.0.rc3)
jquery-rails (1.0.19)
json (1.6.4, 1.6.2, 1.6.1)
json_pure (1.6.4, 1.5.4)
kaminari (0.12.4)
kramdown (0.13.4)
launchy (2.0.5, 0.3.7)
liquid (2.3.0)
mail (2.3.0)
maruku (0.6.0)
meta_search (1.1.1)
mime-types (1.17.2)
minitest (2.10.0, 1.6.0)
multi_json (1.0.4, 1.0.3)
mysql2 (0.3.11 x86-mingw32)
net-ssh (2.2.1, 2.1.4)
open4 (1.3.0, 1.2.0)
orm_adapter (0.0.5)
pg (0.12.0 x86-mingw32, 0.11.0 x86-mingw32)
Platform (0.4.0)
polyamorous (0.5.0)
polyglot (0.3.3)
POpen4 (0.1.4)
posix-spawn (0.3.6)
rack (1.3.5)
rack-cache (1.1)
rack-mount (0.8.3)
rack-protection (1.1.4)
rack-ssl (1.3.2)
rack-test (0.6.1)
rails (3.1.3, 3.1.1)
rails-i18n (0.2.1)
railties (3.2.0.rc1, 3.1.3, 3.1.1)
rake (0.9.2.2, 0.8.7)
rake-compiler (0.7.9)
rb-readline (0.4.2)
rdiscount (1.6.8)
rdoc (3.12, 3.11, 2.5.8)
redcarpet (2.0.1)
rest-client (1.6.7)
rubyzip2 (2.0.2, 2.0.1)
sass (3.1.12, 3.1.11)
sass-rails (3.1.5)
sinatra (1.3.1)
sprockets (2.1.2, 2.0.3)
spruz (0.2.13)
sqlite3 (1.3.5 x86-mingw32, 1.3.4 x86-mingw32)
sqlite3-ruby (1.3.3)
syntax (1.0.0)
text-format (1.0.0)
text-hyphen (1.2, 1.0.0)
thor (0.14.6)
tilt (1.3.3)
tiny_tds (0.5.0 x86-mingw32)
treetop (1.4.10)
turn (0.8.3, 0.8.2)
tzinfo (0.3.31, 0.3.30)
uglifier (1.2.0, 1.1.0)
warden (1.1.0)

在 windows 下面搞 ruby/rails 会出人命的。。

奇怪,俺 WIN 下,用 railsinstall 安装的,一切都很好啊。

windows 下要用 railsinstall 安装成功.....

不过最后我还是解决了,更换了 json 的版本

#6 楼 @jokry Hi, Jokry, 你换的 json 什么版本能 share 下吗?我也是同样的问题,目前刚开始 RoR 学习,谢谢。

需要 登录 后方可回复, 如果你还没有账号请 注册新账号