Graham Dumpleton
graham.dumpleton at gmail.com
Tue May 15 17:22:40 EDT 2007
---------- Forwarded message ---------- From: Henk van den Toorn <hvdtoorn at gmail.com> Date: 15-May-2007 22:25 Subject: Re: [mod_python] compile on 64-bit windows server 2003 To: Graham Dumpleton <graham.dumpleton at gmail.com> Hi, Thanks Graham! I've gotten it to compile, now I'm testing the module. Just to share my steps with the community : The old mail ( http://www.modpython.org/pipermail/mod_python/2006-September/022092.html ) was a big help, but you need to set up some more environment variables in order to get it to work on the AMD64 ( = EM-64T / x64) platform. You need to download and install: - Windows platform SDK (which comes with a compiler etc.) - A binary apache installation (the same installation you want to use your mod_python with) - the mod_python sources (on the site it says it's for linux, but it is in fact for windows as well) The platform SDK gives you several command line environments set up for the different platforms it supports. For AMD64, use the "x64-bit retail" version. You can find the command lines in the start menu / programs. - You have to set up some variables to tell the python distutils and the build script what you are doing, so type: set DISTUTILS_USE_SDK=1 set MSSdk=1 set APACHESRC=[your installation path to apache] - cd into the \dist directory within the mod_python sources - now run the build_installer.bat script If all goes well, all parts are built and a windows installer is put in the \dist\dist directory. I got an error saying it cannot find the Python25\Lib\distutils\command\wininst- 8.0.exe file, but copying wininst-7.1.exe into a file called wininst-8.0.exe (and recompiling mod_python) just worked for me. - Unfortunately, the post-install python script does not work, saying it cannot find python.exe , so I run the \dist\win32_postinstall.py script by hand, which actually puts the mod_python.so file into the server \modules\ path. As I said, I'm testing now... On 15/05/07, Graham Dumpleton <graham.dumpleton at gmail.com> wrote: > Did you find these instructions. > > http://www.modpython.org/pipermail/mod_python/2006-September/022092.html > > I'm not a Windows person so cant help, but if you try these > instructions and report back what the problems are then others here > probably can help. > > Graham > > On 15/05/07, Henk van den Toorn <hvdtoorn at gmail.com> wrote: > > Hello, people! > > > > I'm very much interested in building the latest (3.3.1) version of > > mod_python on a 64-bit server (win2003). I have gotten the sources from > > the download pages and the source for apache httpd as well (it seems > > like you need that in order to find the httpd.h files and more) > > > > Does anybody have experience doing this? Or can the way to address this > > problem be found somewhere on the internet? I've searched everywhere but > > I cannot find anything how to do this and all build attempts fail. > > > > Thanks in advance! Greetings, Henk > > _______________________________________________ > > Mod_python mailing list > > Mod_python at modpython.org > > http://mailman.modpython.org/mailman/listinfo/mod_python > > > > >
|