Ubuntu libjpeg.(a|so) not found

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



3 thoughts on “Ubuntu libjpeg.(a|so) not found

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s