无法安装 Curb - 本机扩展存在问题。

发布于 2024-11-13 07:27:46 字数 2292 浏览 2 评论 0原文

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

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

  • debian
  • bundler
  • rvm
  • ruby​​-1.9.2-p180
  • 半岛

我被告知我必须安装以下软件包,我已经这样做了: <代码>

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

当我继续执行以下操作时:

gem install junction <代码>

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 --没有选择目录 --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --没有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': 编译器无法生成可执行文件。 (运行时错误) 您必须先安装开发工具。 来自 /usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/mkmf.rb:446:intry_compile' 来自 extconf.rb:51:in block in have_constant' 来自 /usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/mkmf.rb:693:inblock inchecking_for' 来自/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/mkmf.rb:280:in 块(2级)推迟' 来自 /usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/mkmf.rb:254:inopen' 来自 /usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/mkmf.rb:280:in 块推迟' 来自 /usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/mkmf.rb:254:inopen' 来自 /usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/mkmf.rb:276:in 推迟' 来自 /usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/mkmf.rb:692:inchecking_for' 来自 extconf.rb:43:in have_constant' 来自 extconf.rb:60:in'

我没有任何办法解决这个问题,有什么想法吗?

谢谢芽儿。

I'm trying to install the curb gem on my Debian machine but I'm having a hard time building the gem with native extensions. I'm using RVM.

Just a list of things I'm using:

  • debian
  • bundler
  • rvm
  • ruby-1.9.2-p180
  • curb

I'm told I have to install the following packages and I've done so:

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

When I go ahead and do as such:

gem install curb

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

checking for curl-config... yes
checking for curlinfo_redirect_time... * 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
--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_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
block in checking_for'
from /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 /usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/mkmf.rb:280:in 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:in 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
'

I don't any way around this, any ideas?

Thanks buds.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

治碍 2024-11-20 07:27:46

在 Debian Squeeze 上,我已经成功安装了之前安装过的 curblibcurl4-openssl-dev

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

On a Debian Squeeze, I've managed to install curb with libcurl4-openssl-dev installed before.

It may also work with libcurl4-gnutls-dev, but I've no tested.

可是我不能没有你 2024-11-20 07:27:46

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

yum 安装curl-devel

You probably need to install curl-devel package.

yum install curl-devel

梦幻之岛 2024-11-20 07:27:46

openssl 曾经为我工作,但现在 libcurl4-gnutls-dev 只为我工作......

openssl used to work for me, but now libcurl4-gnutls-dev is all that works for me...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文