views:

733

answers:

4

I'd rather not use Macports. Simply cause Macport replaces (installs another Apache in /opt/local/bin) the default installation of Apache. And that would mean having ports install/replace PHP too. I'd rather use the default installation included in Snow Leopard.

Been searching the net, and all I get is old instructions using Darwin Ports (older version of Macports) or instruction for Leopard (which hasn't panned out for me).

Can anyone point me in the right direction? Thanks.

PS: By the way mod_python for 1.6 or 3.1 is fine.

A: 

fink is the alternative distribution to MacPorts. Given you're installing a module, it would most likely update your Apache instance as well.

Sounds like you'll probably need to build Apache (to get the header files/libraries you need to link to) and mod_python.

Epsilon Prime
Yeah. I assumed that. Was hoping for an easier install. Thanks.
Stephen Cox
A: 

Macports is the key. Refer to the comments. Much thanks.

Stephen Cox
+1  A: 

First of all, it seems that the mod_python development has somewhat stalled; I've read comments, that for wsgi-capable applications like Trac or Django (mod_wsgi is sufficient. Mod_wsgi compiles without problems on Snow Leopard (of cource you need the Developer tools installed).

Of course Macports or Fink is always an alternative, however as opposed to Leopard where the supplied Apache and Python binaries were rather old, the Snow Leopard ones are current and 64-bit as well. Another advantage over using the Apple supplied binaries is, that they get automatic security updates with the usual Apple Software update. Last but not least you have better OS integration with using the standard supplied Apache

A: 

If you still want to avoid macports, I recommend checking out the mod_python trunk. I was actually able to build it with apache2 and Python 2.5 successfully without having to tweak the source of any of all the previously reported issues

svn co https://svn.apache.org/repos/asf/quetzalcoatl/mod_python/trunk mod_python-trunk

Macports is great if you are starting with a clean slate. But often you are just migrating systems (migrations assistant never gets the mod_python over) or even just upgrading the OS (had to rebuild mod_python for snow leopard)

:)

TechieGurl
FYI. You can still have issues with mod_python trunk if not using standard Python supplied by Apple but an alternate distribution. This will be evident by mod_python finding wrong Python installation at runtime or completely failing at startup with undefined symbols.
Graham Dumpleton
I didn't use Apple's shipped Python. Our source code is old and is Python 2.5 while Apple now ships 2.6. I had to finagle with the /Library folders and explicitly specify which python bin file to use at build time
TechieGurl