NoPoint 安装 gem exerb-mingw 出错了

sevk · 2014年07月16日 · 最后由 sevk 回复于 2014年07月20日 · 3370 次阅读

@windwiny

G:\dev-tools\exerb>gem build exerb.gemspec
  Successfully built RubyGem
  Name: exerb
  Version: 6.0.1
  File: exerb-6.0.1.gem

G:\dev-tools\exerb>gem install exerb-6.0.1.gem
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing exerb-6.0.1.gem:
        ERROR: Failed to build gem native extension.

    D:/Ruby200/bin/ruby.exe extconf.rb
mkdir -p tmp
windres -DCUI src/exerb/resource.rc tmp/resource_cui.o
mkdir -p tmp
mkdir -p data/exerb
gcc  -Wall -std=gnu99 -O3 -g -Wextra -Wno-unused-parameter -Wno-parentheses -Wno
-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-s
trings  -DRUBY_EXPORT -DRUBY19 -DRUBY19_COMPILED_CODE -DFD_SETSIZE=2048 -D_WIN32
_WINNT=0x0501 -D_FILE_OFFSET_BITS=64  -ID:/Ruby200/include/ruby-2.0.0/i386-mingw
32 -ID:/Ruby200/include/ruby-2.0.0 -LD:/Ruby200/lib -Wl,--stack=0x02000000,--wra
p=rb_require_safe,--wrap=rb_require     -s -o data/exerb/ruby200c.exc src/exerb/
cui.c tmp/resource_cui.o src/exerb/exerb.c src/exerb/module.c src/exerb/utility.
c src/exerb/patch.c tmp/exerb53.def -lmsvcrt-ruby200-static -lshell32 -lws2_32 -
limagehlp -lshlwapi
src/exerb/exerb.c:49:1: warning: missing braces around initializer
src/exerb/exerb.c:49:1: warning: (near initialization for 'g_loaded_library_tabl
e[0]')
src/exerb/exerb.c:50:1: warning: missing braces around initializer
src/exerb/exerb.c:50:1: warning: (near initialization for 'g_pre_loaded_library_
table[0]')
D:/Ruby200/lib/libmsvcrt-ruby200-static.a(vm.o): In function `rb_funcall':
C:\Users\Luis\Code\oneclick\rubyinstaller\sandbox\ruby20_build/../ruby_2_0/vm_ev
al.c:783: undefined reference to `__chkstk_ms'
D:/Ruby200/lib/libmsvcrt-ruby200-static.a(vm.o): In function `vm_call_opt_call':

C:\Users\Luis\Code\oneclick\rubyinstaller\sandbox\ruby20_build/../ruby_2_0/vm_in
snhelper.c:1685: undefined reference to `__chkstk_ms'
D:/Ruby200/lib/libmsvcrt-ruby200-static.a(vm.o): In function `vm_call_bmethod':
C:\Users\Luis\Code\oneclick\rubyinstaller\sandbox\ruby20_build/../ruby_2_0/vm_in
snhelper.c:1623: undefined reference to `__chkstk_ms'
D:/Ruby200/lib/libmsvcrt-ruby200-static.a(vm.o): In function `method_missing':
C:\Users\Luis\Code\oneclick\rubyinstaller\sandbox\ruby20_build/../ruby_2_0/vm_ev
al.c:708: undefined reference to `__chkstk_ms'
D:/Ruby200/lib/libmsvcrt-ruby200-static.a(vm.o): In function `rb_apply':
C:\Users\Luis\Code\oneclick\rubyinstaller\sandbox\ruby20_build/../ruby_2_0/vm_ev
al.c:758: undefined reference to `__chkstk_ms'
D:/Ruby200/lib/libmsvcrt-ruby200-static.a(vm.o):C:\Users\Luis\Code\oneclick\ruby
installer\sandbox\ruby20_build/../ruby_2_0/vm_eval.c:758: more undefined referen
ces to `__chkstk_ms' follow
D:/Ruby200/lib/libmsvcrt-ruby200-static.a(thread.o): In function `time':
c:/users/luis/code/oneclick/rubyinstaller/sandbox/devkit/mingw/bin/../lib/gcc/i6
86-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/time.h:242: undefined
reference to `_time32'
c:/users/luis/code/oneclick/rubyinstaller/sandbox/devkit/mingw/bin/../lib/gcc/i6
86-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/time.h:242: undefined
reference to `_time32'
D:/Ruby200/lib/libmsvcrt-ruby200-static.a(win32.o): In function `open_dir_handle
':
C:\Users\Luis\Code\oneclick\rubyinstaller\sandbox\ruby20_build/../ruby_2_0/win32
/win32.c:1759: undefined reference to `__chkstk_ms'
D:/Ruby200/lib/libmsvcrt-ruby200-static.a(win32.o): In function `wstati64':
C:\Users\Luis\Code\oneclick\rubyinstaller\sandbox\ruby20_build/../ruby_2_0/win32
/win32.c:4673: undefined reference to `__chkstk_ms'
D:/Ruby200/lib/libmsvcrt-ruby200-static.a(win32.o): In function `rb_w32_select_w
ith_thread':
C:\Users\Luis\Code\oneclick\rubyinstaller\sandbox\ruby20_build/../ruby_2_0/win32
/win32.c:2745: undefined reference to `__chkstk_ms'
D:/Ruby200/lib/libmsvcrt-ruby200-static.a(win32.o): In function `recvmsg':
C:\Users\Luis\Code\oneclick\rubyinstaller\sandbox\ruby20_build/../ruby_2_0/win32
/win32.c:3302: undefined reference to `__chkstk_ms'
D:/Ruby200/lib/libmsvcrt-ruby200-static.a(win32.o): In function `sendmsg':
C:\Users\Luis\Code\oneclick\rubyinstaller\sandbox\ruby20_build/../ruby_2_0/win32
/win32.c:3360: undefined reference to `__chkstk_ms'
D:/Ruby200/lib/libmsvcrt-ruby200-static.a(win32.o):C:\Users\Luis\Code\oneclick\r
ubyinstaller\sandbox\ruby20_build/../ruby_2_0/win32/win32.c:1330: more undefined
 references to `__chkstk_ms' follow
D:/Ruby200/lib/libmsvcrt-ruby200-static.a(file.o): In function `rb_file_truncate
':
C:\Users\Luis\Code\oneclick\rubyinstaller\sandbox\ruby20_build/../ruby_2_0/file.
c:4158: undefined reference to `ftruncate64'
D:/Ruby200/lib/libmsvcrt-ruby200-static.a(file.o): In function `rb_file_s_trunca
te':
C:\Users\Luis\Code\oneclick\rubyinstaller\sandbox\ruby20_build/../ruby_2_0/file.
c:4106: undefined reference to `truncate64'
D:/Ruby200/lib/libmsvcrt-ruby200-static.a(file.o): In function `w32_io_info':
C:\Users\Luis\Code\oneclick\rubyinstaller\sandbox\ruby20_build/../ruby_2_0/file.
c:885: undefined reference to `__chkstk_ms'
D:/Ruby200/lib/libmsvcrt-ruby200-static.a(regcomp.o): In function `disable_nonam
e_group_capture':
C:\Users\Luis\Code\oneclick\rubyinstaller\sandbox\ruby20_build/../ruby_2_0/regco
mp.c:2017: undefined reference to `__chkstk_ms'
D:/Ruby200/lib/libmsvcrt-ruby200-static.a(dln.o): In function `dln_load':
C:\Users\Luis\Code\oneclick\rubyinstaller\sandbox\ruby20_build/../ruby_2_0/dln.c
:1266: undefined reference to `__chkstk_ms'
D:/Ruby200/lib/libmsvcrt-ruby200-static.a(complex.o): In function `parse_comp':
C:\Users\Luis\Code\oneclick\rubyinstaller\sandbox\ruby20_build/../ruby_2_0/compl
ex.c:1785: undefined reference to `__chkstk_ms'
D:/Ruby200/lib/libmsvcrt-ruby200-static.a(rational.o): In function `read_digits'
:
C:\Users\Luis\Code\oneclick\rubyinstaller\sandbox\ruby20_build/../ruby_2_0/ratio
nal.c:2079: undefined reference to `__chkstk_ms'
D:/Ruby200/lib/libmsvcrt-ruby200-static.a(rational.o):C:\Users\Luis\Code\oneclic
k\rubyinstaller\sandbox\ruby20_build/../ruby_2_0/rational.c:2079: more undefined
 references to `__chkstk_ms' follow
D:/Ruby200/lib/libmsvcrt-ruby200-static.a(time.o): In function `mktime':
c:/users/luis/code/oneclick/rubyinstaller/sandbox/devkit/mingw/bin/../lib/gcc/i6
86-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/time.h:239: undefined
reference to `_mktime32'
D:/Ruby200/lib/libmsvcrt-ruby200-static.a(time.o): In function `time':
c:/users/luis/code/oneclick/rubyinstaller/sandbox/devkit/mingw/bin/../lib/gcc/i6
86-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/time.h:242: undefined
reference to `_time32'
D:/Ruby200/lib/libmsvcrt-ruby200-static.a(time.o): In function `gmtime':
c:/users/luis/code/oneclick/rubyinstaller/sandbox/devkit/mingw/bin/../lib/gcc/i6
86-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/time.h:240: undefined
reference to `_gmtime32'
D:/Ruby200/lib/libmsvcrt-ruby200-static.a(time.o): In function `time':
c:/users/luis/code/oneclick/rubyinstaller/sandbox/devkit/mingw/bin/../lib/gcc/i6
86-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/time.h:242: undefined
reference to `_time32'
D:/Ruby200/lib/libmsvcrt-ruby200-static.a(process.o): In function `time':
c:/users/luis/code/oneclick/rubyinstaller/sandbox/devkit/mingw/bin/../lib/gcc/i6
86-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/time.h:242: undefined
reference to `_time32'
c:/users/luis/code/oneclick/rubyinstaller/sandbox/devkit/mingw/bin/../lib/gcc/i6
86-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/time.h:242: undefined
reference to `_time32'
D:/Ruby200/lib/libmsvcrt-ruby200-static.a(process.o): In function `rb_proc_exec_
n':
C:\Users\Luis\Code\oneclick\rubyinstaller\sandbox\ruby20_build/../ruby_2_0/proce
ss.c:1245: undefined reference to `__chkstk_ms'
D:/Ruby200/lib/libmsvcrt-ruby200-static.a(cont.o): In function `cont_restore_0':

C:\Users\Luis\Code\oneclick\rubyinstaller\sandbox\ruby20_build/../ruby_2_0/cont.
c:792: undefined reference to `__chkstk_ms'
D:/Ruby200/lib/libmsvcrt-ruby200-static.a(pack.o): In function `encodes':
C:\Users\Luis\Code\oneclick\rubyinstaller\sandbox\ruby20_build/../ruby_2_0/pack.
c:1065: undefined reference to `__chkstk_ms'
collect2: ld returned 1 exit status
rake aborted!
Command failed with status (1): [gcc  -Wall -std=gnu99 -O3 -g -Wextra -Wno-...]
extconf.rb:2:in `load'
extconf.rb:2:in `<main>'
Tasks: TOP => generate => data/exerb/ruby200c.exc
(See full trace by running task with --trace)
generating tmp/exerb53.def
generating header src/exerb/config.h


Gem files will remain installed in D:/Ruby200/lib/ruby/gems/2.0.0/gems/exerb-6.0
.1 for inspection.
Results logged to D:/Ruby200/lib/ruby/gems/2.0.0/gems/exerb-6.0.1/./gem_make.out

此贴已暂时被屏蔽!

以下几种情况的帖子可能会被屏蔽:

  1. 标题/正文描述不清不楚;
  2. 无意义的发帖;
  3. 存在广告嫌疑;
  4. 招聘信息描述不清楚,未按照招聘节点的要求发帖,或职位信息不符合社区用户群需求;
  5. 新注册的帐号发布产品推广贴是不允许的哦,付出和回报是相等的,当然如果你的产品确实非常有意思,或是和 Ruby 有关的东西,是不会进入这个栏目的。
  6. 太过弱的提问会被直接转移到此节点,请在提问前多尝试,多搜索;
  7. 理论上,不允许发布 QQ 群、微信群之类讨论群。

如果你发现你的帖子被屏蔽,请自我检查反省,并修改帖子内容。


招聘贴被屏蔽原因

警告: 以后招聘贴不符合要求,直接屏蔽,管理员不再回复,如认真阅读,继续新发同样格式的贴,将会被禁用账号!

  • 排版请按 Ruby China 的 Markdown 格式要求,具体请认真阅读: 排版指导,并参考 这篇招聘 的排版;
  • 招聘内容过少,缺少公司介绍,产品介绍,职位介绍,或待遇,工作地,联系方式等必要信息;
  • 重复发帖(一家公司每月限制只能发一次招聘);
  • 专业不对口(个别不对口,但有特点的,我们会放过);

如果你有时间,请阅读 招聘栏目详细说明


学会如何合理提问,请阅读:https://ruby-china.org/topics/24325

当你修改好以后,可以回帖 @huacnlee@Rei@lgn21st 任何一人,我们将会审核,通过以后才可恢复到其他节点。

注!多次发现广告嫌疑的帐号,将会被禁用帐号。

共收到 6 条回复

exerb这东西只支持到1.8.7,不知道这个是不一样的问题

#1楼 @dddd1919 是的,1.8.7 已经淘汰了。所以搞1.9或2.0

高版本不再支持,如果想用脚本语言写windows桌面工具就用python吧,编译很方便

#3楼 @dddd1919 python的缩进不爽, 注定会被go取代的。

好像支持1.9.3 的 : https://github.com/dmajkic/exerb-mingw/commit/2442c527fde18fa62f1411ae0d284ce3c58639ed

必须要编译成exe?ruby脚本在windows下给别人用都是配好ruby环境写个bat去运行的

#5楼 @dddd1919
@windwiny

搞定了,多谢。

copy  \Ruby193\lib\ruby\gems\1.9.1\gems\exerb-6.0.1\data\exerb\*  ,   \Ruby193\share\exerb\ 

就是少了这几个文件,可能路径不对,拷贝过去就找到了。

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