Arachni gem安装错误



我是RoR应用程序的新手,我想安装arachni,但当我启动"gem-install-arachin"时,它会显示错误,如下所示

 /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

这让我疯狂了一整天,但却无法解决……请帮助

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

相关内容

  • 没有找到相关文章

最新更新