1.3. 安装 LLVM Toolset
完成以下步骤以安装 LLVM Toolset,包括所有开发和调试工具以及依赖软件包。
先决条件
- 已安装所有可用的 Red Hat Enterprise Linux 更新。
流程
在 Red Hat Enterprise Linux 8 中,运行以下命令安装 LLVM-toolset
模块:
# yum module install llvm-toolset
重要
这不会在 Red Hat Enterprise Linux 8 上安装 LLDB 调试器或 python3-lit
软件包。要安装 LLDB 调试器和 python3-lit
软件包,请运行:
# yum install lldb python3-lit
在 Red Hat Enterprise Linux 9 上,运行以下命令安装 LLVM-toolset
软件包:
# dnf install llvm-toolset
重要
这不会在 Red Hat Enterprise Linux 9 上安装 LLDB 调试器或 python3-lit
软件包。要安装 LLDB 调试器和 python3-lit
软件包,请运行:
# dnf install lldb python3-lit