Ruby 无法在windows 7 x64上安装github页面

Ruby 无法在windows 7 x64上安装github页面,ruby,github-pages,rdiscount,Ruby,Github Pages,Rdiscount,我正在尝试在Github页面中使用Jekyll构建网站,在本地计算机Windows 7 x64企业版中安装Github Pages gem时遇到问题 以下是我采取的步骤: *在c:\Ruby21\(文件rubyinstaller-2.1.7.exe)上安装了32位ruby 2.1.7 *在c:\devkit\处安装了相应的devkit(文件devkit-mingw64-32-4.7.2-20130224-1151-sfx.exe) *运行“gem install json--platform=r

我正在尝试在Github页面中使用Jekyll构建网站,在本地计算机Windows 7 x64企业版中安装Github Pages gem时遇到问题

以下是我采取的步骤: *在c:\Ruby21\(文件rubyinstaller-2.1.7.exe)上安装了32位ruby 2.1.7 *在c:\devkit\处安装了相应的devkit(文件devkit-mingw64-32-4.7.2-20130224-1151-sfx.exe) *运行“gem install json--platform=ruby”来安装RubyGems库json *确认JSON gem ok:ruby-rubygems-e“需要'JSON';放置JSON.load('[42]')。检查,我得到了响应42

  • 运行“gem安装bundler”,安装正常

  • 我去了本地回购,创建了一个包含以下内容的文件:

    来源“” gem“github页面”

  • 运行“bundle安装”
上次运行失败,出现以下消息:

Installing rdiscount 2.1.7 with native extensions

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    C:/Ruby21/bin/ruby.exe extconf.rb
checking for random()... no
checking for srandom()... no
checking for rand()... yes
checking for srand()... yes
checking size of unsigned long... 4
checking size of unsigned int... failed
checking size of unsigned short... failed
no int with size 2
*** 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:/Ruby21/bin/ruby
        --with-rdiscount-dir
        --without-rdiscount-dir
        --with-rdiscount-include
        --without-rdiscount-include=${rdiscount-dir}/include
        --with-rdiscount-lib
        --without-rdiscount-lib=${rdiscount-dir}/lib

extconf failed, exit code 1

Gem files will remain installed in C:/Ruby21/lib/ruby/gems/2.1.0/gems/rdiscount-2.1.7 for inspection.
Results logged to C:/Ruby21/lib/ruby/gems/2.1.0/extensions/x86-mingw32/2.1.0/rdiscount-2.1.7/gem_make.out
An error occurred while installing rdiscount (2.1.7), and Bundler cannot
continue.
Make sure that `gem install rdiscount -v '2.1.7'` succeeds before bundling.
以下是gem_make.out文件的内容:

have_func: checking for random()... -------------------- no

"gcc -o conftest.exe -IC:/Ruby21/include/ruby-2.1.0/i386-mingw32 -IC:/Ruby21/include/ruby-2.1.0/ruby/backward -IC:/Ruby21/include/ruby-2.1.0 -I. -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64   -O3 -fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration conftest.c  -L. -LC:/Ruby21/lib -L.      -lmsvcrt-ruby210  -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi  "
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <winsock2.h>
4: #include <windows.h>
5: int main(int argc, char **argv)
6: {
7:   return 0;
8: }
/* end */

"gcc -o conftest.exe -IC:/Ruby21/include/ruby-2.1.0/i386-mingw32 -IC:/Ruby21/include/ruby-2.1.0/ruby/backward -IC:/Ruby21/include/ruby-2.1.0 -I. -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64   -O3 -fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration conftest.c  -L. -LC:/Ruby21/lib -L.      -lmsvcrt-ruby210  -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi  "
conftest.c: In function 't':
conftest.c:16:57: error: 'random' undeclared (first use in this function)
conftest.c:16:57: note: each undeclared identifier is reported only once for each function it appears in
conftest.c:16:32: warning: variable 'p' set but not used [-Wunused-but-set-variable]
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <winsock2.h>
 4: #include <windows.h>
 5: 
 6: /*top*/
 7: extern int t(void);
 8: int main(int argc, char **argv)
 9: {
10:   if (argc > 1000000) {
11:     printf("%p", &t);
12:   }
13: 
14:   return 0;
15: }
16: int t(void) { void ((*volatile p)()); p = (void ((*)()))random; return 0; }
/* end */

