当前位置: 首页 > news >正文

centos7 node升级到node18

使用jenkins发布vue3项目提示node18安装失败

错误日志:

/var/lib/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node18/bin/node: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by /var/lib/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node18/bin/node)
/var/lib/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node18/bin/node: /lib64/libc.so.6: version `GLIBC_2.25' not found (required by /var/lib/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node18/bin/node)
/var/lib/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node18/bin/node: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by /var/lib/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node18/bin/node)
/var/lib/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node18/bin/node: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /var/lib/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node18/bin/node)
/var/lib/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node18/bin/node: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /var/lib/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node18/bin/node)
/var/lib/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node18/bin/node: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /var/lib/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node18/bin/node)

1.升级GLIBCXX

cd /usr/local/lib64/
# 下载最新版本的`下载最新版本的libstdc.so_.6.0.26`
wget http://www.vuln.cn/wp-content/uploads/2019/08/libstdc.so_.6.0.26.zip
# 解压
unzip libstdc.so_.6.0.26.zip
# 将下载的最新版本拷贝到 /usr/lib64
cp libstdc++.so.6.0.26 /usr/lib64
cd  /usr/lib64
# 查看 /usr/lib64下libstdc++.so.6链接的版本
ls -l | grep libstdc++
# 删除原先的软连接(不放心可以备份)
rm libstdc++.so.6
# 使用最新的库建立软连接
ln -s libstdc++.so.6.0.26 libstdc++.so.6
# 查看新版本,成功
strings /usr/lib64/libstdc++.so.6 | grep GLIBCXX

2.升级GLIBC

wget http://ftp.gnu.org/gnu/glibc/glibc-2.28.tar.gz
tar xf glibc-2.28.tar.gz 
cd glibc-2.28/ && mkdir build  && cd build
../configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin

2.1 gcc异常日志:

configure: error: in `/root/glibc-2.28/build':
configure: error: no acceptable C compiler found in $PATH

查询gcc版本:

/usr/bin/gcc --version

当前版本:

gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE

升级gcc

yum install -y centos-release-scl
yum install -y devtoolset-8-gcc*
# 备份gcc 老的版本
mv /usr/bin/gcc /usr/bin/gcc-4.8.5
# 创建软链
ln -s /opt/rh/devtoolset-8/root/bin/gcc /usr/bin/gcc
#备份g++ 老的版本
mv /usr/bin/g++ /usr/bin/g++-4.8.5
# 创建软链
ln -s /opt/rh/devtoolset-8/root/bin/g++ /usr/bin/g++

异常1:

Could not retrieve mirrorlist http://mirrorlist.centos.org?arch=x86_64&release=7&repo=sclo-rh error was
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"

解决:centos-7使用yum -y install centos-release-scl devtoolset-8-gcc* 升级gcc后yum失效

异常2GPG密钥不匹配 或者 密钥缺失:

warning: /var/cache/yum/x86_64/7/centos-sclo-rh/packages/devtoolset-8-gcc-c++-8.3.1-3.2.el7.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID f2ee9d55: NOKEY
Retrieving key from https://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7The GPG keys listed for the "CentOS-7 - SCLo rh" repository are already installed but they are not correct for this package.
Check that the correct key URLs are configured for this repository.Failing package is: devtoolset-8-gcc-c++-8.3.1-3.2.el7.x86_64GPG Keys are configured as: https://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7

解决:yum报错 GPG密钥不匹配

2.2 升级 make

异常日志:

These critical programs are missing or too old: make 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

2.3 安装bison:

cd glibc-2.28
# 执行命令
../configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin
#异常
configure: error: 
These critical programs are missing or too old: bisonCheck the INSTALL file for required versions.

安装bison:

yum install -y bison

3.jenkins发布vue3项目

设置环境:
在这里插入图片描述
执行脚本:
在这里插入图片描述

执行任务脚本正常执行
在这里插入图片描述

http://www.lryc.cn/news/482819.html

相关文章:

  • 使用Matlab建立随机森林
  • 【江苏-无锡】《无锡市市级政务信息化建设及运行维护项目支出预算标准(试行)》 -省市费用标准解读系列10
  • 2024-11-12 问AI: [AI面试题] 您将如何设计一个人工智能系统来预测电信公司的客户流失?
  • 【数字静态时序分析】复杂时钟树的时序约束SDC写法
  • springboot苍穹外卖实战:五、公共字段自动填充(aop切面实现)+新增菜品功能+oss
  • Go 语言中,golang结合 PostgreSQL 、MySQL驱动 开启数据库事务
  • Git核心概念
  • 网络安全技术在能源领域的应用
  • 这些场景不适合用Selenium自动化!看看你踩过哪些坑?
  • PHP反序列化靶场(php-SER-libs-main 第一部分)
  • 基于大数据爬虫+Python+SpringBoot+Hive的网络电视剧收视率分析与可视化平台系统(源码+论文+PPT+部署文档教程等)
  • DHCP与FTP
  • 云渲染与云电脑,应用场景与技术特点全对比
  • RockPI 4A单板Linux 4.4内核下的RK3399 GPIO功能解析
  • 【Vue】Vue3.0(二十三)Vue3.0中$attrs 的概念和使用场景
  • RHEL/CENTOS 7 ORACLE 19C-RAC安装(纯命令版)
  • CCSK:面试云计算岗的高频问题
  • C++ String(1)
  • ts 中 ReturnType 作用
  • Hadoop + Hive + Apache Ranger 源码编译记录
  • Java从入门到精通笔记篇(十二)
  • 入侵排查之Linux
  • 从0开始学习Linux——文件管理
  • 全面介绍软件安全测试分类,安全测试方法、安全防护技术、安全测试流程
  • Leidenアルゴリズムの詳細解説:Pythonによるネットワーク分割の実装
  • 安当ASP系统:适合中小企业的轻量级Radius认证服务器
  • Vue 组件间传值指南:Vue 组件通信的七种方法
  • 推荐一个超漂亮ui的网页应用设计
  • 有什么初学算法的书籍推荐?
  • 自动化工作流建设指南