12

software I need to use is requiring clang 18 to be installed on my computer:

em++: warning: LLVM version for clang executable "/usr/bin/clang" appears incorrect (seeing "14.0", expected "18") [-Wversion-check]

After little bit of searching I've learned I should use the command sudo apt install clang-18 Running that has given me E: Unable to locate package clang-18.

The software is requiring clang 18 but package manager can't find it. Do I need to include third party repository or something ? I'm on Ubuntu 22.04 .

Thank you for assistance.

Mark
  • 355

1 Answers1

21

Using this guide you can install Clang 18.

In brief, there are 2 steps:

  1. Download and run the automatic installation script using the terminal

    wget -qO- https://apt.llvm.org/llvm.sh | bash -s -- 18
    

    During the process, it might ask to hit Enter to confirm adding the apt repository. Then, you may just wait until the process done.

  2. Verify by calling

    clang-18 --version
    

    and/or locate clang-18 to verify.

Chris_128
  • 1,273
graham
  • 13,061