Aston J

How to install Vips on CentOS

Posted on: September 7th, 2012 by AstonJ 2 Comments

Vips is a brilliant new image processing library that is reported to be far more efficient than most other image processing libraries out there (such as ImageMagick). To install on CentOS simply:

Get the latest files from vips.ecs.soton.ac.uk, eg:

wget http://www.vips.ecs.soton.ac.uk/supported/current/vips-7.30.2.tar.gz

Then unpack:

tar -xzvf vips-7.30.2.tar.gz

Then cd into the directory:

cd vips-7.30.2

Then enter ./configure and look for any dependency errors, for me I needed to install glib2, which I did with:

yum install glib2-devel

Then ./configure again, and look out for any warnings. If you see something like:

checking for PNG... no
checking for libpng... libraries (none), headers (none)
configure: WARNING: libpng not found; disabling PNG support

Simply do: yum install libpng-devel for all those that you need.

Once you are happy to proceed, enter:

make

and

make install

And that’s it!

Enjoy!

Tags: , , , ,
  • John Smith

    Thanks for the tut, but how can I get the vips command-line interface to work?

  • John Smith

    Nevermind, it works, but it just installs to `/usr/local/bin`.