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

查看:59
本文介绍了Ruby:在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 .如果是这种情况,谷歌中的通用"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.

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

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