diff --git a/ecosystem/nodes/cpp/run-validator.mdx b/ecosystem/nodes/cpp/run-validator.mdx index 0ec6c04bd..d3aa6cb21 100644 --- a/ecosystem/nodes/cpp/run-validator.mdx +++ b/ecosystem/nodes/cpp/run-validator.mdx @@ -42,7 +42,7 @@ This guide explains how to run a validator TON node with MyTonCtrl from scratch. - Ubuntu 22.04 LTS or 24.04 LTS - Python 3.10 or higher -- Clang 16.0.0 or higher +- Clang 21.0.0 or higher ```bash # Check Ubuntu version @@ -71,22 +71,24 @@ clang --version ```bash # Check Clang version clang --version - # If version 16, skip the steps below. + # If version 21, skip the steps below. - # Required for Ubuntu 22.04. Update current Clang to clang-16 - sudo apt update - sudo apt install -y lsb-release wget software-properties-common gnupg - sudo wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add - + # Ubuntu 22.04 + sudo apt install lsb-release wget software-properties-common gnupg wget https://apt.llvm.org/llvm.sh chmod +x llvm.sh - sudo ./llvm.sh 16 clang + sudo ./llvm.sh 21 clang - # Change default Clang - sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-16 100 - sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-16 100 + # Ubuntu 24.04 + wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - + echo "deb http://apt.llvm.org/noble/ llvm-toolchain-noble-21 main" | sudo tee /etc/apt/sources.list.d/llvm.list + sudo apt -y update + sudo apt install -y clang-21 + + # optionally, change default clang + sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-21 200 + sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-21 200 - # Required for Ubuntu 24.04. Install clang-16 - sudo apt install -y clang-16 ```