无法安装 Curb - 本机扩展存在问题。
我正在尝试在我的 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:in
try_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:in
block 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:in
open'
来自 /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:in
open'
来自 /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:in
checking_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:intry_do': The complier failed to generate an executable file. (RuntimeError)
try_compile'
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
from extconf.rb:51:inblock in have_constant'
block in checking_for'
from /usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/mkmf.rb:693:in
from /usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/mkmf.rb:280:inblock (2 levels) in postpone'
open'
from /usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/mkmf.rb:254:in
from /usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/mkmf.rb:280:inblock in postpone'
open'
from /usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/mkmf.rb:254:in
from /usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/mkmf.rb:276:inpostpone'
checking_for'
from /usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/mkmf.rb:692:in
from extconf.rb:43:inhave_constant'
'
from extconf.rb:60:in
I don't any way around this, any ideas?
Thanks buds.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
在 Debian Squeeze 上,我已经成功安装了之前安装过的
curb
和libcurl4-openssl-dev
。它也可能与 libcurl4-gnutls-dev 一起使用,但我没有测试过。
On a Debian Squeeze, I've managed to install
curb
withlibcurl4-openssl-dev
installed before.It may also work with
libcurl4-gnutls-dev
, but I've no tested.您可能需要安装curl-devel 包。
yum 安装curl-devel
You probably need to install curl-devel package.
yum install curl-devel
openssl 曾经为我工作,但现在 libcurl4-gnutls-dev 只为我工作......
openssl used to work for me, but now libcurl4-gnutls-dev is all that works for me...