Vim里下载完插件后,打开vim,可能遇到以下报错
- The ycmd server SHUT DOWN (restart with ‘:YcmRestartServer’). Unexpected exit code 1
没有安装server,进入其目录,C语言类的运行python3 install.py --clangd-completer --verbose
安装过程中可能遇到以下报错,
-
提示需要特别的python,
You must use a Python compiled with the --enable-shared flag. If using pyenv, you need to run the command: export PYTHON_CONFIGURE_OPTS="--enable-shared"
一般原因是有自己安装的python,可以which python
看一下路径,大概率是/usr/local/
下的,这个时候指定系统自带的即可解决。/usr/bin/python3 install.py --clang-completer --versbose
-
接下来可能遇到
Python headers are missing in /usr/include/pythonX
的报错
sudo apt install python3-dev
安装缺失的头文件