【问题标题】:Chef-solo install - gecode compile errorChef-solo 安装 - gecode 编译错误
【发布时间】:2012-08-29 07:22:00
【问题描述】:

我试图在 CentOS 6.3 x64 上安装 chef-solo,当我运行时:

sudo chef-solo -c /etc/chef/solo.rb -j ~/chef.json -r http://s3.amazonaws.com/chef-solo/bootstrap-latest.tar.gz

我得到这个输出:

g++ -I. -ffast-math -fno-strict-aliasing -O3 -fvisibility=hidden -ggdb -pipe -Wall -Wextra -fPIC -pthread -DNDEBUG   \
    -c -o gecode/int/extensional.o  gecode/int/extensional.cpp
make[1]: Leaving directory `/tmp/chef-solo/gecode-3.5.0'
STDERR: {standard input}: Assembler messages:
{standard input}:13822: Warning: end of file not at end of a line; newline inserted
{standard input}:14946: Error: unknown pseudo-op: `.'
{standard input}:14946: Error: open CFI at the end of file; missing .cfi_endproc directive
g++: Internal error: Killed (program cc1plus)
Please submit a full bug report.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
make[1]: *** [gecode/int/extensional.o] Error 1
make: *** [compilelib] Error 2
---- End output of "bash"  "/tmp/chef-script20120904-19809-1ofhwoq" ----
Ran "bash"  "/tmp/chef-script20120904-19809-1ofhwoq" returned 2

我可以毫无问题地从 RBEL6 存储库安装 gecode,但食谱会尝试从源代码安装。我在 github 上找到了 this 拉取请求,该请求尝试从 RBEL 存储库安装,但我收到一条错误消息,提示找不到存储库元数据。有人知道该怎么做吗?

【问题讨论】:

    标签: installation centos chef-infra yum


    【解决方案1】:

    因为我一直在寻找这个问题的答案,所以我的发现相当...不足为奇。

    我只是内存不足。我不得不在具有相同操作系统的另一个系统上编译我的文件(通过 /tmp/chef-solo/gecode-3.5.0 复制到盒子并运行 make)并将生成的文件夹同步回运行 make install

    一旦找到库,编译步骤将被跳过,您应该可以继续。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-11-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-03-08
    相关资源
    最近更新 更多