In CentOS-7 promoter and install VS Code

 

VSCode installation

Installation platforms: CentOS7

installation method:

1. Downloading the official 64 (or 32) rpm package (official website address: https://code.visualstudio.com/Download )

2. In the rpm package directory and open the terminal, execute the following command:

sudo rpm -ivh code-1.35.1-1560350390.el7.x86_64.rpm

3. When suggested that the lack libXss.so, you need to install libXScrnSaver related dependencies, search for files and install:

sudo yum search libXScrnSaver

sudo yum install libXScrnSaver-devel.x86_64 libXScrnSaver.x86_64

4. After the installation is complete, re-execute the second step.

5. Start VS Code:

/usr/share/code/code  --user-data-dir

As reported the following error:

/usr/share/code/code: /lib64/libnss3.so: version `NSS_3.22' not found (required by /usr/share/code/code)
/usr/share/code/code: /lib64/libdbus-1.so.3: no version information available (required by /usr/share/code/code)

You need to install nss dependent, named as follows:

sudo yun install nss

6. When finished, re-run fifth step.

7. Successful start

 

Guess you like

Origin www.cnblogs.com/-Fly/p/11101978.html