Closed tazerdev closed 3 years ago
IMHO, the correct solution to this problem is to provide a version of vscode that runs on centos 7 native. This can easily be done using the softwarecollections project (www.softwarecollections.org).
I was able to build the vscode open source using DevToolset-10 C++ compiler toolchain. This allows it to run native on centos-7 This is the docker file I used, and is on docker hub at kurtgo/vscode-centos7.
Devtoolset-10 is allows the entire thing to be built with compatible with centos7, using the latest gcc compiler.
I would suggest Devtoolset-7 considering the Ubuntu 18.04 CI they are treating as the primary linux target is GCC 7.4, but yes I absolutely agree that having an additional build route to maintain compatibility for Enterprise Linux 7 is not a big ask.
We have a n easy workaround on our side with:
Instead of installing it with yum package manager, we install it through snapcraft.io
First, install Snap on CentOS:
sudo yum install epel-release -y
sudo yum install snapd -y
sudo systemctl enable --now snapd.socket
sudo ln -s /var/lib/snapd/snap /snap
And then, install Visual Studio Code through Snap:
sudo snap install code --classic
/verified
I am more than happy to confirm that 1.60.0-insider
version works on CentOS 7! Many thanks!
thanks. just to be sure, now we must also wait that stable version of vscode will get the correction. right ?
Apologies that I missed the update. I won't be able to verify until Monday, but it's sufficient for me that others have been able to do so. I'll chime in once I am able to confirm.
/verified
Thanks for fixing this issue.
/verified
working now with 1.60
VS Code Version: 1.53.0 OS: RHEL7.9
Error: The terminal process failed to launch: A native exception occurred during launch (/lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/share/code/resources/app/node_modules.asar.unpacked/node-pty/build/Release/pty.node)).