1.4. LLVM Toolset のインストール
すべての開発ツールおよびデバッグツールと依存パッケージを含む LLVM Toolset をインストールするには、以下の手順を実行します。
前提条件
-
Red Hat Enterprise Linux 7 で、Red Hat Developer Tools コンテンツセットへのアクセスを提供するサブスクリプションがシステムに割り当てられている。
サブスクリプションを割り当てるには、Red Hat Enterprise Linux 7 の LLVM Toolset へのアクセス を参照してください。 - 利用可能な Red Hat Enterprise Linux のすべての更新がインストールされている。
手順
Red Hat Enterprise Linux 7 に、llvm-toolset-15.0 コレクションをインストールします。
# yum install llvm-toolset-15.0
重要
LLDB デバッガーは Red Hat Enterprise Linux 7 にインストールされません。LLDB デバッガーをインストールするには、次を実行します。
# yum install llvm-toolset-15.0-lldb
Red Hat Enterprise Linux 8 で、以下のコマンドを実行して llvm-toolset モジュールをインストールします。
# yum module install llvm-toolset
重要
LLDB デバッガーまたは python3-lit パッケージは Red Hat Enterprise Linux 8 にインストールされません。LLDB デバッガーと python3-lit パッケージをインストールするには、次を実行します。
# yum install lldb python3-lit
Red Hat Enterprise Linux 9 で、以下のコマンドを実行して llvm-toolset パッケージをインストールします。
# dnf install llvm-toolset
重要
LLDB デバッガーまたは python3-lit パッケージは Red Hat Enterprise Linux 9 にインストールされません。LLDB デバッガーと python3-lit パッケージをインストールするには、次を実行します。
# dnf install lldb python3-lit