关注分享主机优惠活动
国内外VPS云服务器

安装CENTOS GCC的步骤是什么?

To install the GCC compiler on a CentOS system: -y

Verify installation:

gcc -version

offline installation instructions

Download the required GCC installation package: Access the official GNU GCC download page.

将安装程序包上传到CentOS服务器。

解压缩安装程序包:

tar -zxf gcc-10.2.0.2.0.tar.gz
cd cd cd gcc-10.2.0

下载并安装依赖套件。

./ conv/dropad_prerequises

配置gcc:

./ configure-enable-checking = repartion-enable-enable-languages = c,c ++ disable-disable-disable-multilib

GCC安装:

] 使用DevToolSet(Centos 7及以后)

DevToolset:

gcc:

gcc- version

(可选)配置configurationConfigurationConfiguration以永久使用系统环境变量: Ext/etc/ext/etp/profe/opt/opt/rh/devtoolset-9/

上述内容来自Internet,并不代表本网站上的所有视图! 关注我们:zhujipindao .com

未经允许不得转载:主机频道 » 安装CENTOS GCC的步骤是什么?

评论 抢沙发

评论前必须登录!