如何安装特定版本的ImageMagick头文件?

时间:2014-12-08 20:16:33

标签: linux imagemagick redhat rhel

我在RHEL上并使用以下命令从源代码安装ImageMagick:

yum install -y libpng libpng-devel
curl -LO http://www.imagemagick.org/download/releases/ImageMagick-6.8.9-9.tar.gz
tar -xvzf ImageMagick.tar.gz
cd ImageMagick-6.8.9-9/
./configure --prefix=/usr/local
make install

我还需要安装头文件。我该怎么做呢? Yum最新的存储库只有6.5.4,如果我安装那些我得到版本冲突。

1 个答案:

答案 0 :(得分:2)

根据Install-unix.txt,它说:

533    By default, ImageMagick is installs binaries in /../usr/local/bin, libraries  
534   in /../usr/local/lib, header files in /../usr/local/include and documentation
535   in /../usr/local/share. You can specify an alternative installation prefix
536   other than /../usr/local by giving configure the option --prefix=PATH. This
537   valuable in case you don't have privileges to install under the default
538   paths or if you want to install in the system directories instead.

所以它应该已经存在了。我使用您安装的相同版本验证了这一点。它位于$ prefix / include / ImageMagick。