Skip to content

Apple M1 - Symbol not found: _pg_query_init #16

@Newbie012

Description

@Newbie012

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

> [email protected] 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions