在Windows cygwin上安装node.js错误

时间:2011-08-19 10:18:33

标签: python node.js g++ cygwin configure

我尝试按照以下说明安装node.js: https://github.com/joyent/node/wiki/Building-node.js-on-Cygwin-(Windows

运行./configure后出现了这些错误:

$ ./configure
Checking for program g++ or c++          : /usr/bin/g++
  2 [main] python 6768 C:\cygwin\bin\python.exe: *** fatal error - unable to remap \\?\C:\cygwin\lib\python2.6\lib-dynload\time.dll to same address as parent: 0x3A0000 != 0x3D0000
Stack trace:
Frame     Function  Args
002891E8  6102796B  (002891E8, 00000000, 00000000, 00000000)
002894D8  6102796B  (6117EC60, 00008000, 00000000, 61180977)
0028A508  61004F1B  (611A7FAC, 61249144, 003A0000, 003D0000)
End of stack trace
  3 [main] python 5292 fork: child 6768 - died waiting for dll loading, errno 11
/home/user/node/wscript:228: error: could not configure a cxx compiler!

我在cygwin上做了一次rebaseall并再次运行configure并遇到了这些错误:

$ ./configure
Checking for program g++ or c++          : /usr/bin/g++
Checking for program cpp                 : /usr/bin/cpp
Checking for program ar                  : /usr/bin/ar
Checking for program ranlib              : /usr/bin/ranlib
Checking for g++                         : ok
Checking for program gcc or cc           : /usr/bin/gcc
  2 [main] python 6100 C:\cygwin\bin\python.exe: *** fatal error - unable to remap \\?\C:\cygwin\lib\python2.6\lib-dynload\_functools.dll to same address as parent: 0x3A0000 != 0x3D0000
Stack trace:
Frame     Function  Args
002891E8  6102796B  (002891E8, 00000000, 00000000, 00000000)
002894D8  6102796B  (6117EC60, 00008000, 00000000, 61180977)
0028A508  61004F1B  (611A7FAC, 6124976C, 003A0000, 003D0000)
End of stack trace
  2 [main] python 4424 fork: child 6100 - died waiting for dll loading, errno 11
/home/user/node/wscript:230: error: could not configure a c compiler!

我做错了什么?

2 个答案:

答案 0 :(得分:2)

您可以按照此页面上的步骤操作: http://www.garethhunt.com/2008/02/11/cygwin-died-waiting-for-dll-loading/

它对我来说很完美。

答案 1 :(得分:0)

您可以避免通过Cygwin安装node.js并尝试使用native Windows executable优先would/should(除非您有其他具体原因)。