Bootstrap err
VSCode extension rust-analyzer
shows follow errors:
ERROR [8/17/2020, 12:47:15 PM]: Bootstrap error [Error: Failed to execute /home/k8scat/.vscode-server/data/User/globalStorage/matklad.rust-analyzer/rust-analyzer-linux --version
at bootstrapServer (/home/k8scat/.vscode-server/extensions/matklad.rust-analyzer-0.2.281/out/src/main.js:16169:15)
at async bootstrap (/home/k8scat/.vscode-server/extensions/matklad.rust-analyzer-0.2.281/out/src/main.js:16112:18)
at async tryActivate (/home/k8scat/.vscode-server/extensions/matklad.rust-analyzer-0.2.281/out/src/main.js:16039:24)
at async activate (/home/k8scat/.vscode-server/extensions/matklad.rust-analyzer-0.2.281/out/src/main.js:16013:5)
at async Promise.all (index 0)]
Resolved
Execute the command in shell
$ /home/k8scat/.vscode-server/data/User/globalStorage/matklad.rust-analyzer/rust-analyzer-linux --version
# Output
/home/bheisler/.vscode-server/data/User/globalStorage/matklad.rust-analyzer/rust-analyzer-linux: /lib64/libc.so.6: version `GLIBC_2.18' not found (required by /home/bheisler/.vscode-server/data/User/globalStorage/matklad.rust-analyzer/rust-analyzer-linux)
So we can know that need to install some libs to resolve this problem.
wget http://mirrors.ustc.edu.cn/gnu/libc/glibc-2.18.tar.gz
tar zxf glibc-2.18.tar.gz
mkdir build
cd build
../configure --prefix=/usr
make -j4
sudo make install