DAddYE / vips

Go Bindings for Vips (a super fast image processor)
451 stars 52 forks source link

Install libvips using supported release instead of git source #26

Open donlzx opened 9 years ago

donlzx commented 9 years ago

I was install vips on a remote server running Debian linux. At first I was compiling libvips from Git source according to README.md, but it took me a lot of time to download the full Git repo and then fix package dependence issues. It also required installing of many GTK packages, which is a concern for the server.

Later, I found out a better way is to just download the supported libvips release from http://www.vips.ecs.soton.ac.uk/supported/current/. Install only a small number of packages and everything was OK. And this method works for both Debian and Ubuntu linux.

Install packages for Ubuntu:

sudo apt-get install build-essential libjpeg-turbo8-dev libpng12-dev

Install packages for Debian:

sudo apt-get install build-essential libjpeg62-turbo-dev libpng12-dev

Make and install libvips

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

./configure --enable-debug=no --without-python --without-fftw --without-libexif \
  --without-libgf --without-little-cms --without-orc --without-pango --prefix=/usr
make
sudo make install
sudo ldconfig
yalay commented 8 years ago

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

pinglamb commented 8 years ago

It is vips-8.2.3 now. But I found that the supported release version doesn't support giflib yet.