node.js on Windows 7

By Dan Baker, published 2010-09-10

Well, it wasn't as easy getting node.js to compile on my Windows 7 box... I followed my own instructions here. I installed cygwin on my D: drive. When I ran "./configure", I got a series of errors. The FIRST error was something like:
Checking for program gcc or cc : /usr/bin/gcc 0 [main] python 3968 C:\cygwin\bin\python.exe: *** fatal error - unable to remap \\?\D:\cygwin\lib\python2.6\lib-dynload\time.dll to same address as parent: 0x360000 != 0x3E0000
After lots of googling, I discovered I needed to "rebase". After more googling and trying various things ... I discovered the magic code. It is as follows: To "rebaseall" my cygwin:
  1. close cygwin
  2. open dos box to ...\cygwin\bin
  3. "ash rebaseall"
  4. close dos box
  5. re-run cygwin
  6. cd node
  7. ./configure (cross fingers, wait ... "SUCCESS", whew!)
I then went back to my instructions for Windows XP, and everything worked great. Life is good.

About the Author

Name:
Dan Baker
Location:
Lindon, UT
Github:
danbaker

Dan loves programming. JavaScript is awesome!

About UtahJS.com

UtahJS is the website for the Utah JavaScript Users Group that meets to discuss and enjoy JavaScript!

JavaScript in the browser, on the server or just about anywhere else.

We love JavaScript but quite often talk about other topics such as CSS, HTML, cross browser coding, the internet… pretty much, anything that we find interesting.

Everyone is welcome. Please join us!