ish-app / ish

Linux shell for iOS
https://ish.app
Other
16.36k stars 858 forks source link

[BUG] Illegal byte sequence when running code-server #2199

Open ZreXoc opened 10 months ago

ZreXoc commented 10 months ago

I downloaded the 32 bit version of code-server with the following commands:

$ wget https://github.com/coder/code-server/releases/download/v3.5.0/code-server-3.5.0-linux-x86_64.tar.gz

$ tar -zxf code-server-3.5.0-linux-x86_64.tar.gz 

But when I run ./code-server-3.5.0-linux-x86_64/bin/code-server, I got:

/root/code-server-3.5.0-linux-x86_64/lib/node: line 1: can't create 쑗@�?�@8: Illegal byte sequence
/root/code-server-3.5.0-linux-x86_64/lib/node: line 2: syntax error: unexpected ")" 

How can I solve it? Or are there any other ways to install code-server?

ZreXoc commented 10 months ago

I made a mistake, it should be "illegal" instead of "legal" in the title of this issue. Can anyone fix it? Thx.

Mnpn commented 10 months ago

Hi! It looks like you've gotten an x86_64 (which is 64-bit) version :) As for the title, you should be able to change it by clicking the "Edit" button to the right of it.

cosinami commented 10 months ago

Node.js dropped 32-bit builds a while back, and, if I recall correctly, code-server relies on a version of Node.js that doesn't have a 32-bit version. It might still be possible to compile it from scratch, but I gave up after a couple of attempts due to me spending way too many hours chasing weird build errors and bugs while compiling a 32-bit version.