The default /usr/libis the correct value to be libjpeg.so.62on Debian / Ubuntu.
Your problem is more likely that you did not install the header files, so PHP and the GD autoconfig script extension cannot find it. Try:
sudo apt-get install libjpeg62-dev libjpeg62
source
share