Установка rmagick 2.13.1 с graphicsmagick в Ubuntu 10.04 - PullRequest
13 голосов
/ 03 апреля 2012

Ранее у меня была установка гема 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

Что мне здесь не хватает?

Ответы [ 3 ]

8 голосов
/ 03 апреля 2012

Попробуйте установить снова после установки libmagickwand-dev.

apt-get install libmagickwand-dev
6 голосов
/ 02 февраля 2015

Пакеты разработчика действительно полезны

sudo apt-get install libmagickcore-dev libmagickwand-dev
4 голосов
/ 18 декабря 2014

Это помогло мне:

sudo apt-get install imagemagick libmagickcore-dev
...