Code-server: unable to execute:No such file or directory

Created on 6 Jun 2019  路  6Comments  路  Source: cdr/code-server

  • code-server version:
    code-server1.1119-vsc1.33.1-musl-x64
  • OS Version:
    MacOS -- using AWS ubuntu server

Description

sudo ./code-server -p 80
sudo: unable to execute ./code-server: No such file or directory

Steps to Reproduce

Followed the steps using the AWS ubuntu setup. after unzipping the folder I was not able to execute the code-server command

bug

Most helpful comment

Please check if you have downloaded the correct archive [...]linux-x64.tar.gz and not the musl version. This will indeed fail with No such file or directory on Ubuntu because the musl build is for Alpine linux. If this does not help, check with ldd code-server which libraries are missing on your system.

All 6 comments

So what is the output of pwd && ls ?
This isn't a code-server bug ... I bet you're in the wrong directory or you did something wrong.

The same erro happens to me.

I'm using

  • Ubuntu
  • code-serve version 1.1156-vsc1.33.1

Please check if you have downloaded the correct archive [...]linux-x64.tar.gz and not the musl version. This will indeed fail with No such file or directory on Ubuntu because the musl build is for Alpine linux. If this does not help, check with ldd code-server which libraries are missing on your system.

@HenningCash you are right! Thank you very munch.

the musl build is for specific linux distro's such as alpine which us musl instead of the popular glibc

Please do NOT use musl builds for glibc distros. this will fail because that's how code server was linked during compile time.

Requesting closure since I think this is fixed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nol166 picture nol166  路  3Comments

sa7mon picture sa7mon  路  3Comments

tecosaur picture tecosaur  路  3Comments

justmao945 picture justmao945  路  3Comments

KSXGitHub picture KSXGitHub  路  3Comments