我正在尝试从Solaris 10计算机上的源代码构建ruby 2.4.5。当我运行./configure命令时,出现以下错误:
checking for off_t... yes
checking char bit... 8
checking size of int... 0
checking size of short... 0
checking size of long... 0
checking size of long long... configure: error: in `/test/ruby-2.4.5/objdir':
configure: error: cannot compute sizeof (long long)
See `config.log' for more details
在检查config.log时,出现以下错误:
configure:12038: result: 0
configure:12133: checking size of long long
configure:12138: gcc -o conftest -O3 -fno-fast-math -ggdb3 -std=gnu99 -fstack-protector conftest.c -lsocket -ldl -lcrypt -lm >&5
configure:12138: $? = 0
configure:12138: ./conftest
ld.so.1: conftest: fatal: libssp.so.0: open failed: No such file or directory
../configure: line 2064: 9111 Killed ./conftest$ac_exeext
configure:12138: $? = 137
configure: program exited with status 137
configure: failed program was:
| /* confdefs.h */
从config.log中,我知道缺少libssp.so.0,但无法在Solaris 10计算机上找到它,也找不到有关此问题的任何特定帮助。有人可以帮我解决这个问题吗?
答案 0 :(得分:0)
安装libssp0:
pkgadd -d http://get.opencsw.org/now
/opt/csw/bin/pkgutil -U
/opt/csw/bin/pkgutil -y -i libssp0
/usr/sbin/pkgchk -L CSWlibssp0 # list files
或者,安装gcc4core,它将作为依赖项自动安装:
pkgadd -d http://get.opencsw.org/now
/opt/csw/bin/pkgutil -U
/opt/csw/bin/pkgutil -y -i gcc4core
/usr/sbin/pkgchk -L CSWgcc4core # list files