Skip to content

Instantly share code, notes, and snippets.

@satosystems
Last active February 19, 2016 18:51
Show Gist options
  • Save satosystems/55b6748f097c38c11cb2 to your computer and use it in GitHub Desktop.
Save satosystems/55b6748f097c38c11cb2 to your computer and use it in GitHub Desktop.
さくらのレンタルサーバに ImageMagick をインストールする方法 ref: http://qiita.com/satosystems/items/b14f8a5b6b23b1f25acb
$ mkdir ~/works
$ cd ~/works
$ wget -c http://www.imagemagick.org/download/ImageMagick.tar.gz
$ tar xf ImageMagick.tar.gz
$ cd ImageMagick-6.9.3-4/
$ ./configure --prefix=$HOME/usr --disable-openmp --disable-opencl
$ make
$ make install
$ echo "export PATH=\$HOME/usr/bin:\$PATH" >> ~/.bash_profile
$ echo "export PKG_CONFIG_PATH=\$HOME/usr/lib/pkgconfig" >> ~/.bash_profile
$ source ~/.bash_profile
$ which convert
/home/xxx/usr/bin/convert
$ convert -version
Version: ImageMagick 6.9.3-4 Q16 x86_64 2016-02-17 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC
Delegates (built-in): bzlib fftw fontconfig freetype fpx jbig jng jpeg lcms lqr png tiff xml
$ pkg-config --libs ImageMagick
-L/home/xxx/usr/lib -lMagickCore-6.Q16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment