Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yarn on Termux cannot install code-server 3.9.0 #2768

Closed
NotAlone777 opened this issue Feb 25, 2021 · 9 comments
Closed

yarn on Termux cannot install code-server 3.9.0 #2768

NotAlone777 opened this issue Feb 25, 2021 · 9 comments
Labels
waiting-for-info Waiting for more information from submitter
Projects

Comments

@NotAlone777
Copy link

NotAlone777 commented Feb 25, 2021

I tried to install code-server with yarn global add code-server in termux, but the following prompt appeared
image

@jsjoeio
Copy link
Contributor

jsjoeio commented Feb 26, 2021

Hi @NotAlone777 - sorry to here isn't not working as expected.

I was able to get code-server 3.9.0 installed on Termux following these steps (thanks to @GNUxeava).

Can you please try again?

  1. Update Termux by running apt update && apt upgrade
  2. Install required packages with apt install build-essential python git nodejs yarn
  3. Install code-server with yarn global add code-server
  4. Run code-server with code-server

See comment: #2758 (comment)

Possibly related:

@jsjoeio jsjoeio added the waiting-for-info Waiting for more information from submitter label Feb 26, 2021
@jsjoeio jsjoeio added this to Triage in code-server via automation Feb 26, 2021
@starryalley
Copy link

I'm having exactly the same issue as @NotAlone777 . Have you resolved this?

@jsjoeio
Copy link
Contributor

jsjoeio commented Mar 12, 2021

@starryalley did you try following these steps?

And if you don't mind, can you post your OS information:

  • Web Browser:
  • Local OS:
  • Remote OS:
  • Remote Architecture:
  • code-server --version:

I'm not sure why it's failing...You could also try yarn global remove code-server to start over.

@starryalley
Copy link

Yes I followed the exact step. I'm running on termux (latest on F-droid) on my Android 11 Samsung S21. code-server cannot be installed due to the same error seen by @NotAlone777 so it's not able to yarn global remove it.

Screenshot_20210313-113325_Termux

It's worth mentioning that I first installed termux from Google Play (the deprecated version) and followed the same step. No errors seen there and I can successfully run code-server without problem. Any idea?

@starryalley
Copy link

Never mind @jsjoeio , I think it's my setup issue.

After running
export LD_PRELOAD=${PREFIX}/lib/libtermux-exec.so as noted from here, I'm able to install code-server without issue now. Thanks.

@jsjoeio
Copy link
Contributor

jsjoeio commented Mar 15, 2021

Ahhh! Interesting. Glad you found that and were able to get it working. I installed Termux from Google Play too, maybe I have a newer version.

Thanks for posting the solution! 🙌

@NotAlone777 are you able to see if this solution works for you as well? Then we could close this issue.

@NotAlone777
Copy link
Author

Never mind @jsjoeio , I think it's my setup issue.

After running
export LD_PRELOAD=${PREFIX}/lib/libtermux-exec.so as noted from here, I'm able to install code-server without issue now. Thanks.

Thank you, according to your method, I successfully installed.

@NotAlone777
Copy link
Author

Ahhh! Interesting. Glad you found that and were able to get it working. I installed Termux from Google Play too, maybe I have a newer version.

Thanks for posting the solution! 🙌

@NotAlone777 are you able to see if this solution works for you as well? Then we could close this issue.

Thank you, I successfully installed it.👍

code-server automation moved this from Triage to Done Mar 16, 2021
@rajeshisgood
Copy link

Did any of you used armv7l ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting-for-info Waiting for more information from submitter
Projects
No open projects
Development

No branches or pull requests

4 participants