How to install GD2 Library ?

Hello,
does anyone know a tutorial to install the gd2 library on leopard server?

the tutorial from http://osx.topicdesk.com/ is not working properly.

Is it necessary to recompile php 5.2.4 which is shipped with leo server?

many questions here

chico

Various, Mac OS X (10.5)

Posted on Nov 6, 2007 8:12 AM

Reply
37 replies

Nov 20, 2007 2:02 AM in response to pterobyte

ok, i did it...it works...almost 😟
actually when i execute the php command, i think it's launched...but when i launch it with the System Preferences / Shared (i hope that's the good translation because i have the french graphical interface 🙂 it doesn't work at all 😟
and, finally, to be sure it will work, i made a symbolic link from php.dSYM to php.
I think the problem comes from my apache. When i try to launch my apache server with the httpd command, i have :

httpd: Syntax error on line 114 of /private/etc/apache2/httpd.conf: Cannot load /usr/libexec/apache2/libphp5.so into server: dlopen(/usr/libexec/apache2/libphp5.so, 10): no suitable image found. Did find:\n\t/usr/libexec/apache2/libphp5.so: mach-o, but wrong architecture

error...but the libphp5.so is there (/usr/libexec/apache2/)

Thanks

Message was edited by: dim971

Nov 20, 2007 4:00 AM in response to dim971

You say you start the web server through System Preferences -> Sharing. This means you are using Leopard Client. This is the server forum, so not everything applies to client.

That said, you have a 64-bit capable CPU. Thus, apache will try to load the 64-bit image from libphp5.so. However the way you built PHP this is not possible.

Either build PHP with multiple architectures or build your own Apache before building PHP.

Nov 29, 2007 3:05 PM in response to pterobyte

Hello and thanks for all your help an instruction.

I built gd.so, change php.ini and the GD section shows up in my phpinfo().
But I am having trouble using it.
Typo3 GIFBUILDER isn't drawing any gifs and when I try to enter some sections in the Install Tool the page does not get loaded but I get lots of entries in my httpd/error_log



The process has forked and you cannot use this CoreFoundation functionality safely. You MUST exec().
Break on _THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___Y OU_MUST_EXEC_() to debug.


Can anyone help my out of this?
How can I try if gd.so is okay?

I am struggling for hours without any result.

Thanks in advance and greetings
Martin

PS: I am on Mac OS X Client

Dec 9, 2007 7:16 AM in response to Chico11mbit

Just wanted to let you all know that after re-installing OSX 10.5.1 Server for 6 times to try to get GD lib working in all poossible and imaginable ways found around the net I finally found my solution in this thread:

change:

extension_dir = "./"

to

;extension_dir = "./"

in /etc/php.ini

that solved it for me and like magic the gd appeared in my php info and is available in Typo3 ... 🙂 great, only took me 4 days to figure this out but by now i'm really fluent in installing and setting up Leopard Server ...

It seems GDlib is not working properly though since i get a

"Fatal error: Call to undefined function ImageTTFBBox() in /Library/WebServer/Documents/typo3 src-4.1.3/t3lib/class.t3libstdgraphic.php on line 970"

But i think i messed up since i re-installed gd several times i think. So i'll need one more re-install from scratch.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to install GD2 Library ?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.