Help us understand the problem. What is going on with this article?

Imagemagickのコンパイル

More than 3 years have passed since last update.

はじめに

ソースからimagemagickを作成する機会があったのでそのメモです。
CentOS 6.6
ImageMagick-6.9.1-2
gcc version 4.4.7

ダウンロード

http://www.imagemagick.org/script/install-source.php
からimagemagick本体ダウンロード

http://www.imagemagick.org/download/delegates/
から
bzip2-1.0.6
jpeg-9a
libpng-1.6.16
をダウンロード
JPEGとPNGの変換ができるようにしています。bzip2はおまけです。いらないかもしれません。

yumの導入

ここは試行錯誤でいれたのでもしかするといらないかも

yum install -y zlib-devel
yum install -y libjpeg-turbo-devel

tar.gzファイルを全て展開してください。

tar zxf *.tar.gz

コンパイル

bzip2

cd bzip2-1.0.6

Makefile中の CC=gccを CC=gcc -fPIC に変更します。あとはmake(なぜかconfigureはないです)

make; make install
cd ../

libpng

cd libpng-1.6.16
./configure
make
make install
cd ../

libjpeg

cd jpeg-9a
./configure
make libdir=/usr/lib64
make libdir=/usr/lib64 install
cd ../

ImageMagick

cd ImageMagick-6.9.1-2
./configure
make
make install

インストール後の確認

# identify --version
Version: ImageMagick 6.9.1-2 Q16 x86_64 2015-05-15 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2015 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: DPC OpenMP
Delegates (built-in): bzlib jng jpeg png zlib

Delegatesにjpeg,pngがはいっていれば成功です。

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away