简体   繁体   English

在Ubuntu 10.04上使用graphicsmagick安装rmagick 2.13.1

[英]Installing rmagick 2.13.1 with graphicsmagick on Ubuntu 10.04

I previously had an rmagick gem installation that works with ImageMagick. 我之前有一个与ImageMagick一起使用的rmagick gem安装。 ImageMagick was installed from source with OpenMP disabled. 从禁用OpenMP的源安装ImageMagick。 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. 但是我试图卸载rmagick和ImageMagick,以便我可以使用适用于GraphicsMagick的版本。

So I installed GraphicsMagick from source and disabled OpenMP feature once again. 所以我从源代码安装了GraphicsMagick并再次禁用了OpenMP功能。 However, When I install rmagick I get the following: 但是,当我安装rmagick时,我得到以下内容:

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: 并检查文件夹pkgconfig的内容:

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

What am I missing here? 我在这里错过了什么?

安装libmagickwand-dev后再尝试安装。

apt-get install libmagickwand-dev

开发包非常有用

sudo apt-get install libmagickcore-dev libmagickwand-dev

这对我有所帮助:

sudo apt-get install imagemagick libmagickcore-dev

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM