So I am trying to install node.js on my server. I have managed to wget and extract the .tar file into a folder, then cd’d into it and used the ‘./configure’ command. I get this error message:
[~/node-v0.8.8]# ./configure File "./configure", line 325
o['default_configuration'] = 'Debug' if options.debug else 'Release'
^
SyntaxError: invalid syntax
After rigorous googling, I have found out that this is caused by Python and is because of my Python version (which is 2.4).
Now I am trying to update Python, and the installation is working fine, but I’m thinking it’s not installing where it needs to? Because after install, I type python -V and it still says it’s on 2.4
If you’ve
make installd a newer version of Python and it’s not reporting the newer version inpython -V, then most likely your installation did not go to a place located in your$PATHenv var.I’d suggest reviewing the output of
make installto see where it was actually installing the files to, and updating your$PATHto use this new location.