ruby-on-rails – 在Ubuntu 10.04上使用graphicsmagick安装rmagick 2.13.1

前端之家收集整理的这篇文章主要介绍了ruby-on-rails – 在Ubuntu 10.04上使用graphicsmagick安装rmagick 2.13.1前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我以前有一个rmagick宝石安装与 ImageMagick一起工作. ImageMagick从源代码安装,OpenMP已禁用.此安装工作无妨碍.但是我尝试卸载rmagick和ImageMagick,以便我可以使用与GraphicsMagick一起使用的版本.

所以我从源代码安装了GraphicsMagick,并再次禁用了OpenMP功能.但是,当我安装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

我已经试图运行:

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

并检查文件夹pkgconfig的内容

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

我在这里缺少什么?

解决方法

你是否试图在stackoverflow或google上搜索这个问题?尝试安装libmagickwand-dev后再次安装.
apt-get install libmagickwand-dev
原文链接:https://www.f2er.com/ruby/271757.html

猜你在找的Ruby相关文章