Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

As the title says, I'm getting the above error in my Apache log files when calling


in PHP.


apt-get install libjpeg62-dev

Tells me that it is already at the latest version.

Also exists in /usr/lib

(Running Ubuntu)

share|improve this question
up vote 0 down vote accepted

Make sure that /usr/lib/ actually is the file you think it is (ie not been overwritten by something/someone) Something like: for f in find . -type f -name "*jpeg*" ; do md5sum $f | uniq ; done would be a good start (you seem to have another version of libjpeg, thus the error)

share|improve this answer

Try to find the file used by php for the gd functions (if it is installed with ubuntu packages it should be in /usr/lib/php5/20060613) and type:


you will see all shared libraries that the object is using: =>  (0x00007fff8f7ed000) => /usr/lib/ (0x00007f813cfcc000) => /usr/lib/ (0x00007f813cd6f000) => /usr/lib/ (0x00007f813caea000) => /usr/lib/ (0x00007f813c7de000) => /usr/lib/ (0x00007f813c5cd000) => /usr/lib/ (0x00007f813c3a7000) => /usr/lib/ (0x00007f813c190000) => /usr/lib/ (0x00007f813bf6e000) => /lib/ (0x00007f813bc1a000) => /usr/lib/ (0x00007f813b9e5000) => /lib/ (0x00007f813b762000) => /usr/lib/ (0x00007f813b560000) => /usr/lib/ (0x00007f813b344000) => /lib/ (0x00007f813b140000)
/lib64/ (0x00007f813d43a000) => /usr/lib/ (0x00007f813af16000) => /usr/lib/ (0x00007f813ad14000) => /usr/lib/ (0x00007f813ab0f000) => /lib/ (0x00007f813a8f2000)

Check if libjpeg heads to the right version. If not, you should figure out why (hint LIBRARY_PATH)

share|improve this answer
The relevant line from that output on my server: => /usr/lib/ (0x00007f1abecb5000) – Oli Aug 17 '10 at 9:09
this looks good. So either your php isn't using this or apache has a different load path which has the 80 version before the 62. – hellvinz Aug 17 '10 at 10:52
Any pointers as to where to look next? – Oli Aug 17 '10 at 16:10

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.