我正在尝试在Ubuntu 10.04上安装RMagick。看着这里,但没有喜悦。我什至从源代码编译并安装了ImageMagick,但是当我尝试使用RubyGems安装RMagick时,这里的说明仍然没有帮助。我收到此错误:
carcher@carcher-laptop:~/Code/temp/RMagick-2.13.1$ sudo gem install rmagick
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
extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)
from extconf.rb:1
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/rmagick-2.13.1 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/rmagick-2.13.1/ext/RMagick/gem_make.out
carcher@carcher-laptop:~/Code/temp/RMagick-2.13.1$
这是什么意思呢?:)我是Ruby和RubyGems的新手,所以请保持谦虚。我的设置如下:
Ruby: 1.8.7
RubyGems: 1.3.7
我几乎没有想法(也很累!)。我厌倦了使用上面的链接从源代码编译RMagick,但是由于没有./configure
脚本:(
任何和所有帮助表示赞赏!
imagemagick
,libmagickcore-dev
和libmagickwand-dev
:github.com/rmagick/rmagick/wiki/Installing-on-Ubuntu