"gcc -o conftest.exe -IC:/Ruby21/include/ruby-2.1.0/i386-mingw32 -IC:/Ruby21/include/ruby-2.1.0/ruby/backward -IC:/Ruby21/include/ruby-2.1.0 -I. -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64   -O3 -fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration conftest.c  -L. -LC:/Ruby21/lib -L.      -lmsvcrt-ruby210  -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi  "
conftest.c: In function 't':
conftest.c:16:1: warning: implicit declaration of function 'random' [-Wimplicit-function-declaration]
C:\Users\xxxxx\AppData\Local\Temp\ccvoe3lp.o: In function `t':
C:\Ruby21\lib\ruby\gems\2.1.0\gems\rdiscount-2.1.7\ext/conftest.c:16: undefined reference to `random'
collect2.exe: error: ld returned 1 exit status
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <winsock2.h>
 4: #include <windows.h>
 5: 
 6: /*top*/
 7: extern int t(void);
 8: int main(int argc, char **argv)
 9: {
10:   if (argc > 1000000) {
11:     printf("%p", &t);
12:   }
13: 
14:   return 0;
15: }
16: int t(void) { random(); return 0; }
/* end */

--------------------

have_func: checking for srandom()... -------------------- no

"gcc -o conftest.exe -IC:/Ruby21/include/ruby-2.1.0/i386-mingw32 -IC:/Ruby21/include/ruby-2.1.0/ruby/backward -IC:/Ruby21/include/ruby-2.1.0 -I. -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64   -O3 -fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration conftest.c  -L. -LC:/Ruby21/lib -L.      -lmsvcrt-ruby210  -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi  "
conftest.c: In function 't':
conftest.c:16:57: error: 'srandom' undeclared (first use in this function)
conftest.c:16:57: note: each undeclared identifier is reported only once for each function it appears in
conftest.c:16:32: warning: variable 'p' set but not used [-Wunused-but-set-variable]
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <winsock2.h>
 4: #include <windows.h>
 5: 
 6: /*top*/
 7: extern int t(void);
 8: int main(int argc, char **argv)
 9: {
10:   if (argc > 1000000) {
11:     printf("%p", &t);
12:   }
13: 
14:   return 0;
15: }
16: int t(void) { void ((*volatile p)()); p = (void ((*)()))srandom; return 0; }
/* end */

"gcc -o conftest.exe -IC:/Ruby21/include/ruby-2.1.0/i386-mingw32 -IC:/Ruby21/include/ruby-2.1.0/ruby/backward -IC:/Ruby21/include/ruby-2.1.0 -I. -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64   -O3 -fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration conftest.c  -L. -LC:/Ruby21/lib -L.      -lmsvcrt-ruby210  -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi  "
conftest.c: In function 't':
conftest.c:16:1: warning: implicit declaration of function 'srandom' [-Wimplicit-function-declaration]
C:\Users\xxxxx\AppData\Local\Temp\ccPnlJQk.o: In function `t':
C:\Ruby21\lib\ruby\gems\2.1.0\gems\rdiscount-2.1.7\ext/conftest.c:16: undefined reference to `srandom'
collect2.exe: error: ld returned 1 exit status
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <winsock2.h>
 4: #include <windows.h>
 5: 
 6: /*top*/
 7: extern int t(void);
 8: int main(int argc, char **argv)
 9: {
10:   if (argc > 1000000) {
11:     printf("%p", &t);
12:   }
13: 
14:   return 0;
15: }
16: int t(void) { srandom(); return 0; }
/* end */

--------------------

have_func: checking for rand()... -------------------- yes

"gcc -o conftest.exe -IC:/Ruby21/include/ruby-2.1.0/i386-mingw32 -IC:/Ruby21/include/ruby-2.1.0/ruby/backward -IC:/Ruby21/include/ruby-2.1.0 -I. -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64   -O3 -fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration conftest.c  -L. -LC:/Ruby21/lib -L.      -lmsvcrt-ruby210  -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi  "
conftest.c: In function 't':
conftest.c:16:32: warning: variable 'p' set but not used [-Wunused-but-set-variable]
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <winsock2.h>
 4: #include <windows.h>
 5: 
 6: /*top*/
 7: extern int t(void);
 8: int main(int argc, char **argv)
 9: {
10:   if (argc > 1000000) {
11:     printf("%p", &t);
12:   }
13: 
14:   return 0;
15: }
16: int t(void) { void ((*volatile p)()); p = (void ((*)()))rand; return 0; }
/* end */

--------------------

have_func: checking for srand()... -------------------- yes

