【问题标题】:Error on installing ruby 2.4.5 on Solaris 10在 Solaris 10 上安装 ruby​​ 2.4.5 时出错
【发布时间】:2018-12-16 11:22:23
【问题描述】:

我正在尝试在 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 机器上找到它,也找不到有关此问题的任何具体帮助。有人可以帮我解决这个问题吗?

【问题讨论】:

    标签: ruby installation solaris-10


    【解决方案1】:

    安装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
    

    【讨论】:

    • 不幸的是我的机器在防火墙后面,我无法以这种方式安装。还有其他方式下载安装 libssp0 吗?
    • 是的,在运行 Solaris 的辅助计算机上可以选择 download packages 并将它们导出到另一台服务器。你也可以setup an internal mirror。如果您知道正确的版本,也可以直接grab the pkg.gz
    猜你喜欢
    • 1970-01-01
    • 2021-06-22
    • 2019-05-12
    • 2018-03-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-06-19
    • 2017-02-20
    相关资源
    最近更新 更多