tursodatabase / tursodatabase/libsql

Unable to install libsql in Termux: "Unsupported OS: android"

Open
#2,043 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
17.2k
Forks
531
Avg merge
1h 12m
Merged PRs (30d)
1

Description

I'm trying to get libsql installed on android. For some reason I can't figure out how to make NPM detect it as linux instead of android. I've tried using the --os flag, but that doesn't make a difference. Could the "android" os be added to package.json?

error code EBADPLATFORM
68 error notsup Unsupported platform for libsql@0.3.19: wanted {"os":"darwin,linux,win32","cpu":"x64,arm64,wasm32"} (current: {"os":"android","cpu":"arm64"})
69 error notsup Valid os:   darwin,linux,win32
69 error notsup Actual os:  android
69 error notsup Valid cpu:  x64,arm64,wasm32
69 error notsup Actual cpu: arm64

After editing package.json and applying overrides at various places, I've discovered that the root of the problem is with @neon/cli not supporting android-arm64, so I've opened an issue there as well. https://github.com/neon-bindings/neon-rs/issues/70

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the package.json platform declarations and the reported @neon/cli limitation for android-arm64. Read the linked neon-rs issue before changing libSQL, since the issue says the root problem is upstream. Done would require a supported dependency path and a successful libsql installation on Android.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, rust
Domain
databases, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.