2011-05-15 54 views
3

所有這些都是在我想安裝zena時開始的。但我搞砸安裝Ruby,寶石,MySQL的不同部分。到底 。我用正確安裝澤納結束了,但是當我執行:耙澤納:初始化,因爲它在教程說,我receve:安裝rmagick時出現紅寶石錯誤

ERROR: Error installing rmagick: 
    ERROR: Failed to build gem native extension. 

/usr/local/bin/ruby extconf.rb 
checking for Ruby version >= 1.8.5... yes 
checking for gcc... yes 
checking for Magick-config... no 
Can't install RMagick 2.13.1. Can't find Magick-config in /usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/libexec 

*** 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/bin/ruby 

Gem files will remain installed in /usr/local/lib/ruby/gems/1.8/gems/rmagick-2.13.1 for inspection. 
Results logged to /usr/local/lib/ruby/gems/1.8/gems/rmagick-2.13.1/ext/RMagick/gem_make.out 
Building native extensions. This could take a while.... 

我希望我可以刪除一切,更重新正確安裝Ruby和它的全部。誰能幫我這個 ? 。感謝你們 !

+2

是否遵循了[RMagick安裝常見問題解答(HTTP://rmagick.rubyforge。組織/安裝-的faq.html)?特別是,您需要安裝ImageMagick或類似的庫。 – 2011-05-15 19:03:59

回答

8

你在Ubuntu嗎?

然後嘗試安裝該軟件包:

sudo apt-get install libmagickwand-dev 

如果這沒有幫助,嘗試安裝這些軟件包:

sudo apt-get install build-essential ruby-dev 
+0

@Jonathan Tran我沒有按照你的教程鏈接,當我到達安裝RMAGICK,安裝完所有以上(Mac端口+一件事)後,我試着RMAGIC安裝命令和輸出是:這是太長,輸入在這裏,檢查輸出在:http://www.andrei-klauss.ro/output.txt – 2011-05-15 20:46:17

+0

我是mac os x 10.6.7 – 2011-05-15 20:54:05