centos7 c++
时间: 2023-09-03 12:11:50 浏览: 114
在CentOS 7上安装C语言编译器可以通过以下步骤进行:
1. 首先,使用以下命令安装所需的依赖项:
yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel make cmake gcc gcc-c
2. 安装GCC 7,可以使用以下命令:
yum search devtoolset # 搜索GCC
sudo yum install devtoolset-7-gcc.x86_64 # 安装GCC 7
3. 启用GCC 7,可以使用以下命令:
scl enable devtoolset-7 # 启用GCC 7
这样,你就成功在CentOS 7上安装了C语言编译器,并且可以使用GCC 7进行编译了。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [centos更新vim8.0](https://blog.csdn.net/anmi8562/article/details/102038411)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [Centos7 打造 C/C++ 开发环境](https://blog.csdn.net/wcjlyj/article/details/122844189)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文