Brendonovich / prisma-client-rust

Type-safe database access for Rust
https://prisma.brendonovich.dev
Apache License 2.0
1.75k stars 106 forks source link

[bug] Error: (query-engine binary) on MacOS M1 #359

Closed ejazahm3d closed 1 year ago

ejazahm3d commented 1 year ago

When I try to run any prisma command, it throws this error on MacOS M1. I have tried the same code on linux, and it generated the client successfully.

❯ cargo prisma generate
   Compiling prisma-cli v0.1.0 (/Users/ejazahmed/Desktop/Developer/rust/rust-sea/prisma-cli)
    Finished dev [unoptimized + debuginfo] target(s) in 2.10s
warning: the following packages contain code that will be rejected by a future version of Rust: bigint v4.4.3, connection-string v0.1.13
note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1`
     Running `target/debug/prisma-cli generate`
Environment variables loaded from .env
Prisma schema loaded from prisma/schema.prisma
Error: (query-engine binary)
Details:
[Context: getDmmf]

Prisma CLI Version : 4.8.0
Brendonovich commented 1 year ago

Sounds like a Rosetta problem, try running this first:

softwareupdate --install-rosetta --agree-to-license
ejazahm3d commented 1 year ago

@Brendonovich Thanks. That worked. :) I will close this.

mjm918 commented 12 months ago

Sounds like a Rosetta problem, try running this first:

softwareupdate --install-rosetta --agree-to-license
Screenshot 2023-07-12 at 9 36 34 AM

The solution isn't working for me. Any hints you can suggest ?