本机扩展存在问题。

我试图在我的Debian机器上安装遏制宝石,但我很难用本机扩展来构建宝石。 我正在使用RVM。

只是我正在使用的东西的列表:

  • Debian的
  • 捆绑
  • RVM
  • 红宝石1.9.2-P180
  • 抑制
  • 我被告知我必须安装下列软件包,我已经这样做了:

    sudo apt-get install libcurl3 libcurl3-gnutls libcurl4-openssl-dev
    

    当我继续这样做时:

    宝石安装路边

    Building native extensions.  This could take a while...
    ERROR:  Error installing curb:
        ERROR: Failed to build gem native extension.

        /usr/local/rvm/rubies/ruby-1.9.2-p180/bin/ruby extconf.rb
    

    检查curl-config ...是检查curlinfo_redirect_time ... * extconf.rb失败*由于某种原因无法创建Makefile,可能缺少必要的库和/或头文件。 检查mkmf.log文件以获取更多详细信息。 您可能需要配置选项。

    提供的配置选项:--with-opt-dir --without-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 = / usr / local / rvm / rubies / ruby​​-1.9.2-p180 / bin / ruby​​ --with-curl-dir --with-curl-include --without-curl-include = $ {curl-dir} / include --with-curl-lib --without-curl-lib = $ {curl-dir} / lib /usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby /1.9.1/mkmf.rb:368:in try_do': The complier failed to generate an executable file. (RuntimeError) You have to install development tools first. from /usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/mkmf.rb:446:in try_do': The complier failed to generate an executable file. (RuntimeError) You have to install development tools first. from /usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/mkmf.rb:446:in try_do': The complier failed to generate an executable file. (RuntimeError) You have to install development tools first. from /usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/mkmf.rb:446:in block in have_constant' from /usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/mkmf.rb:693:in try_do': The complier failed to generate an executable file. (RuntimeError) You have to install development tools first. from /usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/mkmf.rb:446:in try_compile'from extconf.rb:51:in block in have_constant' from /usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/mkmf.rb:693:in in checking_for'from /usr/local/rvm/rubies/ruby-1.9.2- block (2 levels) in postpone' from /usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/mkmf.rb:254:in p180 / lib / ruby​​ / 1.9.1 / mkmf.rb:280:在block (2 levels) in postpone' from /usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/mkmf.rb:254:in在/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/mkmf.rb:280:in中的block (2 levels) in postpone' from /usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/mkmf.rb:254:in open from block in postpone' from /usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/mkmf.rb:254:in open from /usr/local/rvm/rubies/ruby-1.9.2-p180/ lib / ruby​​ / 1.9.1 / mkmf.rb:276: postpone' from /usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/mkmf.rb:692:in checking_for'from extconf.rb:43:in have_constant' from extconf.rb:60:in '

    我不解决这个问题,有什么想法?

    感谢芽。


    在Debian Squeeze上,我设法安装了libcurl4-openssl-dev之前安装的curb

    它也可能与libcurl4-gnutls-dev ,但我没有测试过。


    您可能需要安装curl-devel软件包。

    yum安装curl-devel


    openssl用于为我工作,但现在libcurl4-gnutls-dev是所有适合我的...

    链接地址: http://www.djcxy.com/p/41911.html

    上一篇: Having problems with native extensions.

    下一篇: 'rails new depot' gets me a bunch of errors