Sarcasm / irony-mode

A C/C++ minor mode for Emacs powered by libclang
GNU General Public License v3.0
901 stars 98 forks source link

Problem with M-x irony-install-server #567

Closed maxwillf closed 3 years ago

maxwillf commented 3 years ago

I was trying to setup irony-server for c++ autocompletion but i didn't previously use clang (only gcc/g++) so i just did

sudo apt install cmake && sudo apt install clang-10 && sudo apt install llvm

Then, i opened my emacs (doom-emacs) and did M-x irony-install-server which resulted in the following error message

CMake Error at /usr/lib/cmake/clang-10/ClangConfig.cmake:11 (find_package):
  Could not find a package configuration file provided by "LLVM" with any of
  the following names:

    LLVMConfig.cmake
    llvm-config.cmake

  Add the installation prefix of "LLVM" to CMAKE_PREFIX_PATH or set
  "LLVM_DIR" to a directory containing one of the above files.  If "LLVM"
  provides a separate development package or SDK, be sure it has been
  installed.
Call Stack (most recent call first):
  src/CMakeLists.txt:4 (find_package)

-- Configuring incomplete, errors occurred!
See also "/tmp/build-irony-server-1.4.0/CMakeFiles/CMakeOutput.log".

I've found similar closed issues but none of them helped me though