-
Notifications
You must be signed in to change notification settings - Fork 76
YouCompleteMe install all dependencies
https://github.com/ycm-core/YouCompleteMe/wiki/Full-Installation-Guide
使用YouCompleteMe安装全部支持的语言时,在默认无代理的CentOS机器上需要配置一些go、npm代理
yum install go
go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.io,direct
yum install npm
npm config set registry https://registry.npm.taobao.org
rust被墙无法直接成功安装,手动安装
curl -sSf https://sh.rustup.rs | sh
安装 java
yum install java
依赖 jdt.ls,下载太慢,其他方式下载 http://download.eclipse.org/jdtls/snapshots/jdt-language-server-0.57.0-202006172108.tar.gz 后 手动将 tar.gz 文件放到:~/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/eclipse.jdt.ls/target/cache/jdt-language-server-0.57.0-202006172108.tar.gz
启动 VIM 如果有 ERR 提示,可以在 tmp/ycmd_xxx_stderr_xxxx.log中查看
ERR: OSError: /lib64/libstdc++.so.6: version
GLIBCXX_3.4.20' not found`, 升级glibc,依赖升级make、gcc
升级make : 下载源码 http://ftp.gnu.org/gnu/make/ 编译安装
wget http://ftp.gnu.org/gnu/make/make-4.1.tar.gz
tar xzf make-4.1.tar.gz
cd make-4.1/
./configure
make
make install
mv /usr/bin/make /usr/bin/make.old
ln /usr/local/bin/make /usr/bin/make
make --version
升级 gcc 下载源码编译安装 http://ftp.gnu.org/gnu/gcc/
wget http://ftp.gnu.org/gnu/gcc/gcc-9.3.0/gcc-9.3.0.tar.gz
tar xzf gcc-9.3.0.tar.gz
cd gcc-9.3.0
./configure --disable-multilib
升级glibc 下载源码编译 http://ftp.gnu.org/gnu/glibc/
wget http://ftp.gnu.org/gnu/glibc/glibc-2.31.tar.gz
tar xzf glibc-2.31.tar.gz
cd glibc-2.31/
mkdir build; cd build
../glibc-2.31/configure --prefix=/usr/lib64/glibc-2.31
make && make install
The ycmd server SHUT DOWN 问题定位方法:https://github.com/ycm-core/YouCompleteMe/issues/914#issuecomment-39057888