阅读 124

解决 VSCode Rust Analyzer Server 启动失败的问题

PS: Gopher into Rustacean.

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


作者:K8sCat
链接:https://juejin.cn/post/7056301144888328199


文章分类
代码人生
版权声明:本站是系统测试站点,无实际运营。本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 gxwowoo@163.com 举报,一经查实,本站将立刻删除。
相关推荐