[root@Jeffrey ai]# npm start node: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by node) node: /lib64/libc.so.6: version `GLIBC_2.25' not found (required by node) node: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by node) node: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by node) node: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by node) node: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by node)
二、处理 version `GLIBC_2.2X’ not found
更新glibc
1 2 3 4 5
cd/usr/local wget http://ftp.gnu.org/gnu/glibc/glibc-2.28.tar.gz tar xf glibc-2.28.tar.gz cd/usr/local/glibc-2.28 && mkdir build && cd build ../configure--prefix=/usr--disable-profile--enable-add-ons--with-headers=/usr/include--with-binutils=/usr/bin
可能遇到错误
1 2 3
configure: error: *** These critical programs are missing or too old: make bison compiler *** Check the INSTALL file for required versions.
wget http://ftp.gnu.org/gnu/make/make-4.3.tar.gz tar -xzvf make-4.3.tar.gz && cd make-4.3/ ./configure --prefix=/usr/local/make make && make install cd /usr/bin/ && mv make make.bak ln -sv /usr/local/make/bin/make /usr/bin/make
再次验证
cd /root/glibc-2.28/build ../configure –prefix=/usr –disable-profile –enable-add-ons –with-headers=/usr/include –with-binutils=/usr/bin
可能遇到错误
1 2 3
configure: error: *** These critical programs are missing or too old: bison *** Check the INSTALL file for required versions.
查看并安装
1
# bison -v
没安装,就安装一下
1
# yum install -y bison
再次验证
1 2
# cd /root/glibc-2.28/build # ../configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin
没啥问题了,开始安装
时间有点久,半小时左右,可以去喝杯茶~
1
# make && make install
三、处理 version `CXXABI_1.3.9’ not found
1 2 3 4 5 6 7 8 9
cd /usr/local wget http://ftp.de.debian.org/debian/pool/main/g/gcc-8/libstdc++6_8.3.0-6_amd64.deb ar -x libstdc++6_8.3.0-6_amd64.deb tar -xvf data.tar.xz cp usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.25 /usr/lib64/ find / -name "libstdc++*" rm /usr/lib64/libstdc++.so.6 ll /usr/lib64/libstd* ln -s /usr/lib64/libstdc++.so.6.0.25 /usr/lib64/libstdc++.so.6