vscode 的插件cpptools 0.9.3 需要glibc 2.18的版本,但是Centos 7 下没有这个版本的GLIBC,所以导致链接库丢失,后台服务不能正常运行。按以下步骤操作可修复此问题。

With the 0.9.3 it seems that both GLIBC_2.18 & GLIBC_2.17 is required.
However if you want a workaround try this:

  1. wget http://ftp.gnu.org/gnu/glibc/glibc-2.18.tar.xz
  2. tar xvf glibc-2.18.tar.xz
  3. cd glibc-2.18
  4. mkdir build
  5. cd build
  6. ../configure --prefix=/opt/glibc-2.18
  7. sudo make install
  8. Create a bash script file called Microsoft.VSCode.CPP.Extension.linux.sh in "~/.vscode/extension/ms-vscode.cpptools-0.9.3/bin" with the following contents...
#!/bin/bash
/opt/glibc-2.18/lib/ld-linux-x86-64.so.2 --library-path /opt/glibc-2.18/lib:/lib64:/usr/local/lib64 ~/.vscode/extensions/ms-vscode.cpptools-0.9.3/bin/Microsoft.VSCode.CPP.Extension.linux
  1. chmod a+x Microsoft.VSCode.CPP.Extension.linux.sh
    You can try to start it on the comand line ./Microsoft.VSCode.CPP.Extension.linux.sh
    If it starts silently without errors, then you are fine, otherwise add missing dependencies to the --library-path option in the script,
    if not you will see something like this,
./Microsoft.VSCode.CPP.Extension.linux: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.18' not found (required by ./Microsoft.VSCode.CPP.Extension.linux)
./Microsoft.VSCode.CPP.Extension.linux: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.17' not found (required by ./Microsoft.VSCode.CPP.Extension.linux)
  1. Modify "~/.vscode/extensions/ms-vscode.cpptools-0.9.3/out/src/LanguageServer/C_Cpp.js"
    Change the following line from " extensionsProcessName += '.linux'; " to " extensionProcessName += '.linux.sh'; "

最新文章

  1. System系统类常用方法
  2. Understand Lambda Expressions in 3 minutes(翻译)
  3. ASP.NET MVC自定义路由 - 实现IRouteConstraint限制控制器名(转载)
  4. Using Git Submodules
  5. Vim+Taglist+Ctags(源码阅读).
  6. Andriod中绘(画)图----Canvas的使用具体解释
  7. Oracle查字符集查版本号
  8. webapp在Android中点击链接的时候会有淡蓝色的遮罩层
  9. webstrom管理git
  10. MySQL数据库设计总结
  11. (一)一起学 Java Collections Framework 源码之 概述
  12. KFold,StratifiedKFold k折交叉切分
  13. docker私库Harbor部署(转载)
  14. 开源框架bboss单点登录demo跑起来
  15. MybatisGenerator生成的mapper 少了识别主键的方法 byPrimaryKey()
  16. json&pickle&shelve模块
  17. proposal-cancelable-promises
  18. 《MarkMark学习笔记学习笔记》html学习笔记
  19. 【ASP.NET】System.Web.Routing - StopRoutingHandler Class
  20. Apache服务器下phalcon项目报Mod-Rewrite is not enabled问题

热门文章

  1. 江西理工大学南昌校区排名赛 E: 单身狗的种树游戏
  2. BZOJ - 3489 KD树 范围计数 空间思维转换
  3. 精神AC合集 2018.4.3
  4. PIE SDK栅格增强控制
  5. PIE SDK波段运算
  6. 多重if 与 switch case的区别
  7. Flask中的的SQLAlchemy
  8. moment.js(moment-in-node.js)获取本月最后一天 不指定
  9. 读《NoSQL精粹》前三章有感
  10. Python远程连接Windows,并调用Windows命令(类似于paramiko)