When you install Apache you must tick the box to say to install development header files. I don't believe they are installed by default.
On Sunday, 21 August 2011, Michael Benin <[email protected]> wrote: > Thank you for pointing me in the right direction. > Other information to be provided: > I have apache installed under c:\apache > I have Python installed under c:\Python32 > > -Downloaded Visual Studio > -Renamed the file to win32-ap22py32.mk <http://win32-ap22py32.mk/> > -Opened it with Visual Studio: > -Modified these directories: > CPPFLAGS = \ > /DWIN32 \ > /DNDEBUG \ > /I"c:\Program Files\Microsoft Visual Studio 9.0\VC\include" \ > /I"c:\Program Files\Microsoft SDKs\Windows\v6.0A\Include" \ > /I"c:\apache\include" \ > /I"c:\Python32\include" > CFLAGS = \ > /MD \ > /GF \ > /Gy \ > /O2 \ > /Wall \ > /Zc:wchar_t \ > /Zc:forScope > LDFLAGS = \ > /link \ > "/LIBPATH:c:\Program Files\Microsoft Visual Studio 9.0\VC\lib" \ > "/LIBPATH:c:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib" \ > "/LIBPATH:c:\apache\lib" \ > /LIBPATH:c:\Python32\libs \ > /OPT:REF \ > /OPT:ICF=2 \ > /RELEASE \ > /SUBSYSTEM:WINDOWS > LDLIBS = \ > python32.lib \ > libhttpd.lib \ > libapr-1.lib \ > libaprutil-1.lib > mod_wsgi.so : mod_wsgi.c > cl $(CPPFLAGS) $(CFLAGS) $? /LD $(LDFLAGS) $(LDLIBS) /OUT:$@ > mt -manifest [email protected] -outputresource:$@;2 > clean : > del *.obj *.so *.so.manifest *.lib *.exp > From there I opened Visual Studio Command Prompt as administrator, and cd to the directory where the file is, ran the command: > > nmake -f win32-ap22py31.mk > > I received the following error: > cannot open the include file 'httpd.h' no such file or directory. > I believe the other directories need to be modified- specifically libhttpd.lib \ > Once again I appreciate all the help and will document a wiki on this. I am a junior web developer who mainly works with JS, AS3, and PHP. Ultimately I would like to make xmlhttprequests (AJAX) for a thick client web app, utilizing JS or AS3 on the front end and have Python work with mongoDB on the backend. I have been learning Python 3.2 using Pydev and would really love to make it come alive in my web apps. > > > > > On Thu, Aug 18, 2011 at 9:48 PM, Graham Dumpleton < [email protected]> wrote: > > See: > > http://code.google.com/p/modwsgi/wiki/InstallationOnWindows > > You will need to make a copy of: > > win32-ap22py31.mk > > to win32-ap22py32.mk and adjust paths defined in the file for Python 3.2. > > Sorry, been a bit busy to follow this conversation too closely. > > Graham > > On 18 August 2011 13:25, Michael Benin <[email protected]> wrote: >> What program is needed to compile for windows? >> 7zip and Cygwin? >> >> On Wed, Aug 17, 2011 at 10:09 PM, Manuel Antonio Mora Sandoval >> <[email protected]> wrote: >>> >>> Hi Michael, I use python 3.2 under Linux 64 bits, but for I can use, I >>> need download the source and compile him. I reviewed the source and I see >>> that version is 4. So that You wait to a new release comming soon. >>> >>> 2011/8/17 Michael Benin <[email protected]> >>>> >>>> Event Log: >>>> "The Apache service named reported the following error: >>>> >>> httpd.exe: Syntax error on line 129 of C:/apache/conf/httpd.conf: >>>> >>> Cannot load C:/apache/modules/mod_wsgi.so into server: The specified module >>>> >>> could not be found. " >>>> On Wed, Aug 17, 2011 at 7:04 PM, Michael Benin <[email protected]> >>>> wrote: >>>>> >>>>> Dear modwsgi group, >>>>> My machine is running Windows 7 64bit. >>>>> I have installed and configured Apache >>>>> with httpd-2.2.19-win32-x86-no_ssl.msi and have PHP installed >>>>> with php-5.3.6-Win32-VC9-x86.msi. >>>>> Python 3.2 is installed from python-3.2.1.msi (I could not open >>>>> as administrator, after reading installation instructions recommending >>>>> installing python as administrator, from the desktop it was installed >>>>> utilizing cmd.exe running the command: >>>>> /a "python-3.2.1.msi >>>>> I downloaded: mod_wsgi-win32-ap22py31-3.3 from google's wsgi downloads >>>>> and renamed it mod_wsgi.so, proceeded to copy it to my modules folder under >>>>> apache. And added the line: >>>>> LoadModule wsgi_module modules/mod_wsgi.so >>>>> -To the httpd.conf in Apache. >>>>> In control panel services I restarted Apache. >>>>> >>>>> Error message: >>>>> "Windows could not start the Apache2.2 on Local Computer. For more >>>>> information review the System Event Log. If this is a non-Microsoft service, >>>>> contact the service vendor, and refer to service specific error code 1." >>>>> I am currently watching this video to figure out the >>>>> problem: http://blip.tv/pycon-australia/getting-started-with-apache-mod_wsgi-3859481 >>>>> Any help is greatly appreciated. Thank you. >>>>> -- >>>>> Michael Benin >>>>> (845) 380-2700 >>>>> >>>> >>>> >>>> >>>> -- >>>> Michael Benin >>>> (845) 380-2700 >>>> >>>> >>>> -- >>>> You received this message because you are subscribed to the Google Groups >>>> "modwsgi" group. >>>> To post to this group, send email to modwsgi@goog -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.
