I am having trouble building nodejs on MacOS Snow Leopard. I think it might have something to do with my PATH variable not being set correctly for the developer tools location.

For some reason, the Developer tools (gcc, g++, make etc) are all stored in


I added it to my PATH variable as follows:

$ export PATH=$PATH:/Developer/usr/bin

$ echo $PATH

When i try to configure it complains about not finding open-ssl, ok, not a big problem. So I try with --without-ssl :

$ ./configure --without-ssl
Checking for program g++ or c++          : /Developer/usr/bin/g++
Checking for program cpp                 : /Developer/usr/bin/cpp
Checking for program ar                  : /usr/bin/ar
Checking for program ranlib              : /Developer/usr/bin/ranlib
Checking for g++                         : ok
Checking for program gcc or cc           : /Developer/usr/bin/gcc
Checking for gcc                         : ok
Checking for library dl                  : yes
Checking for library util                : yes
Checking for library rt                  : not found
--- libeio ---
Checking for library pthread             : yes
Checking for function pthread_create     : not found
/Users/Guy/git_src/node/node/deps/libeio/wscript:13: error: the
configuration failed (see

Anyone know how I can get round this? I am suspicious that it might be something to do with the PATH or another ENV variable, but not sure.



1 Answer 1


Best bet with anything Mac is install homebrew


Then you can do

brew install node.js

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .