I recently installed Ubuntu 11.04 32 bit on my old laptop. I wanted to get PHP + nginx going, so I was following this page: http://bestsiteinthemultiverse.com/2011/01/installing-nginx-with-php-fpm-on-u…
After installing nginx, I tried to install PHP but ran into these errors:
configure: error: libjpeg.(a|so) not found.
configure: error: libpng.(a|so) not found.
I was able to fix the first one by installing libjpeg8-dev via
sudo apt-get install libjpeg8-dev
But I couldn’t fix the PNG issue. After searching around the web I found this post: http://www.nigeldunn.com/2011/05/14/ubuntu-11-04-libjpeg-so-libpng-so-php-ins… which was very helpful. Since my server is 32 bit, all I had to do was switch the path.
ln -s /usr/lib/i386-linux-gnu/libjpeg.so /usr/lib/libjpeg.so
ln -s /usr/lib/i386-linux-gnu/libpng.so /usr/lib/libpng.so
Voila!
You my friend, are a live saver! I got stuck on the png also 🙂 Thanks!
Thanks for posting and letting me know somebody found it useful!
Thanks, this post helped me 🙂