前端之家收集整理的这篇文章主要介绍了
CentOS7.2下安装VSCode1.6.1后启动失败,
前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
安装VSCode1.6.1后启动失败,首先查看下启动所依赖的库是否缺失,通过快捷方式可以找到可执行文件的位置为:/usr/share/code/code。
查看其依赖库:
[root@localhost applications]# ldd /usr/share/code/code
linux-vdso.so.1 => (0x00007ffdb31f7000)
libnode.so => /usr/share/code/libnode.so (0x00007f8e6880a000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f8e685d8000)
libgtk-x11-2.0.so.0 => /lib64/libgtk-x11-2.0.so.0 (0x00007f8e67f54000)
libgdk-x11-2.0.so.0 => /lib64/libgdk-x11-2.0.so.0 (0x00007f8e67c93000)
libatk-1.0.so.0 => /lib64/libatk-1.0.so.0 (0x00007f8e67a6c000)
libgio-2.0.so.0 => /lib64/libgio-2.0.so.0 (0x00007f8e676f6000)
libpangocairo-1.0.so.0 => /lib64/libpangocairo-1.0.so.0 (0x00007f8e674e9000)
libgdk_pixbuf-2.0.so.0 => /lib64/libgdk_pixbuf-2.0.so.0 (0x00007f8e672c2000)
libcairo.so.2 => /lib64/libcairo.so.2 (0x00007f8e66f9b000)
libpango-1.0.so.0 => /lib64/libpango-1.0.so.0 (0x00007f8e66d50000)
libfreetype.so.6 => /lib64/libfreetype.so.6 (0x00007f8e66aa9000)
libfontconfig.so.1 => /lib64/libfontconfig.so.1 (0x00007f8e6686d000)
libgobject-2.0.so.0 => /lib64/libgobject-2.0.so.0 (0x00007f8e6661d000)
libdbus-1.so.3 => /lib64/libdbus-1.so.3 (0x00007f8e663d4000)
libXi.so.6 => /lib64/libXi.so.6 (0x00007f8e661c4000)
libXcursor.so.1 => /lib64/libXcursor.so.1 (0x00007f8e65fb9000)
libXdamage.so.1 => /lib64/libXdamage.so.1 (0x00007f8e65db5000)
libXrandr.so.2 => /lib64/libXrandr.so.2 (0x00007f8e65bab000)
libXcomposite.so.1 => /lib64/libXcomposite.so.1 (0x00007f8e659a8000)
libXext.so.6 => /lib64/libXext.so.6 (0x00007f8e65795000)
libXfixes.so.3 => /lib64/libXfixes.so.3 (0x00007f8e6558f000)
libXrender.so.1 => /lib64/libXrender.so.1 (0x00007f8e65385000)
libX11.so.6 => /lib64/libX11.so.6 (0x00007f8e65046000)
libXtst.so.6 => /lib64/libXtst.so.6 (0x00007f8e64e40000)
libXss.so.1 => not found
libgconf-2.so.4 => /lib64/libgconf-2.so.4 (0x00007f8e64c0e000)
libgmodule-2.0.so.0 => /lib64/libgmodule-2.0.so.0 (0x00007f8e64a0a000)
librt.so.1 => /lib64/librt.so.1 (0x00007f8e64802000)
libglib-2.0.so.0 => /lib64/libglib-2.0.so.0 (0x00007f8e644ca000)
libnss3.so => /lib64/libnss3.so (0x00007f8e641a4000)
libnssutil3.so => /lib64/libnssutil3.so (0x00007f8e63f78000)
libsmime3.so => /lib64/libsmime3.so (0x00007f8e63d50000)
libnspr4.so => /lib64/libnspr4.so (0x00007f8e63b12000)
libffmpeg.so => /usr/share/code/libffmpeg.so (0x00007f8e6391d000)
libasound.so.2 => /lib64/libasound.so.2 (0x00007f8e63633000)
libcups.so.2 => /lib64/libcups.so.2 (0x00007f8e633ca000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f8e631c6000)
libexpat.so.1 => /lib64/libexpat.so.1 (0x00007f8e62f9b000)
libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f8e62c93000)
libm.so.6 => /lib64/libm.so.6 (0x00007f8e62991000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f8e6277a000)
libc.so.6 => /lib64/libc.so.6 (0x00007f8e623b8000)
/lib64/ld-linux-x86-64.so.2 (0x00007f8e69e4a000)
libpangoft2-1.0.so.0 => /lib64/libpangoft2-1.0.so.0 (0x00007f8e621a3000)
libXinerama.so.1 => /lib64/libXinerama.so.1 (0x00007f8e61f9f000)
libffi.so.6 => /lib64/libffi.so.6 (0x00007f8e61d97000)
libz.so.1 => /lib64/libz.so.1 (0x00007f8e61b80000)
libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f8e6195b000)
libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f8e61741000)
libgthread-2.0.so.0 => /lib64/libgthread-2.0.so.0 (0x00007f8e6153e000)
libharfbuzz.so.0 => /lib64/libharfbuzz.so.0 (0x00007f8e612e5000)
libpng15.so.15 => /lib64/libpng15.so.15 (0x00007f8e610ba000)
libpixman-1.so.0 => /lib64/libpixman-1.so.0 (0x00007f8e60e0c000)
libEGL.so.1 => /lib64/libEGL.so.1 (0x00007f8e60beb000)
libxcb-shm.so.0 => /lib64/libxcb-shm.so.0 (0x00007f8e609e7000)
libxcb-render.so.0 => /lib64/libxcb-render.so.0 (0x00007f8e607dc000)
libxcb.so.1 => /lib64/libxcb.so.1 (0x00007f8e605ba000)
libGL.so.1 => /lib64/libGL.so.1 (0x00007f8e60323000)
libdbus-glib-1.so.2 => /lib64/libdbus-glib-1.so.2 (0x00007f8e600fa000)
libplc4.so => /lib64/libplc4.so (0x00007f8e5fef5000)
libplds4.so => /lib64/libplds4.so (0x00007f8e5fcf0000)
libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x00007f8e5faa4000)
libkrb5.so.3 => /lib64/libkrb5.so.3 (0x00007f8e5f7be000)
libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x00007f8e5f58c000)
libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007f8e5f388000)
libssl.so.10 => /lib64/libssl.so.10 (0x00007f8e5f11a000)
libcrypto.so.10 => /lib64/libcrypto.so.10 (0x00007f8e5ed32000)
libavahi-common.so.3 => /lib64/libavahi-common.so.3 (0x00007f8e5eb25000)
libavahi-client.so.3 => /lib64/libavahi-client.so.3 (0x00007f8e5e913000)
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f8e5e6dc000)
libpcre.so.1 => /lib64/libpcre.so.1 (0x00007f8e5e47a000)
liblzma.so.5 => /lib64/liblzma.so.5 (0x00007f8e5e255000)
libgraphite2.so.3 => /lib64/libgraphite2.so.3 (0x00007f8e5e028000)
libX11-xcb.so.1 => /lib64/libX11-xcb.so.1 (0x00007f8e5de25000)
libxcb-dri2.so.0 => /lib64/libxcb-dri2.so.0 (0x00007f8e5dc20000)
libxcb-xfixes.so.0 => /lib64/libxcb-xfixes.so.0 (0x00007f8e5da18000)
libxcb-shape.so.0 => /lib64/libxcb-shape.so.0 (0x00007f8e5d813000)
libgbm.so.1 => /lib64/libgbm.so.1 (0x00007f8e5d607000)
libdrm.so.2 => /lib64/libdrm.so.2 (0x00007f8e5d3fa000)
libXau.so.6 => /lib64/libXau.so.6 (0x00007f8e5d1f5000)
libglapi.so.0 => /lib64/libglapi.so.0 (0x00007f8e5cfc7000)
libxcb-glx.so.0 => /lib64/libxcb-glx.so.0 (0x00007f8e5cdad000)
libxcb-dri3.so.0 => /lib64/libxcb-dri3.so.0 (0x00007f8e5cba9000)
libxcb-present.so.0 => /lib64/libxcb-present.so.0 (0x00007f8e5c9a6000)
libxcb-randr.so.0 => /lib64/libxcb-randr.so.0 (0x00007f8e5c798000)
libxcb-sync.so.1 => /lib64/libxcb-sync.so.1 (0x00007f8e5c590000)
libxshmfence.so.1 => /lib64/libxshmfence.so.1 (0x00007f8e5c38d000)
libXxf86vm.so.1 => /lib64/libXxf86vm.so.1 (0x00007f8e5c187000)
libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x00007f8e5bf77000)
libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00007f8e5bd73000)
libfreebl3.so => /lib64/libfreebl3.so (0x00007f8e5bb6f000)
发现缺少 libXss.so.1 => not found
查找下看看那个包含这个库文件:
[root@localhost applications]# yum search libXss
Loaded plugins: fastestmirror,langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.tuna.tsinghua.edu.cn
* extras: mirrors.tuna.tsinghua.edu.cn
* updates: mirrors.tuna.tsinghua.edu.cn
============================= N/S matched: libXss ==============================
libXScrnSaver.i686 : X.Org X11 libXss runtime library
libXScrnSaver.x86_64 : X.Org X11 libXss runtime library
Name and summary matches only,use "search all" for everything.
安装完libXScrnSaver即可。
[root@localhost applications]# yum install libXScrnSaver
Loaded plugins: fastestmirror,langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.tuna.tsinghua.edu.cn
* extras: mirrors.tuna.tsinghua.edu.cn
* updates: mirrors.tuna.tsinghua.edu.cn
Resolving Dependencies
--> Running transaction check
---> Package libXScrnSaver.x86_64 0:1.2.2-6.1.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
libXScrnSaver x86_64 1.2.2-6.1.el7 base 24 k
Transaction Summary
================================================================================
Install 1 Package
Total download size: 24 k
Installed size: 40 k
Is this ok [y/d/N]: y
Downloading packages:
libXScrnSaver-1.2.2-6.1.el7.x86_64.rpm | 24 kB 00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : libXScrnSaver-1.2.2-6.1.el7.x86_64 1/1
Verifying : libXScrnSaver-1.2.2-6.1.el7.x86_64 1/1
Installed:
libXScrnSaver.x86_64 0:1.2.2-6.1.el7
Complete!
原文链接:https://www.f2er.com/centos/380130.html