Activating GD Extension ?

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Activating GD Extension ?

Postby proutiprouta » 02. April 2012 18:06

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:
proutiprouta
 
Posts: 1
Joined: 02. April 2012 17:40
Operating System: Ubuntu

Re: Activating GD Extension ?

Postby JonB » 27. April 2012 18:46

I "think" GD is hardlinked into LAMPP.

Check your phpinfo() -

Good Luck
8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 61 guests