跳到主要内容

软件升级

一、Python

二、make

查看当前安装的 make 版本

make -v

下载 make https://ftp.gnu.org/gnu/make/

wget https://ftp.gnu.org/gnu/make/make-4.4.1.tar.gz
tar -zxvf make-4.4.1.tar.gz
cd make-4.4.1
./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

三、GUN libc

查看当前安装的 glibc 版本

ldd --version

下载 glibc https://ftp.gnu.org/gnu/glibc/glibc-2.38.tar.gz

wget https://ftp.gnu.org/gnu/glibc/glibc-2.38.tar.gz
tar -zxvf glibc-2.38.tar.gz
cd glibc-2.38
mkdir build
cd build
../configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin
# 这一步耗时较长
make && make install

在执行 ../configure 的时候,会出现错误,根据错误提示一个个解决即可。

  • Python 版本太低,升级 Python 版本即可。
  • make 版本太低,升级 make 版本即可。
  • LD_LIBRARY_PATH shouldn't contain the current directory , 执行 unset LD_LIBRARY_PATH 命令即可。

四、nodejs

下载地址 https://nodejs.org/dist/latest-v20.x/node-v20.8.0.tar.gz

wget https://nodejs.org/dist/latest-v20.x/node-v20.8.0.tar.gz
tar zxvf node-v20.8.0.tar.gz