通过the website上的说明在Ubuntu 17.04上安装Visual Studio代码后,我尝试通过~$ code
通过命令行运行该程序,但是我收到以下错误消息:
/usr/share/code/bin/../code: error while loading shared libraries:
libgconf-2.so.4: cannot open shared object file: No such file or directory
如何运行Visual Studio代码?
答案 0 :(得分:3)
通过键入~$ sudo apt-get install libgconf-2-4
然后再次运行~$ code
,我可以通过安装所需的依赖项程序来运行它。这次Visual Studio代码打开没有任何问题。此答案基于here发布的类似问题的答案之一。