Arachni gem安装错误

时间:2012-01-20 06:51:03

标签: rubygems ubuntu-10.10 ruby-1.9.2

我是RoR应用程序的新手,我想安装arachni但是当我点击“gem install arachni”时它会显示我的错误,如下所示

 /home/crystal103/.rvm/rubies/ruby-1.9.2-p290/bin/gem:4: warning: Insecure world     writable dir /opt in PATH, mode 040777
 Building native extensions.  This could take a while...
 ERROR:  Error installing arachni:
   ERROR: Failed to build gem native extension.

       /home/crystal103/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb
 checking for curl/curl.h in     /opt/local/include,/opt/local/include/curl,/home/crystal103/.rvm/rubies/ruby-1.9.2-           p290/include/curl,/home/crystal103/.rvm/rubies/ruby-1.9.2-   p290/include,/usr/include/curl,/usr/local/include/curl... no
  need libcurl
  *** 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=/home/crystal103/.rvm/rubies/ruby-1.9.2-p290/bin/ruby


  Gem files will remain installed in /home/crystal103/.rvm/gems/ruby-1.9.2-   p290/gems/typhoeus-0.3.3 for inspection.
  Results logged to /home/crystal103/.rvm/gems/ruby-1.9.2-p290/gems/typhoeus-  0.3.3/ext/typhoeus/gem_make.out

这让我整天疯狂但却无法解决它....请帮忙

1 个答案:

答案 0 :(得分:2)

您需要libcurl,并在系统中安装开发文件(包括* .h)。