Skip to content Skip to sidebar Skip to footer

Can't Configure Node.js For Make Install On Os X (snow Leopard)

I cloned the node git repo but the 'waf' build tool that comes with node seems to not work with the latest version of Python. $ ./configure Traceback (most recent call last): Fil

Solution 1:

Ithe waf project page says

Compatibility from Python 2.3 to 3.1 is maintained (and Jython 2.5)

I think it currently does this by running 2to3.py when unpacking so if you had run first with python2 then it might be wrong. The waf1.6 branch I think is python3 clean

Reading the node.js code the node people expanded waf - which is not how you are meant to use waf. The idea is put the waf binary in the source code - this will expand using the correct version of python

OSX does have python 2 so a way of running the build might be to edit the root makefile and replace the first line

WAF=python tools/waf-light

by

WAF=/usr/bin/python tools/waf-light

Solution 2:

Yes the comma is outdated: see http://www.python.org/dev/peps/pep-3110/

Unfortunately, there's not much solution, if you stick with python3 you will have to modify the node code to make it work.

Post a Comment for "Can't Configure Node.js For Make Install On Os X (snow Leopard)"