I'm trying to compile the pHash extension. I found a great step-by-step explanation here, https://serverfault.com/questions/491730/compile-phash-on-centos-php-extension
But I'm bumping into two problems :
1) When launching the ./configure script of the pHash sources, the log shows the following error, although I copied CImg.h in my /usr/local/include folder
*** Configuring image hash ***
checking CImg.h usability... no
checking CImg.h presence... no
checking for CImg.h... no
checking whether CImg.h is in the current or src directory.... no
Which is really a bummer, as I'm most interested in the pHash DCT image hashing algorithm function
2) pHash compilation fails with the following error when launching make :
../src/.libs/libpHash.so: undefined reference to `pthread_create'
../src/.libs/libpHash.so: undefined reference to `pthread_join'
collect2: ld returned 1 exit status
make[2]: *** [test_texthash] Error 1
make[2]: Leaving directory `/home/downloads/libraries/pHash-0.9.6/examples'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/downloads/libraries/pHash-0.9.6'
make: *** [all] Error 2
Any idea why this is happening? I made sure all the dependencies are met as stated in the link above. I would like to try with pHash-0.9.5, but I could not find older version archives on the phash.org website