vunb / node-crfsuite

A nodejs binding for crfsuite
MIT License
14 stars 11 forks source link

Module fails to install using Node JS 10 LTS #11

Closed SimonBoorer closed 5 years ago

SimonBoorer commented 5 years ago

Command run: npm install

Expected behaviour: module is installed successfully

Actual behaviour:

The install fails with the error:

make: *** No rule to make target `Release/obj.target/crfsuite/liblbfgs/lib/lbfgs.o', needed by `Release/obj.target/crfsuite.node'.  Stop.

Output from /usr/local/bin/node /home/sboorer/src/node-crfsuite/node_modules/.bin/node-pre-gyp install --fallback-to-build:

node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp@0.6.39
node-pre-gyp info using node@10.14.1 | linux | x64
node-pre-gyp info check checked for "/home/sboorer/src/node-crfsuite/lib/binding/crfsuite.node" (not found)
node-pre-gyp http GET https://github.com/vunb/node-crfsuite/releases/download/0.9.4/crfsuite-v0.9.4-node-v64-linux-x64.tar.gz
node-pre-gyp http 404 https://github.com/vunb/node-crfsuite/releases/download/0.9.4/crfsuite-v0.9.4-node-v64-linux-x64.tar.gz
node-pre-gyp ERR! Tried to download(404): https://github.com/vunb/node-crfsuite/releases/download/0.9.4/crfsuite-v0.9.4-node-v64-linux-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for crfsuite@0.9.4 and node@10.14.1 (node-v64 ABI, glibc) (falling back to source compile with node-gyp) 
node-pre-gyp http 404 status code downloading tarball https://github.com/vunb/node-crfsuite/releases/download/0.9.4/crfsuite-v0.9.4-node-v64-linux-x64.tar.gz 
node-pre-gyp ERR! Tried to download(undefined): https://github.com/vunb/node-crfsuite/releases/download/0.9.4/crfsuite-v0.9.4-node-v64-linux-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for crfsuite@0.9.4 and node@10.14.1 (node-v64 ABI, glibc) (falling back to source compile with node-gyp) 
node-pre-gyp http Connection closed while downloading tarball file 
gyp info it worked if it ends with ok
gyp info using node-gyp@3.8.0
gyp info using node@10.14.1 | linux | x64
gyp info it worked if it ends with ok
gyp info using node-gyp@3.8.0
gyp info using node@10.14.1 | linux | x64
gyp info ok 
gyp info ok 
gyp info it worked if it ends with ok
gyp info using node-gyp@3.8.0
gyp info using node@10.14.1 | linux | x64
gyp info it worked if it ends with ok
gyp info using node-gyp@3.8.0
gyp info using node@10.14.1 | linux | x64
gyp info spawn /usr/bin/python2
gyp info spawn args [ '/home/sboorer/src/node-crfsuite/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/home/sboorer/src/node-crfsuite/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/sboorer/src/node-crfsuite/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/sboorer/.node-gyp/10.14.1/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/home/sboorer/.node-gyp/10.14.1',
gyp info spawn args   '-Dnode_gyp_dir=/home/sboorer/src/node-crfsuite/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/home/sboorer/.node-gyp/10.14.1/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/home/sboorer/src/node-crfsuite',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp info spawn /usr/bin/python2
gyp info spawn args [ '/home/sboorer/src/node-crfsuite/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/home/sboorer/src/node-crfsuite/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/sboorer/src/node-crfsuite/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/sboorer/.node-gyp/10.14.1/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/home/sboorer/.node-gyp/10.14.1',
gyp info spawn args   '-Dnode_gyp_dir=/home/sboorer/src/node-crfsuite/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/home/sboorer/.node-gyp/10.14.1/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/home/sboorer/src/node-crfsuite',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp info ok 
gyp info ok 
gyp info it worked if it ends with ok
gyp info using node-gyp@3.8.0
gyp info using node@10.14.1 | linux | x64
gyp info it worked if it ends with ok
gyp info using node-gyp@3.8.0
gyp info using node@10.14.1 | linux | x64
make: Entering directory `/home/sboorer/src/node-crfsuite/build'
make: *** No rule to make target `Release/obj.target/crfsuite/liblbfgs/lib/lbfgs.o', needed by `Release/obj.target/crfsuite.node'.  Stop.
make: Leaving directory `/home/sboorer/src/node-crfsuite/build'
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/sboorer/src/node-crfsuite/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Linux 3.10.0-957.1.3.el7.x86_64
gyp ERR! command "/usr/local/bin/node" "/home/sboorer/src/node-crfsuite/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/sboorer/src/node-crfsuite/lib/binding/crfsuite.node" "--module_name=crfsuite" "--module_path=/home/sboorer/src/node-crfsuite/lib/binding"
gyp ERR! cwd /home/sboorer/src/node-crfsuite
gyp ERR! node -v v10.14.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /home/sboorer/src/node-crfsuite/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/sboorer/src/node-crfsuite/lib/binding/crfsuite.node --module_name=crfsuite --module_path=/home/sboorer/src/node-crfsuite/lib/binding' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/home/sboorer/src/node-crfsuite/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:962:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
node-pre-gyp ERR! System Linux 3.10.0-957.1.3.el7.x86_64
node-pre-gyp ERR! command "/usr/local/bin/node" "/home/sboorer/src/node-crfsuite/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /home/sboorer/src/node-crfsuite
node-pre-gyp ERR! node -v v10.14.1
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok 
Failed to execute '/usr/local/bin/node /home/sboorer/src/node-crfsuite/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/sboorer/src/node-crfsuite/lib/binding/crfsuite.node --module_name=crfsuite --module_path=/home/sboorer/src/node-crfsuite/lib/binding' (1)
make: Entering directory `/home/sboorer/src/node-crfsuite/build'
make: *** No rule to make target `Release/obj.target/crfsuite/liblbfgs/lib/lbfgs.o', needed by `Release/obj.target/crfsuite.node'.  Stop.
make: Leaving directory `/home/sboorer/src/node-crfsuite/build'
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/sboorer/src/node-crfsuite/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Linux 3.10.0-957.1.3.el7.x86_64
gyp ERR! command "/usr/local/bin/node" "/home/sboorer/src/node-crfsuite/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/sboorer/src/node-crfsuite/lib/binding/crfsuite.node" "--module_name=crfsuite" "--module_path=/home/sboorer/src/node-crfsuite/lib/binding"
gyp ERR! cwd /home/sboorer/src/node-crfsuite
gyp ERR! node -v v10.14.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 

As this is now the current LTS version is there any plans to add support for it? I noticed your comment in: https://github.com/vunb/vntk/issues/42