Code-server: I keep getting this error when I try and run code-server

Created on 9 May 2019  路  7Comments  路  Source: cdr/code-server

./code-server: /lib64/libstdc++.so.6: version 'GLIBCXX_3.4.20' not found (required by ./code-server) ./code-server: /lib64/libstdc++.so.6: version 'GLIBCXX_3.4.21' not found (required by ./code-server) ./code-server: /lib64/libstdc++.so.6: version 'CXXABI_1.3.9' not found (required by ./code-server)

I keep getting this error when trying to run it.

question

Most helpful comment

I succeeded to run by upgrade /lib64/libstdc++.so.6 and /lib64/libc.so.6

wget http://download-ib01.fedoraproject.org/pub/fedora/linux/updates/29/Everything/x86_64/Packages/l/libstdc++-8.3.1-2.fc29.x86_64.rpm
wget http://download-ib01.fedoraproject.org/pub/fedora/linux/updates/28/Everything/x86_64/Packages/g/glibc-common-2.27-38.fc28.x86_64.rpm
wget http://download-ib01.fedoraproject.org/pub/fedora/linux/updates/28/Everything/x86_64/Packages/g/glibc-2.27-38.fc28.x86_64.rpm
wget http://download-ib01.fedoraproject.org/pub/fedora/linux/updates/28/Everything/x86_64/Packages/g/glibc-langpack-en-2.27-38.fc28.x86_64.rpm

rpm -ivh --force *.rpm

./code-server

rpm downloaded from https://pkgs.org/

All 7 comments

Same issue found in centos 7

I succeeded to run by upgrade /lib64/libstdc++.so.6 and /lib64/libc.so.6

wget http://download-ib01.fedoraproject.org/pub/fedora/linux/updates/29/Everything/x86_64/Packages/l/libstdc++-8.3.1-2.fc29.x86_64.rpm
wget http://download-ib01.fedoraproject.org/pub/fedora/linux/updates/28/Everything/x86_64/Packages/g/glibc-common-2.27-38.fc28.x86_64.rpm
wget http://download-ib01.fedoraproject.org/pub/fedora/linux/updates/28/Everything/x86_64/Packages/g/glibc-2.27-38.fc28.x86_64.rpm
wget http://download-ib01.fedoraproject.org/pub/fedora/linux/updates/28/Everything/x86_64/Packages/g/glibc-langpack-en-2.27-38.fc28.x86_64.rpm

rpm -ivh --force *.rpm

./code-server

rpm downloaded from https://pkgs.org/

CC @Multishifties for closure. Solved by workaround.

one workaround for centos/ubuntu distributions is to package code-server via conda and host it on anaconda's conda-forge, like electron.
then these issues with missing libraries will be gone for good.

I don't think using such is a good idea. Targeting across GLIBC instance can already be done via CI by providing multiple OSes instead.

I succeeded to run by upgrade /lib64/libstdc++.so.6 and /lib64/libc.so.6

wget http://download-ib01.fedoraproject.org/pub/fedora/linux/updates/29/Everything/x86_64/Packages/l/libstdc++-8.3.1-2.fc29.x86_64.rpm
wget http://download-ib01.fedoraproject.org/pub/fedora/linux/updates/28/Everything/x86_64/Packages/g/glibc-common-2.27-38.fc28.x86_64.rpm
wget http://download-ib01.fedoraproject.org/pub/fedora/linux/updates/28/Everything/x86_64/Packages/g/glibc-2.27-38.fc28.x86_64.rpm
wget http://download-ib01.fedoraproject.org/pub/fedora/linux/updates/28/Everything/x86_64/Packages/g/glibc-langpack-en-2.27-38.fc28.x86_64.rpm

rpm -ivh --force *.rpm

./code-server

rpm downloaded from https://pkgs.org/

Ran the commands above successfully, but now I get Aborted (core dumped).

My CentOS VPS doesn't support Docker, so I am trying to install this manually ...

Any advice on how to proceed? I can provide the dump file, if needed...

Please do NOT use Fedora packages on CentOS systems, you are risking your system with further breakages because CentOS is for production ready systems. Fedora is a rolling distribution that has no gurantee being production ready.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

oonqt picture oonqt  路  3Comments

grant picture grant  路  3Comments

balazssoltesz picture balazssoltesz  路  3Comments

lshamis picture lshamis  路  3Comments

infogulch picture infogulch  路  3Comments