我需要一些帮助来编译cygwin上的Node源代码。每次我尝试进行构建时,都会抛出以下错误消息。我使用的是Windows 8和Cygwin 1.7.28。我试过安装YASM。请帮忙!
python tools/gyp_node -f make
make -C out BUILDTYPE=Release V=1
make[1]: Entering directory '/home/vineet/node-v0.8.22/out'
*LD_LIBRARY_PATH=/home/vineet/node-v0.8.22/out/Release/lib.host:/home/vineet/node-v0.8.22/out/Release/lib.target:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd ../deps/openssl; mkdir -p /home/vineet/node-v0.8.22/out/Release/obj.target/openssl/geni; ml64.exe /Zi /Fo "/home/vineet/node-v0.8.22/out/Release/obj.target/openssl/geni/aes-x86_64.obj" /c "/home/vineet/node-v0.8.22/deps/openssl/asm/x64-win32-masm/aes/aes-x86_64.asm"
/bin/sh: ml64.exe: command not found
deps/openssl/openssl.target.mk:10: recipe for target '/home/vineet/node-v0.8.22/out/Release/obj.target/openssl/geni/aes-x86_64.obj' failed
make[1]: *** [/home/vineet/node-v0.8.22/out/Release/obj.target/openssl/geni/aes-x86_64.obj] Error 127
make[1]: Leaving directory '/home/vineet/node-v0.8.22/out'
Makefile:26: recipe for target 'node' failed
make: *** [node] Error 2*
答案 0 :(得分:0)
好吧,因为它抱怨ml64
,你必须建立:
您实际上在您的系统上有 masm/x64
吗?它可能位于C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\amd64\
您的路径是否在CygWin
内设置为引用该目录,以便找到可执行文件?
通过错误消息:
/bin/sh: ml64.exe: command not found
这几乎肯定是这两个问题中的一个。
答案 1 :(得分:0)
实际上,您可以从Microsoft下载VC++ express,它是免费的。然后只需打开一个VC ++ X86命令提示符,然后简单执行VCbuild.bat,在这种情况下cygwin就没用了。