Skip to content
This repository was archived by the owner on Jan 17, 2021. It is now read-only.

report "version `GLIBCXX_3.4.20' not found" #77

Open
fanzhi1977 opened this issue Apr 30, 2019 · 8 comments
Open

report "version `GLIBCXX_3.4.20' not found" #77

fanzhi1977 opened this issue Apr 30, 2019 · 8 comments

Comments

@fanzhi1977
Copy link

I use sshcode in Macos,want to install vscode server to centos 7.5,report the following error:
sent 1712186 bytes received 20 bytes 311310.18 bytes/sec total size is 955763838 speedup is 558.21 2019-04-30 19:23:14 INFO synced extensions in 7.344483678s 2019-04-30 19:23:14 INFO starting code-server... 2019-04-30 19:23:14 INFO Tunneling local port 26914 to remote port 36692 [email protected]'s password: /tmp/sshcode-code-server: /lib64/libstdc++.so.6: version GLIBCXX_3.4.20' not found (required by /tmp/sshcode-code-server)
/tmp/sshcode-code-server: /lib64/libstdc++.so.6: version GLIBCXX_3.4.21' not found (required by /tmp/sshcode-code-server) /tmp/sshcode-code-server: /lib64/libstdc++.so.6: version CXXABI_1.3.9' not found (required by /tmp/sshcode-code-server)
2019-04-30 19:23:30 FATAL error: code-server didn't start in time: context deadline exceeded`

@fanzhi1977
Copy link
Author

full information is below:
`✘ fanzhi@fanzhi-MBP  ~/vagrant/labs-elk-ansible  sshcode [email protected]
2019-04-30 19:23:04 INFO ensuring code-server is updated...
[email protected]'s password:

  • mkdir -p /root/.local/share/code-server

  • cd /tmp

  • wget -N https://codesrv-ci.cdr.sh/latest-linux
    --2019-04-30 19:23:06-- https://codesrv-ci.cdr.sh/latest-linux
    正在解析主机 codesrv-ci.cdr.sh (codesrv-ci.cdr.sh)... 104.27.132.26, 104.27.133.26, 2606:4700:30::681b:851a, ...
    正在连接 codesrv-ci.cdr.sh (codesrv-ci.cdr.sh)|104.27.132.26|:443... 已连接。
    已发出 HTTP 请求,正在等待回应... 200 OK
    来自 codesrv-ci.cdr.sh 的 Cookie 尝试将域设置为 codesrv-ci.cdr.sh
    长度:94698820 (90M) [application/octet-stream]
    远程文件比本地文件 “latest-linux” 更老 -- 不获取。

  • '[' -f /tmp/sshcode-code-server ']'

  • rm /tmp/sshcode-code-server

  • ln latest-linux /tmp/sshcode-code-server

  • chmod +x /tmp/sshcode-code-server
    2019-04-30 19:23:07 INFO syncing settings
    [email protected]'s password:
    building file list ... done

sent 329 bytes received 20 bytes 139.60 bytes/sec
total size is 207024 speedup is 593.19
2019-04-30 19:23:09 INFO synced settings in 2.478132549s
2019-04-30 19:23:09 INFO syncing extensions
[email protected]'s password:
building file list ... done

sent 1712186 bytes received 20 bytes 311310.18 bytes/sec
total size is 955763838 speedup is 558.21
2019-04-30 19:23:14 INFO synced extensions in 7.344483678s
2019-04-30 19:23:14 INFO starting code-server...
2019-04-30 19:23:14 INFO Tunneling local port 26914 to remote port 36692
[email protected]'s password:
/tmp/sshcode-code-server: /lib64/libstdc++.so.6: version GLIBCXX_3.4.20' not found (required by /tmp/sshcode-code-server) /tmp/sshcode-code-server: /lib64/libstdc++.so.6: version GLIBCXX_3.4.21' not found (required by /tmp/sshcode-code-server)
/tmp/sshcode-code-server: /lib64/libstdc++.so.6: version CXXABI_1.3.9' not found (required by /tmp/sshcode-code-server) 2019-04-30 19:23:30 FATAL error: code-server didn't start in time: context deadline exceeded

@SscSPs
Copy link
Contributor

SscSPs commented Apr 30, 2019

try updating the packages on your server

@sreya
Copy link
Collaborator

sreya commented Apr 30, 2019

That tends to happen if you're running on an old linux distro, if you're using Ubuntu try a version >= 16.04

@srinathgs
Copy link

We are left with no option but to use CentOS 7 for our development. It would be really good if this can be fixed.

@sreya
Copy link
Collaborator

sreya commented May 2, 2019

This is a problem with code-server not with sshcode itself, you could try opening an issue against that repo but I'm not sure it'll be fixed. I'll look into a workaround for Centos users

@sreya sreya closed this as completed May 2, 2019
@sreya sreya reopened this May 2, 2019
@sreya
Copy link
Collaborator

sreya commented May 2, 2019

I'll leave this open while I investigate

@xgdgsc
Copy link

xgdgsc commented Jul 17, 2019

Also seeing this trying to use on CentOS 7.

@bitfield
Copy link

It looks like the latest code-server actually works just fine! If I download https://github.com/cdr/code-server/releases/download/2.1523-vsc1.38.1/code-server2.1523-vsc1.38.1-linux-x86_64.tar.gz and copy the included code-server binary over the one downloaded by sshcode (~/.cache/sshcode/sshcode-server), then I'm able to use sshcode quite happily.

It only doesn't work with the version downloaded automatically by sshcode, so maybe updating that version will be enough to make sshcode work for CentOS users?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants