Since 2000, I’ve developed a lot of programs in javascript, even server-side with Microsoft’s Active Server Pages (asp) which also supports the language. So am really intrigued by NodeJs, a emerging server environment hosting event-driven javascript (using Google Chrome’s V8 javascript engine).
However, on my Mac OS X 10.6 Snow Leopard with XCode 3, the default instructions on HowToNode didn’t work. Probably these only work with XCode 4.
After some research, and trial and error, I came up with the following:
cd ~/prj git clone git://github.com/ry/node.git cd node export PATH=/Developer/usr/bin:$PATH ISYSROOT="-isysroot /Developer/SDKs/MacOSX10.6.sdk" export LINKFLAGS=$ISYSROOT CXXFLAGS=$ISYSROOT CFLAGS=$ISYSROOT ./configure --prefix=$HOME make sudo make install
When this is done, the node binary is located at ~/bin/node.