Page 1 of 1

Activating GD Extension ?

PostPosted: 02. April 2012 18:06
by proutiprouta
Hello there... I need help on Xampp 1.7.7 on ubuntu 64 bits (ia32-libs installed). I'm trying to activate php extension "GD" but i can't...

It seems that I have to modify the php.ini file.

Here was my default php.ini : http://paste.ubuntu.com/911436/

I decommented (removed the ";" at the beginning on the line) the line ";extension=php_gd2.dll".

Then it said :

Code: Select all
Warning: PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/php_gd2.dll' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/php_gd2.dll: cannot open shared object file: No such file or directory in Unknown on line 0


I realized that a ".dll" might be only for Windows system. So I found in /opt/lampp/lib these files : "libgd.so", "libgd.so.2", "libgd.so.2.0.0"...

I copied these files in /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/, and changed the line "extension=php_gd2.dll" by "extension=libgd.so", or "extension=libgd.so.2" or "extension=libgd.so.2.0.0".

Now i have this :

Code: Select all
Warning: PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/libgd.so' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/libgd.so: wrong ELF class: ELFCLASS64 in Unknown on line 0


What should I do.. ?

Thank you very much for your help. :wink:

Re: Activating GD Extension ?

PostPosted: 27. April 2012 18:46
by JonB
I "think" GD is hardlinked into LAMPP.

Check your phpinfo() -

Good Luck
8)