yum install git xz gcc g++ gcc-c++
时间: 2023-08-26 15:05:31 浏览: 68
这是一条yum命令,用于安装git、xz、gcc、g++和gcc-c++软件包。在终端窗口中运行以下命令可以安装这些软件包:
```
sudo yum install git xz gcc g++ gcc-c++
```
该命令会自动下载并安装这些软件包及其依赖项。在安装过程中,可能需要输入管理员密码以确认安装。
相关问题
# How to Build libplctag The build system uses CMake to bootstrap a local build. On Linux. On Windows, this makes a Visual Studio project. CMake is also used to create a build on macOS. Note that as of version 2.0.22, pre-built binaries are included in the GitHub releases. # Instructions for Linux ## Install the compilers ### Debian/Ubuntu #### Install Build Essentials, CMake and Git ```text $> sudo apt-get install build-essential cmake git ``` Use your distro-specific instructions to install Clang if you want to use that compiler. ### RHEL/CentOS These instructions probably work with few modifications for Red Hat and Oracle Linux. Please file a GitHub ticket if they need changes for SUSE and other RPM-based distributions. #### Install Compilers, CMake and Git You need to become root or, if your Linux distribution supports it, run these commands with `sudo`. ```text $> yum install gcc gcc-c++ cmake git ```翻译
# 如何构建libplctag
构建系统使用CMake来启动本地构建。在Linux上,它使用CMake创建一个Visual Studio项目。在macOS上也使用CMake来创建构建。
请注意,从版本2.0.22开始,预编译的二进制文件已包含在GitHub发布中。
# Linux的说明
## 安装编译器
### Debian/Ubuntu
#### 安装构建必需品、CMake和Git
```text
$> sudo apt-get install build-essential cmake git
```
如果想使用Clang编译器,请按照特定于您发行版的说明进行安装。
### RHEL/CentOS
这些说明可能需要进行一些修改才能在Red Hat和Oracle Linux上正常工作。如果需要适应SUSE和其他基于RPM的发行版,请提交GitHub工单。
#### 安装编译器、CMake和Git
您需要以root身份登录,或者如果您的Linux发行版支持,则使用`sudo`运行这些命令。
```text
$> yum install gcc gcc-c++ cmake git
```
linux离线安装gcc c++
在Linux系统中离线安装GCC和C语言开发环境,可以按照以下步骤操作:
1. 下载GCC和C语言开发环境安装包,可以在官方网站或者第三方镜像站点进行下载。
2. 使用命令行工具进入安装包所在目录,执行解压命令,如:tar -zxvf gcc-c-dev.tar.gz。
3. 进入解压后的目录,执行编译命令,如:./configure && make && make install。
4. 安装完成后,可以使用命令gcc -v和make -v来检查GCC和make的版本信息,也可以使用gcc和make命令进行编译C语言程序。
需要注意的是,在离线安装过程中,可能会出现依赖库缺失的情况。如果出现依赖库缺失错误,可以使用yum命令或者手动下载安装缺失的依赖库。
另外,针对C语言开发环境,建议同时安装其它常用的开发工具和库,如:vim、git、SDL、SDL2等。