On Sat, Jun 30, 2012 at 3:27 AM, Ryan Schmidt <[email protected]> wrote: > > On Jun 29, 2012, at 20:23, Ben Noordhuis wrote: > >> On Sat, Jun 30, 2012 at 3:19 AM, neojp wrote: >>> >>> I'm running Node 0.6.15 on CentOS with Python 2.4.3 and for some reason, I'm >>> getting this weird error while trying to install 0.8.1 >>> Does anyone have any idea on what can I do about it? >>> >>> $ cd node-v0.8.1 >>> $ ./configure >>> File "./configure", line 266 >>> o['default_configuration'] = 'Debug' if options.debug else 'Release' >>> ^ >>> SyntaxError: invalid syntax >> >> You need to use python 2.6 or 2.7. > > Shouldn't the configure script print a friendlier message if a wrong version > of python is used?
Chicken/egg problem. configure is a python script, it's the python interpreter that raises the error. I guess we could wrap it in a shell script that checks the python version but I don't find that very appealing. The build requirements are clearly documented in the README but that's not the main reason: I don't like layers upon layers, it makes debugging harder. -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
