Debian

Fangrui Song 2019-02-02 09:33:19 +08:00
parent 2b1e8f2507
commit adf0304c93

@ -137,11 +137,18 @@ To build **ccls** on Arch Linux with system clang+llvm: `cmake -H. -BRelease -DU
`extra/clang` and `extra/llvm` provide `/usr/lib/{libclangAST.so,libLLVM*.a,libLLVM.so}`.
`libclangAST.so` needs `libLLVM.so` and there would be a conflict if `libLLVM*.a` (instead of `libLLVM.so`) are linked. See https://bugs.archlinux.org/task/60512
### Debian
```sh
apt install clang-7 libclang-7-dev
cmake -H. -BRelease -DCMAKE_PREFIX_PATH=/usr/lib/llvm-7 -DLLVM_ENABLE_RTTI=on
```
### Gentoo Linux
To build **ccls** on Gentoo Linux with system Clang+LLVM: `cmake -H. -BRelease -DLLVM_ENABLE_RTTI=on`
### Debian / Ubuntu
### Ubuntu
To build from source you'll need `sudo apt install zlib1g-dev ncurses-dev`