Provide binaries for Andriod

See original GitHub issue

Bug description

When I run prisma migrate dev --name init then i got a error

Unable to require(`/data/data/com.termux/files/home/api2/node_modules/@prisma/engines/libquery_engine-debian-openssl-1.1.x.so.node`)
 dlopen failed: "/data/data/com.termux/files/home/api2/node_modules/@prisma/engines/libquery_engine-debian-openssl-1.1.x.so.node" is for EM_X86_64 (62) instead of EM_AARCH64 (183)

How to reproduce

npx prisma migrate dev --name init

Expected behavior

No response

Prisma information

generator client {
  provider = "prisma-client-js"
}

datasource db {
  provider = "mysql"
  url      = env("DATABASE_URL")
}

model User {
  id Int @default(autoincrememt()) @id
  username String @db.VarChar(255) @unique
  email String @db.VarChar(255) @unique
  password String @db.VarChar(255)
}

Environment & setup

  • I am Using Termux(Android 11, Arch 64)
  • MySql
  • Node Version 16.12 .0

Prisma Version

3.3.0

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:16 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
ArnabXDcommented, Dec 2, 2021

@DebiprasadXD which app are you using as terminal in android and your android is rooted or not??

@pantharshit00 I can confirm this worked on my Termux (F-Droid Latest). No Root. Android 11

3reactions
aqrlncommented, Dec 2, 2021

@ArnabXD I don’t think “a fix” is a right way to frame this since it’s not a bug, it’s a feature request, or rather a request to support a new platform.

I don’t think we can provide binaries compiled specifically for Android any time soon, but binaries compiled for Linux theoretically might work without official support and guarantees.

The only platform we currently provide ARM64 binaries for is Debian — which won’t “just” work in Termux because of the dependencies on glibc and OpenSSL. That said, we should start providing statically linked binaries for ARM64 in the near future, and you may try testing them if they would work on Android+Termux natively.

For now, I would suggest trying a Debian chroot (if you have root access) or PRoot (if you don’t have root access). Other Linux distros might work too.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Zackptg5/Cross-Compiled-Binaries-Android
GitHub - Zackptg5/Cross-Compiled-Binaries-Android: A collection of (mostly) static cross compiled binaries for android.
Read more >
Android ABIs - NDK
The default behavior of the build system is to include the binaries for each ABI in a single APK, also known as a...
Read more >
Driver Binaries for Nexus and Pixel Devices
This page contains binary hardware support files for Nexus and Pixel phones and other devices that are available for users of the Android...
Read more >
Building Android binary
In this article, we briefly describe how to build Android binary using Android NDK cross-compiler on Debian Linux. The easiest way to build...
Read more >
apk - Where does Android store the binaries of the apps ...
In operating systems like windows there is a special folder like Program Files where the executables themselves are stored. But in android it's ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found