厨师红宝石安装程序失败 [英] chef ruby gem installer failing

查看:198
本文介绍了厨师红宝石安装程序失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图通过厨师在CentOS虚拟机上设置cassandra,并且失败,并显示下面的错误。我尝试了清理捆绑缓存无济于事。该配方在另一台机器上工作,但一个关键的区别是,我事先在机器上运行其他食谱,所以我怀疑我错过了厨师依赖(这就是为什么我没有尝试只是直接修复包)。如果这是一个明显的问题,我也非常抱歉地抱歉。



机器配置




  • 厨师:11.4.0
  • ruby​​ 1.9.3p286(2012-10-12修订版37165)[x86_64-linux]

  • gem 1.8.24

  • Linux somehost 2.6.32-276.el6.x86_64#1 SMP Tue 5月29日17:38:19 EDT 2012 x86_64 x86_64 x86_64 GNU / Linux
  • $


    $ b

    错误消息
    chef-client输出:


    启动Chef Client,版本11.4.0 
    解决食谱运行列表:[chef-client,cassandra]
    同步食谱:
    - minitest-handler
    - chef_handler
    - yum
    - cron
    - selinux
    - sysctl
    - openssh
    - iptables
    - chef-client
    - cassandra
    - apt
    - java
    - windows
    - aws
    编译食谱...
    食谱:cassandra :: packages
    * chef_gem [cassandra-cql]安装
    ======================================= =========================================
    执行操作`安装时出错`on resource'chef_gem [cassandra-cql]'
    =================================== =============================================




      Gem :: Installer :: ExtensionBuildError 
    --------- --------------------------
    错误:无法构建gem原生扩展。

    / opt / chef / embedded / bin / ruby​​ extconf.rb
    extconf.rb:25:使用RbConfig而不是过时且不推荐使用Config。
    检查string.h中的strlcpy()... *** extconf.rb失败***
    由于某些原因无法创建Makefile,可能缺少
    必需的库和/或标题。查看mkmf.log文件以获取更多
    的详细信息。您可能需要配置选项。

    提供的配置选项:
    --with-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 = / opt / chef / embedded / bin / ruby​​
    /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:381:在`try_do'中:编译器无法生成可执行文件。 (RuntimeError)
    您必须先安装开发工具。 $ / b / b /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:461:in`try_link0'
    from /opt/chef/embedded/lib/ruby/1.9.1/ mkmf.rb:476:在`try_link'
    from /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:619:in`try_func'
    from / opt / chef / embedded / lib / ruby​​ / 1.9.1 / mkmf.rb:894:在`block in have_func'
    from /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:790:in`在/opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:284:in`block'(2个级别)中将'
    '从/ opt / chef / embedded / lib / ruby​​ / 1.9.1 / mkmf.rb:254:在`open'中
    从/opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:284:in`block in从/opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:254:'open'
    from /opt/chef/embedded/lib/ruby/1.9推迟'
    。 1 / mkmf.rb:280:在`postpone'
    from /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:789:in`checking_for'
    from / opt / chef / embedded / lib / ruby​​ / 1.9.1 / mkmf.rb:893:在`hav e_func'extconf.rb中的
    :29:'< main>'


    Gem文件将保持安装在/ opt / chef / embedded / lib / ruby​​ / gems /1.9.1/gems/thrift-0.9.1进行检查。
    结果记录到/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/thrift-0.9.1/ext/gem_make.out



    Cookbook Trace:
    ---------------
    /var/chef/cache/cookbooks/cassandra/recipes/packages.rb:30:in` block from_file'
    /var/chef/cache/cookbooks/cassandra/recipes/packages.rb:29:in`each'
    / var / chef / cache / cookbooks / cassandra / recipes / packages。 rb:29:在`from_file'
    /var/chef/cache/cookbooks/cassandra/recipes/default.rb:23:in`from_file'


    资源声明:
    ---------------------
    #在/var/chef/cache/cookbooks/cassandra/recipes/packages.rb

    30:chef_gem pkg do
    31:操作:安装
    32:版本attrs [版本]如果attrs [版本]
    33:结束
    34:结束



    编译的资源:
    ------------------
    #声明in /var/chef/cache/cookbooks/cassandra/recipes/packages.rb:30:in`block in fr om_file'

    chef_gem(cassandra-cql)做
    提供者Chef :: Provider :: Package :: Rubygems
    action [:install]
    retries 0
    retry_delay 2
    package_namecassandra-cql
    版本1.1.4
    cookbook_namecassandra
    recipe_name包装
    结束


    ========================================== ======================================
    / var / chef中的食谱编译错误/cache/cookbooks/cassandra/recipes/default.rb
    ================================== ==============================================


    Gem :: Installer :: ExtensionBuildError
    ------------------------------- ----
    chef_gem [cassandra-cql](cassandra :: packages line 30)出现错误:Gem :: Installer :: ExtensionBuildError:错误:无法构建gem本机扩展。

    / opt / chef / embedded / bin / ruby​​ extconf.rb
    extconf.rb:25:使用RbConfig而不是过时且不推荐使用Config。
    检查string.h中的strlcpy()... *** extconf.rb失败***
    由于某些原因无法创建Makefile,可能缺少
    必需的库和/或标题。查看mkmf.log文件以获取更多
    的详细信息。您可能需要配置选项。

    提供的配置选项:
    --with-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 = / opt / chef / embedded / bin / ruby​​
    /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:381:在`try_do'中:编译器无法生成可执行文件。 (RuntimeError)
    您必须先安装开发工具。 $ / b / b /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:461:in`try_link0'
    from /opt/chef/embedded/lib/ruby/1.9.1/ mkmf.rb:476:在`try_link'
    from /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:619:in`try_func'
    from / opt / chef / embedded / lib / ruby​​ / 1.9.1 / mkmf.rb:894:在`block in have_func'
    from /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:790:in`在/opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:284:in`block'(2个级别)中将'
    '从/ opt / chef / embedded / lib / ruby​​ / 1.9.1 / mkmf.rb:254:在`open'中
    从/opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:284:in`block in从/opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:254:'open'
    from /opt/chef/embedded/lib/ruby/1.9推迟'
    。 1 / mkmf.rb:280:在`postpone'
    from /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:789:in`checking_for'
    from / opt / chef / embedded / lib / ruby​​ / 1.9.1 / mkmf.rb:893:在`hav e_func'extconf.rb中的
    :29:'< main>'


    Gem文件将保持安装在/ opt / chef / embedded / lib / ruby​​ / gems /1.9.1/gems/thrift-0.9.1进行检查。
    结果记录到/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/thrift-0.9.1/ext/gem_make.out



    Cookbook Trace:
    ---------------
    /var/chef/cache/cookbooks/cassandra/recipes/packages.rb:30:in` block from_file'
    /var/chef/cache/cookbooks/cassandra/recipes/packages.rb:29:in`each'
    / var / chef / cache / cookbooks / cassandra / recipes / packages。 rb:29:在`from_file'中
    /var/chef/cache/cookbooks/cassandra/recipes/default.rb:23:in`from_file'


    相关文件内容:
    ----------------------
    /var/chef/cache/cookbooks/cassandra/recipes/packages.rb:

    23:package pkg do
    24:action:install
    25:version attrs [version] if attrs [version]
    26:end
    27:结束
    28:
    29:节点[cassandra] [chef_gems]每个do | pkg,attrs |
    30>> chef_gem pkg do
    31:操作:安装
    32:版本attrs [版本]如果attrs [版本]
    33:结束
    34:结束
    35:
    36:#一些Cassandra的分发包在
    37中启动服务:#postinstall;保持它们全部平等,并且可以在第一次运行时写入配置
    38:#后重新启动。增加了难度:他们还带有init
    39:#脚本总是退出0.



    [2013-10-11T13:13:42-04: 00]错误:运行异常处理程序
    [2013-10-11T13:13:42-04:00]致命错误:将节点信息保存到/var/chef/cache/failed-run-data.json
    [2013-10-11T13:13:42-04:00]错误:异常处理程序完成
    Chef Client失败。 0资源已更新
    [2013-10-11T13:13:42-04:00]致命:Stacktrace转储到/var/chef/cache/chef-stacktrace.out
    [2013-10-11T13: 13:42-04:00]致命错误:Gem :: Installer :: ExtensionBuildError:chef_gem [cassandra-cql](cassandra :: packages line 30)有错误:Gem :: Installer :: ExtensionBuildError:错误:无法构建宝石本地扩展。

    / opt / chef / embedded / bin / ruby​​ extconf.rb
    extconf.rb:25:使用RbConfig而不是过时且不推荐使用Config。
    检查string.h中的strlcpy()... *** extconf.rb失败***
    由于某些原因无法创建Makefile,可能缺少
    必需的库和/或标题。查看mkmf.log文件以获取更多
    的详细信息。您可能需要配置选项。

    提供的配置选项:
    --with-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 = / opt / chef / embedded / bin / ruby​​
    /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:381:在`try_do'中:编译器无法生成可执行文件。 (RuntimeError)
    您必须先安装开发工具。 $ / b / b /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:461:in`try_link0'
    from /opt/chef/embedded/lib/ruby/1.9.1/ mkmf.rb:476:在`try_link'
    from /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:619:in`try_func'
    from / opt / chef / embedded / lib / ruby​​ / 1.9.1 / mkmf.rb:894:在`block in have_func'
    from /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:790:in`在/opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:284:in`block'(2个级别)中将'
    '从/ opt / chef / embedded / lib / ruby​​ / 1.9.1 / mkmf.rb:254:在`open'中
    从/opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:284:in`block in从/opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:254:'open'
    from /opt/chef/embedded/lib/ruby/1.9推迟'
    。 1 / mkmf.rb:280:在`postpone'
    from /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:789:in`checking_for'
    from / opt / chef / embedded / lib / ruby​​ / 1.9.1 / mkmf.rb:893:在`hav e_func'
    from extconf.rb:29:in< main>< / pre>


    Gem文件将保留安装在/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/thrift-0.9.1中进行检查。
    结果记录到/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/thrift-0.9.1/ext/gem_make.out


    解决方案


    编译器无法生成可执行文件。 (RuntimeError)

    您必须先安装开发工具。


    以上错误让我相信您需要安装在您的CentOS上安装 ruby​​-dev gcc 软件包。
    在我的Ubuntu 10.04上,我安装了下面的软件包:
    ruby​​1.9.1-dev gcc-4.4



    你可以尝试在CentOS上安装类似的软件包,然后重新运行厨师。


    I am trying to setup cassandra on an CentOS VM via chef and it fails with the error below. I have tried clearing out bundle caches to no avail. The recipe works on another machine but a key difference is that I ran other recipes on that machine beforehand so I suspect I am missing a chef dependency (which is why I haven't tried just fixing the packages directly). I am also terribly new to ruby so sorry if this is an obvious question.

    Machine config

    • Chef: 11.4.0
    • ruby 1.9.3p286 (2012-10-12 revision 37165) [x86_64-linux]
    • gem 1.8.24
    • Linux somehost 2.6.32-276.el6.x86_64 #1 SMP Tue May 29 17:38:19 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux

    Error messages chef-client output:

    Starting Chef Client, version 11.4.0
        resolving cookbooks for run list: ["chef-client", "cassandra"]
        Synchronizing Cookbooks:
          - minitest-handler
          - chef_handler
          - yum
          - cron
          - selinux
          - sysctl
          - openssh
          - iptables
          - chef-client
          - cassandra
          - apt
          - java
          - windows
          - aws
        Compiling Cookbooks...
        Recipe: cassandra::packages
          * chef_gem[cassandra-cql] action install
        ================================================================================
        Error executing action `install` on resource 'chef_gem[cassandra-cql]'
        ================================================================================

     Gem::Installer::ExtensionBuildError
        -----------------------------------
        ERROR: Failed to build gem native extension.
    
        /opt/chef/embedded/bin/ruby extconf.rb
        extconf.rb:25: Use RbConfig instead of obsolete and deprecated Config.
        checking for strlcpy() in string.h... *** 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
            --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=/opt/chef/embedded/bin/ruby
        /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:381:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
        You have to install development tools first.
            from /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:461:in `try_link0'
            from /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:476:in `try_link'
            from /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:619:in `try_func'
            from /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:894:in `block in have_func'
            from /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:790:in `block in checking_for'
            from /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:284:in `block (2 levels) in postpone'
            from /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:254:in `open'
            from /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:284:in `block in postpone'
            from /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:254:in `open'
            from /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:280:in `postpone'
            from /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:789:in `checking_for'
            from /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:893:in `have_func'
            from extconf.rb:29:in `<main>'
    
    
        Gem files will remain installed in /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/thrift-0.9.1 for inspection.
        Results logged to /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/thrift-0.9.1/ext/gem_make.out
    
    
    
        Cookbook Trace:
        ---------------
        /var/chef/cache/cookbooks/cassandra/recipes/packages.rb:30:in `block in from_file'
        /var/chef/cache/cookbooks/cassandra/recipes/packages.rb:29:in `each'
        /var/chef/cache/cookbooks/cassandra/recipes/packages.rb:29:in `from_file'
        /var/chef/cache/cookbooks/cassandra/recipes/default.rb:23:in `from_file'
    
    
        Resource Declaration:
        ---------------------
        # In /var/chef/cache/cookbooks/cassandra/recipes/packages.rb
    
         30:   chef_gem pkg do
         31:     action :install
         32:     version attrs["version"] if attrs["version"]
         33:   end
         34: end
    
    
    
        Compiled Resource:
        ------------------
        # Declared in /var/chef/cache/cookbooks/cassandra/recipes/packages.rb:30:in `block in from_file'
    
        chef_gem("cassandra-cql") do
          provider Chef::Provider::Package::Rubygems
          action [:install]
          retries 0
          retry_delay 2
          package_name "cassandra-cql"
          version "1.1.4"
          cookbook_name "cassandra"
          recipe_name "packages"
        end
    
    
        ================================================================================
        Recipe Compile Error in /var/chef/cache/cookbooks/cassandra/recipes/default.rb
        ================================================================================
    
    
        Gem::Installer::ExtensionBuildError
        -----------------------------------
        chef_gem[cassandra-cql] (cassandra::packages line 30) had an error: Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
    
                /opt/chef/embedded/bin/ruby extconf.rb
        extconf.rb:25: Use RbConfig instead of obsolete and deprecated Config.
        checking for strlcpy() in string.h... *** 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
            --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=/opt/chef/embedded/bin/ruby
        /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:381:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
        You have to install development tools first.
            from /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:461:in `try_link0'
            from /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:476:in `try_link'
            from /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:619:in `try_func'
            from /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:894:in `block in have_func'
            from /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:790:in `block in checking_for'
            from /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:284:in `block (2 levels) in postpone'
            from /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:254:in `open'
            from /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:284:in `block in postpone'
            from /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:254:in `open'
            from /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:280:in `postpone'
            from /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:789:in `checking_for'
            from /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:893:in `have_func'
            from extconf.rb:29:in `<main>'
    
    
        Gem files will remain installed in /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/thrift-0.9.1 for inspection.
        Results logged to /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/thrift-0.9.1/ext/gem_make.out
    
    
    
        Cookbook Trace:
        ---------------
          /var/chef/cache/cookbooks/cassandra/recipes/packages.rb:30:in `block in from_file'
          /var/chef/cache/cookbooks/cassandra/recipes/packages.rb:29:in `each'
          /var/chef/cache/cookbooks/cassandra/recipes/packages.rb:29:in `from_file'
          /var/chef/cache/cookbooks/cassandra/recipes/default.rb:23:in `from_file'
    
    
        Relevant File Content:
        ----------------------
        /var/chef/cache/cookbooks/cassandra/recipes/packages.rb:
    
         23:    package pkg do
         24:      action :install
         25:      version attrs["version"] if attrs["version"]
         26:    end
         27:  end
         28:  
         29:  node["cassandra"]["chef_gems"].each do |pkg, attrs|
         30>>   chef_gem pkg do
         31:      action :install
         32:      version attrs["version"] if attrs["version"]
         33:    end
         34:  end
         35:  
         36:  # Some distributed packages of Cassandra start the service in their
         37:  # postinstall; keep them all equal and a restart can be done after the configs
         38:  # are written on the first run. Added difficulty: they also come with init
         39:  # scripts that always exit 0.
    
    
    
        [2013-10-11T13:13:42-04:00] ERROR: Running exception handlers
        [2013-10-11T13:13:42-04:00] FATAL: Saving node information to /var/chef/cache/failed-run-data.json
        [2013-10-11T13:13:42-04:00] ERROR: Exception handlers complete
        Chef Client failed. 0 resources updated
        [2013-10-11T13:13:42-04:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
        [2013-10-11T13:13:42-04:00] FATAL: Gem::Installer::ExtensionBuildError: chef_gem[cassandra-cql] (cassandra::packages line 30) had an error: Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
    
                /opt/chef/embedded/bin/ruby extconf.rb
        extconf.rb:25: Use RbConfig instead of obsolete and deprecated Config.
        checking for strlcpy() in string.h... *** 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
            --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=/opt/chef/embedded/bin/ruby
        /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:381:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
        You have to install development tools first.
            from /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:461:in `try_link0'
            from /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:476:in `try_link'
            from /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:619:in `try_func'
            from /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:894:in `block in have_func'
            from /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:790:in `block in checking_for'
            from /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:284:in `block (2 levels) in postpone'
            from /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:254:in `open'
            from /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:284:in `block in postpone'
            from /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:254:in `open'
            from /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:280:in `postpone'
            from /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:789:in `checking_for'
            from /opt/chef/embedded/lib/ruby/1.9.1/mkmf.rb:893:in `have_func'
            from extconf.rb:29:in `<main>'</pre>
    
    
        Gem files will remain installed in /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/thrift-0.9.1 for inspection.
        Results logged to /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/thrift-0.9.1/ext/gem_make.out
    

    解决方案

    The compiler failed to generate an executable file. (RuntimeError)
    You have to install development tools first.

    Above error makes me believe you need to install ruby-dev and gcc packages on your CentOS. On my ubuntu 10.04, I have below packages installed: ruby1.9.1-dev and gcc-4.4.

    Could you try installing similar packages on CentOS and then re-run chef.

    这篇关于厨师红宝石安装程序失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