zhm / node-pg-query-native

PostgreSQL Query Parser for Node.js
BSD 3-Clause "New" or "Revised" License
29 stars 17 forks source link

Apple M1 - Symbol not found: _pg_query_init #16

Open Newbie012 opened 3 years ago

Newbie012 commented 3 years ago

Steps to repoduce:

  1. Use a mac with an M1 chip
  2. run npm install
  3. run npm test
  4. Get an error:
➜  node-pg-query-native git:(master) ✗ npm t

> pg-query-native@1.2.0 test /Users/eliya/temp/node-pg-query-native
> mocha

  pg-query
dyld: lazy symbol binding failed: Symbol not found: _pg_query_init
  Referenced from: /Users/eliya/temp/node-pg-query-native/build/Release/pg-query.node
  Expected in: flat namespace

dyld: Symbol not found: _pg_query_init
  Referenced from: /Users/eliya/temp/node-pg-query-native/build/Release/pg-query.node
  Expected in: flat namespace

Doesn't work in Rosetta as well