it is simple ,to to like this:
1,sudo apt-get install imagemagick
2,sudo apt-get install libmagick9-dev
3,sudo gem install rmagick
第一步和第二部沒有問題,安裝第三步出現error:
Building native extensions. This could take a while...
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb install rmagick
extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)
from extconf.rb:1:in `<main>'
google了下,解決了,是因為ruby中沒有mkmf這個rb文件,安裝上即可:
sudo apt-get install ruby1.8-dev
that's okay...
ref:
http://expressica.com/2007/07/04/how-to-install-rmagick-gem-on-linuxubuntu/#comment-787
http://mentalized.net/journal/2006/01/24/no_such_file_to_load_mkmf/
http://groups.google.com/group/ruby-talk-google/browse_thread/thread/c29f9e78ae99a4d9/953f758c9509153d?show_docid=953f758c9509153d
posted on 2009-06-17 18:07
fl1429 閱讀(1192)
評論(0) 編輯 收藏 所屬分類:
Rails 、
Ubuntu