在Ubuntu 10.04上使用graphicsmagick安装rmagick 2.13.1 [英] Installing rmagick 2.13.1 with graphicsmagick on Ubuntu 10.04

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

问题描述

我以前有一个可以与ImageMagick配合使用的rmagick gem安装。 ImageMagick是在禁用OpenMP的情况下从源安装的。这种安装工作顺利。但是我试图卸载rmagick和ImageMagick,这样我就可以拥有一个适用于GraphicsMagick的版本。

所以我再次从源代码安装了GraphicsMagick并禁用了OpenMP功能。但是,当我安装rmagick时,我得到以下内容:

 构建本机扩展。这可能需要一段时间... 
错误:安装rmagick-2.13.1.gem时出错:
错误:无法构建gem本机扩展。

/usr/bin/ruby1.8 extconf.rb --build-opts --with-graphics-magick
检查Ruby版本> = 1.8.5 ...是
检查gcc ...是
检查Magick-config ...是

警告:发现部分ImageMagick安装。您的操作系统可能具有一些内置ImageMagick库,但不是全部ImageMagick。这很可能在编译和运行时造成问题。
在以下位置发现部分安装:/ usr
检查ImageMagick版本> = 6.4.9 ...是
检查HDRI禁用的ImageMagick版本...是
Package MagickCore在pkg-config搜索路径中找不到。
也许您应该将包含`MagickCore.pc'
的目录添加到PKG_CONFIG_PATH环境变量
找不到包'MagickCore'
在pkg-config搜索中找不到包MagickCore路径。
也许您应该将包含`MagickCore.pc'
的目录添加到PKG_CONFIG_PATH环境变量
找不到包'MagickCore'
在pkg-config搜索中找不到包MagickCore路径。
也许您应该将包含`MagickCore.pc'
的目录添加到PKG_CONFIG_PATH环境变量
找不到包'MagickCore'
在pkg-config搜索中找不到包MagickCore路径。
也许您应该将包含`MagickCore.pc'
的目录添加到PKG_CONFIG_PATH环境变量
找不到包'MagickCore'找到
检查stdint.h ...是
检查sys / types.h ...是
检查魔杖/ MagickWand.h ...否

无法安装RMagick 2.13.1。找不到MagickWand.h。
*** extconf.rb失败***
由于某些原因无法创建Makefile,可能缺少
必需的库和/或头文件。查看mkmf.log文件以获取更多
的详细信息。您可能需要配置选项。

提供的配置选项:
--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 / bin / ruby​​1.8

我已经尝试运行:

  export PKG_CONFIG_PATH = / usr / local / lib / pkgconfig 

code>

然后检查文件夹pkgconfig的内容:

  freetype2.pc GraphicsMagick.pc GraphicsMagick ++。pc GraphicsMagickWand.pc libpng15.pc libpng.pc 

我在这里错过了什么?

解决方案

您是否试图在stackoverflow或google上搜索此问题?尝试在安装libmagickwand-dev后再次安装。

  apt-get install libmagickwand-dev 


I previously had an rmagick gem installation that works with ImageMagick. ImageMagick was installed from source with OpenMP disabled. This installation works without a hitch. However I attempted to uninstall rmagick and ImageMagick so that I could have a version that works with GraphicsMagick.

So I installed GraphicsMagick from source and disabled OpenMP feature once again. However, When I install rmagick I get the following:

Building native extensions.  This could take a while...
ERROR:  Error installing rmagick-2.13.1.gem:
        ERROR: Failed to build gem native extension.

        /usr/bin/ruby1.8 extconf.rb --build-opts --with-graphics-magick
checking for Ruby version >= 1.8.5... yes
checking for gcc... yes
checking for Magick-config... yes

Warning: Found a partial ImageMagick installation. Your operating system likely has some built-in ImageMagick libraries but not all of ImageMagick. This will most likely cause problems at both compile and runtime.
Found partial installation at: /usr
checking for ImageMagick version >= 6.4.9... yes
checking for HDRI disabled version of ImageMagick... yes
Package MagickCore was not found in the pkg-config search path.
Perhaps you should add the directory containing `MagickCore.pc'
to the PKG_CONFIG_PATH environment variable
No package 'MagickCore' found
Package MagickCore was not found in the pkg-config search path.
Perhaps you should add the directory containing `MagickCore.pc'
to the PKG_CONFIG_PATH environment variable
No package 'MagickCore' found
Package MagickCore was not found in the pkg-config search path.
Perhaps you should add the directory containing `MagickCore.pc'
to the PKG_CONFIG_PATH environment variable
No package 'MagickCore' found
Package MagickCore was not found in the pkg-config search path.
Perhaps you should add the directory containing `MagickCore.pc'
to the PKG_CONFIG_PATH environment variable
No package 'MagickCore' found
checking for stdint.h... yes
checking for sys/types.h... yes
checking for wand/MagickWand.h... no

Can't install RMagick 2.13.1. Can't find MagickWand.h.
*** 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/bin/ruby1.8

I have already attempted to run:

 export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

And checking the contents of the folder pkgconfig:

freetype2.pc  GraphicsMagick.pc  GraphicsMagick++.pc  GraphicsMagickWand.pc  libpng15.pc  libpng.pc

What am I missing here?

解决方案

have you tried to search for this issue on stackoverflow or google? Try to install again after installing libmagickwand-dev.

apt-get install libmagickwand-dev

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

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