|
In VPS update to Python, we continue to toss Node.js. CentOS repositories not included Node.js; while running Node.js compiled Linux executable files provided by the official show:
node: /lib/libc.so.6: version `GLIBC_2.9 'not found (required by node)
node: /lib/libc.so.6: version `GLIBC_2.6 'not found (required by node)
node: /lib/libc.so.6: version `GLIBC_2.7 'not found (required by node)
Executive yum info glibc can see CentOS glibc (The GNU C Library, Standard C language library) 5 still in the ancient version 2.5, as shown in Figure. That is, since CentOS 5 low glibc library version comes, we can not directly use the new version of the Node (the latest version is Node v0.8.14).
Check the version of glibc
To solve this problem, we need to download and compile the new version of glibc. But according to friends said, because glibc library system is the basis of many systems rely on software to run it, hastily updated glibc may have some incompatibilities. (Not verified this statement, and then taking the time to try it, hehe).
After looking for a long time, and found to provide a yum repository of Node.js Node.js on GitHub Wiki, applicable to CentOS, RHEL, Fedora systems. Because the software library from May 2012 to stop updating, so we installed here Node.js is v6.18 version, although not the latest version, but it should be enough. Installation operations are as follows, with links Putty VPS, in turn execute the following command:
wget http://nodejs.tchol.org/repocfg/el/nodejs-stable-release.noarch.rpm
yum localinstall --nogpgcheck nodejs-stable-release.noarch.rpm
yum install nodejs-compat-symlinks npm
I downloaded and installed here about 16M size, a total of 38 Package.
Node.js installed
PS: CentOS 6 can be directly used to compile Node.js official website for the good executable file. If you want to change to a system Host1Free VPS CentOS 6, can be found in Host1Free Reinstall the control panel, and then choose to install CentOS 6. |
|
|
|