I was trying for many hours to solve this. I have found Apache-WebSocket from Disconnect and decided to try this out. The description recommends Scons. However, to be able to use Scons, I need Python as well. I installed the newest 3.x+ Python, but when I installed Scons as well and tried to build the module, it told me that Python 3.x+ is not supported yet. Ok, I uninstalled both Scons and Python, then installed Python 2.7.7.
After I have done that, I faced further difficulties, since Python was not found in the Registry. After a search I found this answer. I extracted and executed the file. After that, Scons worked, but still failed to install the module.
After looking into SConstruct, I have seen there is a hard-coded path for Apache and I have fixed the path. After that, I ran the following command in the folder:
scons install
but the response was this:
scons: Reading SConscript files ... scons: done reading SConscript files. scons: Building targets ... cl /Fomod_websocket.obj /c mod_websocket.c /nologo /O2 /MD /EHsc /W3 /DWIN32 /IC :\wamp\bin\apache\apache2.4.2\include 'cl' is not recognized as an internal or external command, operable program or batch file. scons: *** [mod_websocket.obj] Error 1 scons: building terminated because of errors.
I am using Windows 8 and Wamp. What should I do to fix the problem I am facing?
EDIT:
This great page helped me to solve the problem with cl. I needed to install common tools for Visual C++ and then I needed to run
vcvarsall.bat x86
After that I have executed
scons install
and it passed the point it failed the last time. Now the new error is as follows:
mod_websocket.so.manifest : general error c1010070: Failed to load and parse the manifest. The system cannot find the file specified. scons: *** [mod_websocket.so] Error 31 scons: building terminated because of errors.