如何建立Apache WebSocket模块? [英] How to build Apache WebSocket module?

查看:142
本文介绍了如何建立Apache WebSocket模块?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图解决这个问题很多小时.我从 Apache-WebSocket 断开连接" rel ="nofollow noreferrer">断开连接,并决定尝试此操作.该说明建议 Scons .但是,为了能够使用Scons,我还需要 Python .我安装了最新的3.x + Python,但是当我也安装了Scons并尝试构建模块时,它告诉我尚不支持Python 3.x +.好的,我同时卸载了Scons和Python,然后安装了Python 2.7.7.

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.

这样做之后,我遇到了进一步的困难,因为在注册表中找不到Python.搜索后,我发现了这个答案.我提取并执行了文件.在那之后,Scons工作了,但是仍然无法安装该模块.

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.

研究了SConstruct之后,我发现有一个Apache的硬编码路径,并且我已经修复了该路径.之后,我在文件夹中运行了以下命令:

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

但是答案是这样的:

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.

我正在使用Windows 8和Wamp.我该怎么办才能解决我面临的问题?

I am using Windows 8 and Wamp. What should I do to fix the problem I am facing?

这个很棒的页面帮助我解决了cl的问题.我需要为Visual C ++安装通用工具,然后需要运行

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

那之后我执行了

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.

推荐答案

相对于安装SCons而言,安装Visual Studio无关紧要. SCons每次运行时都应找到Visual Studio.您可以尝试以下操作:不要运行vcvarsall.bat,

It shouldn't matter when you install Visual Studio relative to when you install SCons. SCons should locate Visual Studio each time it is run. Can you try the following: don't run vcvarsall.bat,

设置SCONS_MSCOMMON_DEBUG =%TEMPDIR%\ scons_mstrace.log

set SCONS_MSCOMMON_DEBUG=%TEMPDIR%\scons_mstrace.log

运行scons,然后将输出粘贴到某个位置并将其添加到您的问题中?

run scons, and then pastebin the output somewhere and add it to your question?

在运行SCons之前,您不需要运行vcvarsall.bat.如果需要,则表明SCons找不到Visual Studio安装.这是设置SCONS_MSCOMMON_DEBUG的地方,将有助于弄清失败的原因,并消除了运行vcvarsall.bat的需要. MSVC初始化不完整以及scons中的MSVC可能与您剩下的问题有关.

You shouldn't need to run vcvarsall.bat prior to running SCons. If you needed to it indicates that SCons didn't find your Visual studio install. This is where setting SCONS_MSCOMMON_DEBUG would help figure out why it failed, and relieve the need to run vcvarsall.bat. It is possible that incomplete initialization of MSVC, and MSVC in scons could be related to your remaining issue.

您可以粘贴生成的日志文件吗?

Can you pastebin the generated logfile?

这篇关于如何建立Apache WebSocket模块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