系统运维-Linux配置C、C++、Go语言编译环境

C

复制代码
yum install gcc -y			#安装gcc编译器

gcc --version				#验证环境

gcc (GCC) 11.3.1 20221121 (Red Hat 11.3.1-4)
Copyright (C) 2021 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.

C++

复制代码
yum install g++ -y			#安装g++编译器

g++ --version				#验证环境

g++ (GCC) 11.3.1 20221121 (Red Hat 11.3.1-4)
Copyright (C) 2021 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.

Go

Go语言环境本地yum源不自带,需要将软件包导入

复制代码
tar -C /usr/local -zxvf go1.20.5.linux-arm64.tar.gz		#解压缩go到/usr/local

vim /etc/profile		#编辑环境变量

#添加
export PATH=$PATH:/usr/local/go/bin

go version			#验证环境

go version go1.20.5 linux/arm64
相关推荐
沐怡旸2 小时前
【底层机制】std::string 解决的痛点?是什么?怎么实现的?怎么正确用?
c++·面试
River4165 小时前
Javer 学 c++(十三):引用篇
c++·后端
轻松Ai享生活7 小时前
5 节课深入学习Linux Cgroups
linux
感哥7 小时前
C++ std::set
c++
侃侃_天下8 小时前
最终的信号类
开发语言·c++·算法
christine-rr8 小时前
linux常用命令(4)——压缩命令
linux·服务器·redis
三坛海会大神5558 小时前
LVS与Keepalived详解(二)LVS负载均衡实现实操
linux·负载均衡·lvs
東雪蓮☆8 小时前
深入理解 LVS-DR 模式与 Keepalived 高可用集群
linux·运维·服务器·lvs
博笙困了8 小时前
AcWing学习——差分
c++·算法
乌萨奇也要立志学C++8 小时前
【Linux】进程概念(二):进程查看与 fork 初探
linux·运维·服务器