I install youcompleteme with some problems. My system is ubuntu 14.04, as I went to the last step
./install.py --clang-completer there would be error as follow. I tried many times, the problems were all the same. Looking forward to your help, thx a lot.
-- [download 56% complete]
CMake Error at ycm/CMakeLists.txt:103 (file):
file DOWNLOAD HASH mismatch
for file: [/home/up_ding/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/../clang_archives/clang+llvm-3.7.0-x86_64-linux-gnu-ubuntu-14.04.tar.xz]
expected hash: [093a94ff8982ae78461f0d2604c98f6b454c15e2ef768d34c235c6676c336460]
actual hash: [a12a54f4e937e521a5e9ff790db0bf7a358f6dbc6febebcddab62c798ffc4d51]
xz: (stdin): Unexpected end of input
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
Using libclang to provide semantic completion for C/C++/ObjC
Using external libclang: /tmp/ycm_build.PHKbRb/clang+llvm-3.7.0-x86_64-linux-gnu-ubuntu-14.04/lib/libclang.so.3.7
-- Found PythonInterp: /usr/bin/python2 (found version "2.7.6")
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Configuring incomplete, errors occurred!
See also "/tmp/ycm_build.PHKbRb/CMakeFiles/CMakeOutput.log".
See also "/tmp/ycm_build.PHKbRb/CMakeFiles/CMakeError.log".
Traceback (most recent call last):
File "/home/up_ding/.vim/bundle/YouCompleteMe/third_party/ycmd/build.py", line 232, in
Main()
File "/home/up_ding/.vim/bundle/YouCompleteMe/third_party/ycmd/build.py", line 225, in Main
BuildYcmdLibs( args )
File "/home/up_ding/.vim/bundle/YouCompleteMe/third_party/ycmd/build.py", line 184, in BuildYcmdLibs
subprocess.check_call( [ 'cmake' ] + full_cmake_args )
File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '-G', 'Unix Makefiles', '-DUSE_CLANG_COMPLETER=ON', '/home/up_ding/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp']' returned non-zero exit status 1
The issue is that CMake does not complete the Clang download.
As I explained in issue #1640, you can directly download the Clang archive here and move it in the ~/.vim/bundle/YouCompleteMe/third_party/ycmd/clang_archives folder. Once this is done, run again the script install.py.
thx
THX!
thx
This command can fix the problem
./install.py --clang-completer --system-libclang
Clang link provided (at present time) returns 503:
http://llvm.org/releases/3.7.0/clang+llvm-3.7.0-x86_64-linux-gnu-ubuntu-14.04.tar.xz
Error 503 first byte timeout
first byte timeout
Guru Mediation:
Details: cache-sea1043-SEA 1514491748 3277676006
Varnish cache server
The Clang binaries have been moved to https://releases.llvm.org.
also, why would you want to download clang 3.7.0 ? ycmd currently uses 5.0.1
I downloaded the Clang archive and moved it to ~/.vim/bundle/YouCompleteMe/third_party/ycmd/clang_archives folder. Now, I have the tar.xz file there. But upon running the script install.py, it starts downloading the whole thing again. How to go about now?
What's the name of the archive? It must be the same as the one the script is downloading.
Actually it was a different one. It downloaded for ubuntu 14.04 but I moved the one for ubuntu 16.04.
Although, it is not an issue now since the download happened flawlessly the last time and it is up and running!
I try download file from llvm.org and move to the correct path , but don't work
Thank you!
This command can fix the problem
./install.py --clang-completer --system-libclang
my system id macOS 10.15.5 it works for me thanks!

Most helpful comment
This command can fix the problem