sudo apt-get install clang什么意思
时间: 2024-01-19 21:04:05 浏览: 24
这是一个Linux命令,用于安装Clang编译器,Clang是一种开源C++、Objective-C、Objective-C++和C语言编译器,它是LLVM编译器基础设施的一部分。安装Clang编译器可以让你在Linux系统上编译和运行C++、Objective-C和C代码。在执行这个命令前,需要使用sudo获取管理员权限。
相关问题
sudo apt-get install llvm clang
在Ubuntu下安装LLVM/Clang可以使用以下命令:
```shell
sudo apt-get install llvm clang
```
这个命令会安装LLVM和Clang的最新版本。LLVM是一个编译器基础设施,而Clang是一个C/C++/Objective-C编译器。安装完成后,你就可以使用LLVM和Clang来编译和调试你的代码了。
# 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
```
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)