在Ubuntu上安装rmagick [英] Installing rmagick on Ubuntu

查看:113
本文介绍了在Ubuntu上安装rmagick的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Ubuntu 10.04上安装RMagick。看了这里,但没有任何乐趣。我甚至从源代码编译和安装了ImageMagick,但这里的说明仍然无法帮助我当我尝试使用RubyGems安装RMagick时。我收到此错误:

I'm trying to get RMagick setup on Ubuntu 10.04. Looked here but had no joy. I even compiled and installed ImageMagick from source, but the instructions here still didn't help me when I try to install RMagick using RubyGems. I got this error:

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的新手,所以请保持温柔。我的设置如下:

What does it all mean? :) I'm new to Ruby and RubyGems so please be gentle. My setup is as follows:

Ruby: 1.8.7
RubyGems: 1.3.7

我几乎没有想法(也很累!)。我厌倦了使用上面的链接从源代码编译RMagick但它失败了因为没有 ./ configure 脚本:(

I'm pretty much out of ideas (and tired too!). I tired to compile RMagick from source using the link above but it failed as there was no ./configure script :(

任何和所有帮助表示赞赏!

Any and all help appreciated!

推荐答案

安装包 imagemagick libmagickwand-dev (或 libmagick9-dev )。然后你应该能够安装Rmagick Gem。

Install the packages imagemagick and libmagickwand-dev (or libmagick9-dev). You should then be able to install the Rmagick Gem.

sudo apt-get install imagemagick libmagickwand-dev

如果没有,你就缺少与ruby相关的开发包,比如 build-essential ruby​​1.8-dev 。如果是这种情况,google中的通用ubuntu install ruby​​ 1.8查询应该排除你。

If not, you are missing ruby related development packages like build-essential and ruby1.8-dev. If that's the case, a generic "ubuntu install ruby 1.8" query in google should sort you out.

这篇关于在Ubuntu上安装rmagick的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