gpt4 book ai didi

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

转载 作者:数据小太阳 更新时间:2023-10-29 06:39:15 26 4
gpt4 key购买 nike

我之前有一个与 ImageMagick 一起使用的 rmagick gem 安装。 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

我在这里错过了什么?

最佳答案

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

apt-get install libmagickwand-dev

关于ruby-on-rails - 在 Ubuntu 10.04 上使用 graphicsmagick 安装 rmagick 2.13.1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9992336/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com