Re: compiling a 64-bit PHP on a mac G5
| From: | Brion Vibber | Date: | Wed, 19 Apr 2006 22:38:10 +0000 |
| Subject: | Re: compiling a 64-bit PHP on a mac G5 | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-22888@lists.php.net to get a copy of this message | ||
Jon wrote:
> I'm using os X and 64-bit mysql on a G5 and I'm trying to compile
> a 64-bit PHP but I seem to be having trouble with the libraries.
[snip]
> ... then it dies with this stuff in the config.log:
>
> ld64 warning: in /usr/lib/libxml2.dylib, file does not contain requested
> architecture
> ld64 warning: in /usr/lib/libz.dylib, file does not contain requested
> architecture
> ld64 warning: in /usr/lib/libiconv.dylib, file does not contain
> requested architecture
Most libraries on Mac OS X only ship as 32-bit.
Since these are standard open-source components you could probably recompile
them and link against those instead of the system copies; but do you really need
to compile PHP as 64-bit in the first place?
Unless you really want 64-bit integers in PHP for some reason, you could simply
link against the 32-bit MySQL libraries. (Install a 32-bit package in another
directory, if they're not shipping them with the 64-bit server.) Communication
with the server happens over a socket, so you don't have to compile as the same
arch as the server.
-- brion vibber (brion @ pobox.com)
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc