Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

/Developer/usr/bin

I added it to my PATH variable as follows:

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

$ echo $PATH
/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/X11/bin:/Developer/usr/bin

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
'/Users/Guy/git_src/node/node/build/config.log')

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.

Thanks

G

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Best bet with anything Mac is install homebrew

http://mxcl.github.com/homebrew/

Then you can do

brew install node.js
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.