<p>I know that MAC OS X 10.5 comes with Apache installed but I would like to install the latest Apache without touching the OS Defaults incase it causes problems in the future with other udpates. So I have used the details located at: <a href="http://diymacserver.com/installing-apache/compiling-apache-on-leopard/" rel="nofollow noreferrer">http://diymacserver.com/installing-apache/compiling-apache-on-leopard/</a> But I'm unsure how to make this the 64 Bit version of Apache as it seems to still install the 32 bit version.</p>

<p>Any help is appreciated</p>

<p>Cheers</p>

[{'answer_id': 25851, 'author': 'Espo', 'author_id': 2257, 'author_profile': 'https://Stackoverflow.com/users/2257', 'pm_score': 2, 'selected': False, 'text': '<p>Add this to your ~/.bash_profile which means that your architecture is 64-bit ant you’d like to compile Universal binaries.</p>\n\n<pre><code>export CFLAGS="-arch x86_64"\n</code></pre>\n'}, {'answer_id': 25854, 'author': 'Brian Warshaw', 'author_id': 1344, 'author_profile': 'https://Stackoverflow.com/users/1344', 'pm_score': 0, 'selected': False, 'text': '<p><a href="http://www.mail-archive.com/dev@httpd.apache.org/msg38674.html" rel="nofollow noreferrer">This page</a> claims that a flag for gcc (<code>maix64</code>) should do the trick. Give it a whirl, and if you need any more help, post back here.</p>\n'}, {'answer_id': 25893, 'author': 'Matthew Schinckel', 'author_id': 188, 'author_profile': 'https://Stackoverflow.com/users/188', 'pm_score': 0, 'selected': False, 'text': '<p>Be aware that you may run into issues with your apache modules.  If they are compiled in 32-bit mode, then you will not be able to load them into a 64-bit apache.</p>\n\n<p>I had this issue with mod_python, took a bit of thinking to figure out this was the reason.</p>\n'}, {'answer_id': 26856, 'author': 'Chris Hanson', 'author_id': 714, 'author_profile': 'https://Stackoverflow.com/users/714', 'pm_score': 0, 'selected': False, 'text': '<p>Don\'t export CFLAGS from your .bash_profile or any other dot file.  Your home directory could live on for decades, the system you\'re currently using is transient.</p>\n\n<p>There\'s a guide on Apple\'s web site, <a href="http://developer.apple.com/documentation/Porting/Conceptual/PortingUnix/" rel="nofollow noreferrer">Porting UNIX/Linux Applications to Mac OS X</a>, that talks specifically about how to make <code>autoconf</code> and <code>make</code> and other similar build systems fit into the Mac OS X Universal Binary scheme.  If you\'re going to build cross-Unix applications on Mac OS X, you <em>need</em> to read and understand this guide.</p>\n\n<p>That said, I strongly question why you want to build Apache 64-bit.  Just because Leopard can run 64-bit software doesn\'t mean you want all software on your system to be 64-bit.  (It\'s not Linux.)  In fact, virtually none of the software that ships with Leopard <em>runs</em> 64-bit by default, and most of the applications included with Leopard only ship 32-bit.</p>\n\n<p>Unless you have a pressing need to run Apache 64-bit, I wouldn\'t bother trying to build it that way.</p>\n'}, {'answer_id': 239200, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 0, 'selected': False, 'text': '<p>If you would have read a bit further on the same site there is some information on compiling Apache in 64 bits mode!\n<a href="http://diymacserver.com/2008/10/04/update-on-64-bits-compilation/" rel="nofollow noreferrer">http://diymacserver.com/2008/10/04/update-on-64-bits-compilation/</a></p>\n'}]
['https://Stackoverflow.com/questions/25846', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2196/']