系统运维-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
相关推荐
Dream it possible!34 分钟前
LeetCode 热题 100_在排序数组中查找元素的第一个和最后一个位置(65_34_中等_C++)(二分查找)(一次二分查找+挨个搜索;两次二分查找)
c++·算法·leetcode
柠石榴40 分钟前
【练习】【回溯No.1】力扣 77. 组合
c++·算法·leetcode·回溯
王老师青少年编程41 分钟前
【GESP C++八级考试考点详细解读】
数据结构·c++·算法·gesp·csp·信奥赛
打不了嗝 ᥬ᭄1 小时前
Linux的权限
linux
落幕1 小时前
C语言-进程
linux·运维·服务器
深度Linux1 小时前
C++程序员内功修炼——Linux C/C++编程技术汇总
linux·项目实战·c/c++
澄澈天空2 小时前
C++ MFC添加RichEditControl控件后,程序启动失败
c++·mfc
Lzc7743 小时前
C++初阶——简单实现vector
c++·简单实现vector
风静如云3 小时前
OpenBMC:BmcWeb定义service
linux
leoufung3 小时前
VIM FZF 安裝和使用
linux·编辑器·vim