2012-01-20 114 views
4

我是新來的RoR應用程序,我想安裝arachni但是當我火了「創業板安裝arachni」它爲我的錯誤以下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 

給出這讓我瘋了整整一天,但不能夠解決它....請幫助

回答

2

您需要帶有開發文件(包括* .h)的libcurl安裝在您的系統中。