rpm -ivh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm yum install gcc-c++ make git wget bzip2 bzip2-devel cd /usr/local/src wget http://www.python.org/ftp/python/2.7.2/Python-2.7.2.tar.bz2 tar -jxf Python-2.7.2.tar.bz2 cd Python-2.7.2 ./configure --prefix=/opt/python-2.7.2 make && make install ln -s /opt/python-2.7.2/bin/python2.7 /usr/bin/python2.7 cd /usr/local/src/ git clone git://github.com/joyent/node.git cd node python2.7 configure make PYTHON=python2.7 make install
File "../../tools/js2c.py", line 409
except Error as e:
^
SyntaxError: invalid syntax
A:Edit deps/v8/tools/gyp/v8.gyp
cp -a deps/v8/tools/gyp/v8.gyp deps/v8/tools/gyp/v8.gyp.orig sed -i 's/python/python2.7/g' deps/v8/tools/gyp/v8.gyp
g++: Internal error: Killed (program cc1plus)
Please submit a full bug report.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
A:系統的 RAM 不足。