微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Ruby内联失败的轨道服务器启动在Windows中

该应用程序需要依赖于Ruby Inline的图像科学。 经过艰难的时间安装图像科学和ruby联机,gem成功安装。 但是,当我试图启动服务器失败,说gcc被传递错误的参数。 输出已附加。 有些指针告诉我编辑rubyconfiguration文件。 但他们与使用VC ++而不是gcc有关。 有人遇到类似的问题? 我使用的Rails 3,ruby1.9.2,图像科学1.2.1,ruby内联3.9.0

gcc: $(if: No such file or directory gcc: $(filter-out: No such file or directory gcc: $(DEFFILE): No such file or directory gcc: unrecognized option `-shared' In file included from C:Ruby192includeruby-1.9.1ruby.h:32,from C:/Users/Webyana Tech/.ruby_inline/Inline_ImageScience_cdab.c:1: C:Ruby192includeruby-1.9.1ruby/ruby.h:64: stdint.h: No such file or directory C:Ruby192includeruby-1.9.1ruby/ruby.h:67: inttypes.h: No such file or directory In file included from C:Ruby192includeruby-1.9.1ruby/intern.h:29,from C:Ruby192includeruby-1.9.1ruby/ruby.h:1327,from C:Ruby192includeruby-1.9.1ruby.h:32,from C:/Users/Webyana Tech/.ruby_inline/Inline_ImageScience_cdab.c:1: C:Ruby192includeruby-1.9.1ruby/st.h:30: stdint.h: No such file or directory C:Ruby192includeruby-1.9.1ruby/st.h:33: inttypes.h: No such file or directory C:/Users/Webyana Tech/.ruby_inline/Inline_ImageScience_cdab.c:2: FreeImage.h: No such file or directory C:/Ruby192/lib/ruby/gems/1.9.1/gems/RubyInline-3.8.6/lib/inline.rb:590:in `build': error executing "gcc -shared $(if $(filter-out -g -g0,-g),-s) -W l,--enable-auto-image-base,--enable-auto-import $(DEFFILE) -O3 -g -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wn o-missing-field-initializers -Wno-long-long -IC:/Ruby192/include/ruby-1.9.1 -IC:/Ruby192/include/ruby-1.9.1/i386-mingw32 -IC:/Ruby192/include -LC:/ Ruby192/lib -o "C:/Users/Webyana Tech/.ruby_inline/Inline_ImageScience_cdab.so" "C:/Users/Webyana Tech/.ruby_inline/Inline_ImageScience_cdab.c" -l freeimage -lfreeimage -lstdc++ -Wl,--enable-auto-import -LC:/Ruby192/lib -lmsvcrt-ruby18": pid 5508 exit 1 (CompilationError) Renamed C:/Users/Webyana Tech/.ruby_inline/Inline_ImageScience_cdab.c to C:/Users/Webyana Tech/.ruby_inline/Inline_ImageScience_cdab.c.bad from C:/Ruby192/lib/ruby/gems/1.9.1/gems/RubyInline-3.8.6/lib/inline.rb:828:in `inline' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/image_science-1.2.1/lib/image_science.rb:90:in `<class:ImageScience>' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/image_science-1.2.1/lib/image_science.rb:13:in `<top (required)>' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/runtime.rb:68:in `require' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/runtime.rb:68:in `block (2 levels) in require' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/runtime.rb:66:in `each' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/runtime.rb:66:in `block in require' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/runtime.rb:55:in `each' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/runtime.rb:55:in `require' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler.rb:120:in `require' from C:/Users/Webyana Tech/Desktop/Rails3/wy_editor/config/application.rb:11:in `<top (required)>' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.0.0/lib/rails/commands.rb:28:in `require' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.0.0/lib/rails/commands.rb:28:in `block in <top (required)>' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.0.0/lib/rails/commands.rb:27:in `tap' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.0.0/lib/rails/commands.rb:27:in `<top (required)>' from script/rails:6:in `require' from script/rails:6:in `<main>'

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