PHP5 and Leopard and GD

LuKreme kremels at kreme.com
Thu Dec 13 06:49:48 PST 2007


Has anyone had any issue installing gd2 into the php included in  
Leopard Client.  I have gd2 compiled and configured successfully, and  
it installed gd.so into

/usr/lib/php/extensions/no-debug-non-zts-20060613

as it was supposed do, but when I do a php -m, GD is not listed

I set extension_dir = "/usr/lib/php/extensions/no-debug-non- 
zts-20060613/"

which resulted in:

# php -m
dyld: NSLinkModule() error
dyld: Symbol not found: _php_sig_gif
   Referenced from: /usr/lib/php/extensions/no-debug-non-zts-20060613/ 
gd.so
   Expected in: flat namespace

(I did install a libjpeg, but nothing for gif or png because I  
couldn't find the right libs for gifs and pngs)

I did compile as 32-bit as I didn't think I needed a 64-bit version,  
should I recompile as 64-bit?

The instructions I read were about Leopard Server, but nothing in them  
appeared to be server OS specific.

I did find a pre-compiled archive of php5.2.5 for leopard that  
apparently fixes all of this, but I am, naturally, hesitant to do that.

I'm running hellaworld, and it uses a php call to gd to create a  
progress bar of the current download.  Despite finding at least one  
reference that the apache2 php5 would work even if the CLI did not,  
this does not appear to be the case on my machine.

-- 
"I don't think the kind of friends I'd have would care."




More information about the MacOSX-admin mailing list