"gcc -o conftest.exe -IC:/Ruby21/include/ruby-2.1.0/i386-mingw32 -IC:/Ruby21/include/ruby-2.1.0/ruby/backward -IC:/Ruby21/include/ruby-2.1.0 -I. -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64   -O3 -fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration conftest.c  -L. -LC:/Ruby21/lib -L.      -lmsvcrt-ruby210  -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi  "
conftest.c: In function 't':
conftest.c:16:32: warning: variable 'p' set but not used [-Wunused-but-set-variable]
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <winsock2.h>
 4: #include <windows.h>
 5: 
 6: /*top*/
 7: extern int t(void);
 8: int main(int argc, char **argv)
 9: {
10:   if (argc > 1000000) {
11:     printf("%p", &t);
12:   }
13: 
14:   return 0;
15: }
16: int t(void) { void ((*volatile p)()); p = (void ((*)()))srand; return 0; }
/* end */

--------------------

check_sizeof: checking size of unsigned long... -------------------- 4

"gcc -IC:/Ruby21/include/ruby-2.1.0/i386-mingw32 -IC:/Ruby21/include/ruby-2.1.0/ruby/backward -IC:/Ruby21/include/ruby-2.1.0 -I. -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64   -O3 -fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration   -c conftest.c"
conftest.c:9:5: error: size of array 'conftest_const' is negative
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <winsock2.h>
4: #include <windows.h>
5: typedef unsigned long rbcv_typedef_;
6: static rbcv_typedef_ *rbcv_ptr_;
7: 
8: /*top*/
9: int conftest_const[(sizeof((*rbcv_ptr_)) < 0) ? 1 : -1];
/* end */

"gcc -o conftest.exe -IC:/Ruby21/include/ruby-2.1.0/i386-mingw32 -IC:/Ruby21/include/ruby-2.1.0/ruby/backward -IC:/Ruby21/include/ruby-2.1.0 -I. -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64   -O3 -fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration conftest.c  -L. -LC:/Ruby21/lib -L.      -lmsvcrt-ruby210  -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi  "
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <winsock2.h>
 4: #include <windows.h>
 5: typedef unsigned long rbcv_typedef_;
 6: static rbcv_typedef_ *rbcv_ptr_;
 7: 
 8: #include <stdio.h>
 9: /*top*/
10: typedef unsigned
11: #ifdef PRI_LL_PREFIX
12: #define PRI_CONFTEST_PREFIX PRI_LL_PREFIX
13: LONG_LONG
14: #else
15: #define PRI_CONFTEST_PREFIX "l"
16: long
17: #endif
18: conftest_type;
19: conftest_type conftest_const = (conftest_type)(sizeof((*rbcv_ptr_)));
20: int main() {printf("%"PRI_CONFTEST_PREFIX"u\n", conftest_const); return 0;}
/* end */

./conftest |
--------------------

check_sizeof: checking size of unsigned int... -------------------- failed

"gcc -IC:/Ruby21/include/ruby-2.1.0/i386-mingw32 -IC:/Ruby21/include/ruby-2.1.0/ruby/backward -IC:/Ruby21/include/ruby-2.1.0 -I. -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64   -O3 -fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration   -c conftest.c"
conftest.c:9:5: error: size of array 'conftest_const' is negative
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <winsock2.h>
4: #include <windows.h>
5: typedef unsigned int rbcv_typedef_;
6: static rbcv_typedef_ *rbcv_ptr_;
7: 
8: /*top*/
9: int conftest_const[(sizeof((*rbcv_ptr_)) < 0) ? 1 : -1];
/* end */

"gcc -o conftest.exe -IC:/Ruby21/include/ruby-2.1.0/i386-mingw32 -IC:/Ruby21/include/ruby-2.1.0/ruby/backward -IC:/Ruby21/include/ruby-2.1.0 -I. -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64   -O3 -fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration conftest.c  -L. -LC:/Ruby21/lib -L.      -lmsvcrt-ruby210  -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi  "
c:/devkit/mingw/bin/../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/bin/ld.exe: cannot open output file conftest.exe: Permission denied
collect2.exe: error: ld returned 1 exit status
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <winsock2.h>
 4: #include <windows.h>
 5: typedef unsigned int rbcv_typedef_;
 6: static rbcv_typedef_ *rbcv_ptr_;
 7: 
 8: #include <stdio.h>
 9: /*top*/
10: typedef unsigned
11: #ifdef PRI_LL_PREFIX
12: #define PRI_CONFTEST_PREFIX PRI_LL_PREFIX
13: LONG_LONG
14: #else
15: #define PRI_CONFTEST_PREFIX "l"
16: long
17: #endif
18: conftest_type;
19: conftest_type conftest_const = (conftest_type)(sizeof((*rbcv_ptr_)));
20: int main() {printf("%"PRI_CONFTEST_PREFIX"u\n", conftest_const); return 0;}
/* end */

