ruby - update - uninstall rvm




無法安裝Curb-本機擴展存在問題。 (2)

openssl過去常常為我工作,但現在libcurl4-gnutls-dev對我來說都很有用......

我正在嘗試在我的Debian機器上安裝curb gem但是我很難用原生擴展來構建gem。 我正在使用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來自extconf.rb的try_compile':51: 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 have_constant' from /usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/mkmf.rb:693:inblock in have_constant' from /usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/mkmf.rb:693: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 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 /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來自extconf.rb的have_constant' from extconf.rb:60:in :來自extconf.rb:43:來自have_constant' from extconf.rb:60:in '

我沒有任何解決方法,任何想法?

謝謝芽。


在Debian Squeeze上,我設法安裝了之前安裝了libcurl4-openssl-dev curb

它也可以與libcurl4-gnutls-dev ,但我沒有測試過。





curb