On my 12.04, 64bit server I try to get PHP5 GD running to enable captcha images . But it gives an error:
Code:
~$ php -v
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/gd.so' - libjpeg.so.8: cannot open shared object file: No such file or directory in Unknown on line 0
PHP 5.3.10-1ubuntu3.2 with Suhosin-Patch (cli) (built: Jun 13 2012 17:19:58)
When I look at the shared libraries, I see libjpeg.so.8 (and libfontconfig.so.1) is indeed missing:
Code:
ldd /usr/lib/php5/20090626/gd.so
linux-vdso.so.1 => (0x00007fff98bff000)
libgd.so.2 => /usr/lib/x86_64-linux-gnu/libgd.so.2 (0x00007f0cd8700000)
libt1.so.5 => /usr/lib/libt1.so.5 (0x00007f0cd84a2000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f0cd80e4000)
libXpm.so.4 => /usr/lib/x86_64-linux-gnu/libXpm.so.4 (0x00007f0cd7ed3000)
libjpeg.so.8 => not found
libfontconfig.so.1 => not found
libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f0cd7c36000)
Now my simple question is, how do I get these libs installed? Because whatever I try, I don't get any libjpeg.so.8 installed. This doesn't help for example.
Code:
sudo apt-get install libjpeg8
Reading package lists... Done
Building dependency tree
Reading state information... Done
libjpeg8 is already the newest version.
What am I missing here? Any help very much appreciated.
Bookmarks