--------------------

check_sizeof: checking size of unsigned short... -------------------- failed

"gcc -IC:/Ruby21/include/ruby-2.1.0/i386-mingw32 -IC:/Ruby21/include/ruby-2.1.0/ruby/backward -IC:/Ruby21/include/ruby-2.1.0 -I. -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64   -O3 -fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration   -c conftest.c"
conftest.c:9:5: error: size of array 'conftest_const' is negative
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <winsock2.h>
4: #include <windows.h>
5: typedef unsigned short rbcv_typedef_;
6: static rbcv_typedef_ *rbcv_ptr_;
7: 
8: /*top*/
9: int conftest_const[(sizeof((*rbcv_ptr_)) < 0) ? 1 : -1];
/* end */

"gcc -o conftest.exe -IC:/Ruby21/include/ruby-2.1.0/i386-mingw32 -IC:/Ruby21/include/ruby-2.1.0/ruby/backward -IC:/Ruby21/include/ruby-2.1.0 -I. -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64   -O3 -fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration conftest.c  -L. -LC:/Ruby21/lib -L.      -lmsvcrt-ruby210  -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi  "
c:/devkit/mingw/bin/../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/bin/ld.exe: cannot open output file conftest.exe: Permission denied
collect2.exe: error: ld returned 1 exit status
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <winsock2.h>
 4: #include <windows.h>
 5: typedef unsigned short rbcv_typedef_;
 6: static rbcv_typedef_ *rbcv_ptr_;
 7: 
 8: #include <stdio.h>
 9: /*top*/
10: typedef unsigned
11: #ifdef PRI_LL_PREFIX
12: #define PRI_CONFTEST_PREFIX PRI_LL_PREFIX
13: LONG_LONG
14: #else
15: #define PRI_CONFTEST_PREFIX "l"
16: long
17: #endif
18: conftest_type;
19: conftest_type conftest_const = (conftest_type)(sizeof((*rbcv_ptr_)));
20: int main() {printf("%"PRI_CONFTEST_PREFIX"u\n", conftest_const); return 0;}
/* end */

