请教怎么安装ycmd

目前做了两步 1.从Valloric/ycmd,拉代码下来执行了./build.py --clang-completer 编译产生了ycm_core.so,但不知道这处和ycmd_server有什么关系

Please follow the guide and configure related information in your .spacemacs

rdnetto/YCM-Generator 执行时报错。

[huaming_li@localhost YCM-Generator]$ python config_gen.py ~/github/lytz/stockbs_svr/stockbs_svr/ --verbose Running cmake in ‘/tmp/tmpTd2icU’… $ cmake /home/huaming_li/github/lytz/stockbs_svr/stockbs_svr – The C compiler identification is unknown – The CXX compiler identification is unknown – Check for working C compiler: /mnt/share/YCM-Generator/fake-toolchain/Unix/clang – Check for working C compiler: /mnt/share/YCM-Generator/fake-toolchain/Unix/clang – broken CMake Error at /usr/local/share/cmake-3.6/Modules/CMakeTestCCompiler.cmake:61 (message): The C compiler “/mnt/share/YCM-Generator/fake-toolchain/Unix/clang” is not able to compile a simple test program. It fails with the following output: Change Dir: /tmp/tmpTd2icU/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" “cmTC_599d4/fast” /usr/bin/gmake -f CMakeFiles/cmTC_599d4.dir/build.make CMakeFiles/cmTC_599d4.dir/build gmake[1]: Entering directory /tmp/tmpTd2icU/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_599d4.dir/testCCompiler.c.o /mnt/share/YCM-Generator/fake-toolchain/Unix/clang -o CMakeFiles/cmTC_599d4.dir/testCCompiler.c.o -c /tmp/tmpTd2icU/CMakeFiles/CMakeTmp/testCCompiler.c clang-3.8: error: no input files gmake[1]: *** [CMakeFiles/cmTC_599d4.dir/testCCompiler.c.o] Error 1 gmake[1]: Leaving directory/tmp/tmpTd2icU/CMakeFiles/CMakeTmp’ gmake: *** [cmTC_599d4/fast] Error 2 CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:4 (project) – Configuring incomplete, errors occurred! See also “/tmp/tmpTd2icU/CMakeFiles/CMakeOutput.log”. See also “/tmp/tmpTd2icU/CMakeFiles/CMakeError.log”. Running make… $ make -i -j4 make: *** No targets specified and no makefile found. Stop. Cleaning up… Build completed in 0.44 sec Collected 0 relevant entries for C compilation (0 discarded). Collected 0 relevant entries for C++ compilation (0 discarded). () ERROR: No commands were logged to the build logs (C: /tmp/tmpHtrIgB, C++: /tmp/tmprSMJF4).

使用的虚拟机问题