4,436
社区成员
发帖
与我相关
我的任务
分享
[root@localhost ruby-2.1.1]# ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in `/usr/local/rvm/src/ruby-2.1.1':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.这里提示用本机
See `config.log' for more details
[root@localhost ruby-2.1.1]# ./configure --host =x86_64-unknown-linux-gnu
checking for clockid_t... no
checking for convertible type of clockid_t... INT
checking for prototypes... yes
checking token paste string... ansi
checking stringization... #expr
checking string literal concatenation... yes
checking for variable length prototypes and stdarg.h... yes
checking for variable length macro... yes
checking for noreturn function attribute... __attribute__ ((noreturn)) x
checking for deprecated function attribute... __attribute__ ((deprecated)) x
checking for noinline function attribute... __attribute__ ((noinline)) x
checking for stdcall function attribute... x
checking for cdecl function attribute... x
checking for fastcall function attribute... x
checking for function alias... alias
checking for __atomic builtins... no
checking for __sync builtins... yes
checking for __builtin_unreachable... no
checking for exported function attribute... __attribute__ ((visibility("default")))
checking for function name string predefined identifier... no
checking whether sys_nerr is declared... no
checking whether getenv is declared... no
checking for size_t... no
configure: error: size_t is signed 报这个错误