Skip to content

Issue installing saxon-node #27

@mullim

Description

@mullim

I'm having trouble installing saxon-node on my machine

  • macOS 10.15.1 (Catalina)
  • Node 12.13.1 (Current LTS)

I've followed the instructions in the saxon-node documentation -
npm install saxon-node --fallback-to-build

export SAXONC_HOME=/path/to/saxon
export LD_LIBRARY_PATH=$SAXONC_HOME:$SAXONC_HOME/rt/lib/amd64/jetvm:$SAXONC_HOME/rt/lib/amd64:$LD_LIBRARY_PATH

Anytime I try and install it fails to find pre-built binaries which is fine, but it fails to build also. Here's the stack trace

> node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download: https://saxon-node.s3-us-west-2.amazonaws.com/v0.2.1/saxonXslt-v0.2.1-node-v72-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for saxon-node@0.2.1 and node@12.13.1 (node-v72 ABI) (falling back to source compile with node-gyp)
node-pre-gyp ERR! Tried to download: https://saxon-node.s3-us-west-2.amazonaws.com/v0.2.1/saxonXslt-v0.2.1-node-v72-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for saxon-node@0.2.1 and node@12.13.1 (node-v72 ABI) (falling back to source compile with node-gyp)
make: *** No rule to make target `Release/obj.target/saxonXslt//Users/mulligan/Desktop/saxon/saxoc-he/Saxon.C.API/SaxonCGlue.o', needed by `Release/saxonXslt.node'.  Stop.
make: *** No rule to make target `Release/obj.target/saxonXslt//Users/mulligan/Desktop/saxon/saxoc-he/Saxon.C.API/SaxonCGlue.o', needed by `Release/saxonXslt.node'.  Stop.
gypgyp ERR! build error
 ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/mulligan/.nvm/versions/node/v12.13.1/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:210:5)
gypgyp  ERR!ERR!  stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/mulligan/.nvm/versions/node/v12.13.1/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR!gyp  stack     at ChildProcess.emit (events.js:210:5)
ERR!gyp  ERR!System  Darwin 19.0.0
stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! command "/Users/mulligan/.nvm/versions/node/v12.13.1/bin/node" "/Users/mulligan/.nvm/versions/node/v12.13.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/Users/mulligan/Desktop/saxon/node_modules/saxon-node/lib/binding/saxonXslt.node" "--module_name=saxonXslt" "--module_path=/Users/mulligan/Desktop/saxon/node_modules/saxon-node/lib/binding"
gyp ERR! gypcwd  /Users/mulligan/Desktop/saxon/node_modules/saxon-node
gypERR!  ERR! Systemnode -v Darwin 19.0.0
 v12.13.1
gyp ERR! node-gyp -vgyp v5.0.5
 gypERR!  command "/Users/mulligan/.nvm/versions/node/v12.13.1/bin/node" "/Users/mulligan/.nvm/versions/node/v12.13.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/Users/mulligan/Desktop/saxon/node_modules/saxon-node/lib/binding/saxonXslt.node" "--module_name=saxonXslt" "--module_path=/Users/mulligan/Desktop/saxon/node_modules/saxon-node/lib/binding"
ERR!gyp  ERR!not ok cwd
 /Users/mulligan/Desktop/saxon/node_modules/saxon-node
gyp ERR! node -v v12.13.1
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/Users/mulligan/.nvm/versions/node/v12.13.1/bin/node /Users/mulligan/.nvm/versions/node/v12.13.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/mulligan/Desktop/saxon/node_modules/saxon-node/lib/binding/saxonXslt.node --module_name=saxonXslt --module_path=/Users/mulligan/Desktop/saxon/node_modules/saxon-node/lib/binding' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/Users/mulligan/Desktop/saxon/node_modules/saxon-node/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:210:5)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:1021:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
node-pre-gyp ERR! System Darwin 19.0.0
node-pre-gyp ERR! command "/Users/mulligan/.nvm/versions/node/v12.13.1/bin/node" "/Users/mulligan/Desktop/saxon/node_modules/saxon-node/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/mulligan/Desktop/saxon/node_modules/saxon-node
node-pre-gyp ERR! node -v v12.13.1
node-pre-gyp ERR! node-pre-gyp -v v0.6.30
node-pre-gyp ERR! not ok
Failed to execute '/Users/mulligan/.nvm/versions/node/v12.13.1/bin/node /Users/mulligan/.nvm/versions/node/v12.13.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/mulligan/Desktop/saxon/node_modules/saxon-node/lib/binding/saxonXslt.node --module_name=saxonXslt --module_path=/Users/mulligan/Desktop/saxon/node_modules/saxon-node/lib/binding' (1)
npm WARN saxon@1.0.0 No description
npm WARN saxon@1.0.0 No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! saxon-node@0.2.1 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the saxon-node@0.2.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Any help would be greatly appreciated
Thanks!

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