--------------------
have_func:检查random()…--------------否
"gcc-o conftest.exe-IC:/Ruby21/include/ruby-2.1.0/i386-mingw32-IC:/Ruby21/include/ruby-2.1.0/ruby/backward-IC:/Ruby21/include/ruby-2.1.0-I.-DFD_SETSIZE=2048-D_WIN32_WINNT=0x0501-D_MINGW_USE_VC2005_COMPAT-D_FILE_OFFSET_BITS=64-O3-fno省略帧指针-fno快速数学-g-Wall-Wextra-Wno未使用的括号-Wno long long long-Wno缺少字段初始值设定项-Wunused变量-Wpointer arith-Wwrite strings-Wdeclaration after statement-Wimplicit函数声明conftest.c-L-LC:/Ruby21/lib-L-lmsvcrt-ruby210-lshell32-lws2_32-liphlpapi-limagehlp-lshlwapi“
检查的程序是:
/*开始*/
1:#包括“ruby.h”
2: 
3:#包括
4:#包括
5:int main(int argc,字符**argv)
6: {
7:返回0;
8: }
/*结束*/
"gcc-o conftest.exe-IC:/Ruby21/include/ruby-2.1.0/i386-mingw32-IC:/Ruby21/include/ruby-2.1.0/ruby/backward-IC:/Ruby21/include/ruby-2.1.0-I.-DFD_SETSIZE=2048-D_WIN32_WINNT=0x0501-D_MINGW_USE_VC2005_COMPAT-D_FILE_OFFSET_BITS=64-O3-fno省略帧指针-fno快速数学-g-Wall-Wextra-Wno未使用的括号-Wno long long long-Wno缺少字段初始值设定项-Wunused变量-Wpointer arith-Wwrite strings-Wdeclaration after statement-Wimplicit函数声明conftest.c-L-LC:/Ruby21/lib-L-lmsvcrt-ruby210-lshell32-lws2_32-liphlpapi-limagehlp-lshlwapi“
conftest.c:在函数“t”中:
conftest.c:16:57:错误:“random”未声明(首次在此函数中使用)
conftest.c:16:57:注意:每个未声明的标识符对于它出现在其中的每个函数只报告一次
conftest.c:16:32:警告:变量“p”已设置但未使用[-Wunused但已设置变量]
检查的程序是:
/*开始*/
1:#包括“ruby.h”
2: 
3:#包括
4:#包括
5: 
6:/*顶部*/
7:外部内部t(无效);
8:int main(int argc,字符**argv)
9: {
10:如果(argc>1000000){
11:printf(“%p”和“t”);
12:   }
13: 
14:返回0;
15: }
16:int t(void){void((*volatile p)();p=(void((*)())random;返回0;}
/*结束*/
"gcc-o conftest.exe-IC:/Ruby21/include/ruby-2.1.0/i386-mingw32-IC:/Ruby21/include/ruby-2.1.0/ruby/backward-IC:/Ruby21/include/ruby-2.1.0-I.-DFD_SETSIZE=2048-D_WIN32_WINNT=0x0501-D_MINGW_USE_VC2005_COMPAT-D_FILE_OFFSET_BITS=64-O3-fno省略帧指针-fno快速数学-g-Wall-Wextra-Wno未使用的括号-Wno long long long-Wno缺少字段初始值设定项-Wunused变量-Wpointer arith-Wwrite strings-Wdeclaration after statement-Wimplicit函数声明conftest.c-L-LC:/Ruby21/lib-L-lmsvcrt-ruby210-lshell32-lws2_32-liphlpapi-limagehlp-lshlwapi“
conftest.c:在函数“t”中:
conftest.c:16:1:警告:函数“random”的隐式声明[-Wimplicit函数声明]
C:\Users\xxxxx\AppData\Local\Temp\ccvoe3lp.o:在函数“t”中:
C:\Ruby21\lib\ruby\gems\2.1.0\gems\rdisont-2.1.7\ext/conftest.C:16:对“随机”的未定义引用
collect2.exe:错误:ld返回了1个退出状态
检查的程序是:
/*开始*/
1:#包括“ruby.h”
2: 
3:#包括
4:#包括
5: 
6:/*顶部*/
7:外部内部t(无效);
8:int main(int argc,字符**argv)
9: {
10:如果(argc>1000000){
11:printf(“%p”和“t”);
12:   }
13: 
14:返回0;
15: }
16:int t(void){random();返回0;}
/*结束*/
--------------------
have_func:正在检查srandom()…--------------否
"gcc-o conftest.exe-IC:/Ruby21/include/ruby-2.1.0/i386-mingw32-IC:/Ruby21/include/ruby-2.1.0/ruby/backward-IC:/Ruby21/include/ruby-2.1.0-I.-DFD_SETSIZE=2048-D_WIN32_WINNT=0x0501-D_MINGW_USE_VC2005_COMPAT-D_FILE_OFFSET_BITS=64-O3-fno省略帧指针-fno快速数学-g-Wall-Wextra-Wno未使用的括号-Wno long long long-Wno缺少字段初始值设定项-Wunused变量-Wpointer arith-Wwrite strings-Wdeclaration after statement-Wimplicit函数声明conftest.c-L-LC:/Ruby21/lib-L-lmsvcrt-ruby210-lshell32-lws2_32-liphlpapi-limagehlp-lshlwapi“
conftest.c:在函数“t”中:
conftest.c:16:57:错误:“srandom”未声明(此函数首次使用)
conftest.c:16:57:注意:每个未声明的标识符对于它出现在其中的每个函数只报告一次
conftest.c:16:32:警告:变量“p”已设置但未使用[-Wunused但已设置变量]
检查的程序是:
/*开始*/
1:#包括“ruby.h”
2: 
3:#包括
4:#包括
5: 
6:/*顶部*/
7:外部内部t(无效);
8:int main(int argc,字符**argv)
9: {
10:如果(argc>1000000){
11:printf(“%p”和“t”);
12:   }
13: 
14:返回0;
15: }
16:int t(void){void((*volatile p)();p=(void((*)())随机数;返回0;}
/*结束*/
"gcc-o conftest.exe-IC:/Ruby21/include/ruby-2.1.0/i386-mingw32-IC:/Ruby21/include/ruby-2.1.0/ruby/backward-IC:/Ruby21/include/ruby-2.1.0-I.-DFD_SETSIZE=2048-D_WIN32_WINNT=0x0501-D_MINGW_USE_VC2005_COMPAT-D_FILE_OFFSET_BITS=64-O3-fno省略帧指针-fno快速数学-g-Wall-Wextra-Wno未使用的括号-Wno long long-Wno缺少字段初始值设定项-Wunused variabl