Help us understand the problem. What is going on with this article?

macOSでemacs irony-serverがコンパイルできない時の対処法

More than 3 years have passed since last update.


ironyはインストール後に自律的にローカルで動かすサーバをコンパイルしようとするが,macOS sierra, high sierraだと Could NOT find LibClang (missing: LIBCLANG_LIBRARY LIBCLANG_INCLUDE_DIR) というようなエラーが出てコンパイルがコケるのでwork aroundな対処法.



$ brew install llvm



$ cd $HOME/.emacs.d/elpa/irony-*/server
$ rm -fr CMakeCache.txt CMakeFiles/
$ mkdir -p build && cd build
$ cmake \
   -DLIBCLANG_INCLUDE_DIR\=/usr/local/opt/llvm/include/ \
   -DLIBCLANG_LIBRARY\=/usr/local/opt/llvm/lib/libclang.dylib \
   -DCMAKE_INSTALL_PREFIX\=$HOME/.emacs.d/irony/ ..
$ cmake --build . --use-stderr --config Release --target install
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away