Blizzard / node-rdkafka

Node.js bindings for librdkafka
MIT License
2.1k stars 390 forks source link

Failed to Install node-rdkafka v2.15.0 #1019

Open Michaelangelo-GrizzlyBear opened 1 year ago

Michaelangelo-GrizzlyBear commented 1 year ago

Node version: 16.14.0 Npm version: 8.5.0

Ubuntu 22.04

My Errors:

npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated npm WARN deprecated plugin-log@0.1.0: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated npm WARN deprecated querystring@0.2.1: The querystring API is considered Legacy. new code should use the URLSearchParams API instead. npm WARN deprecated chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead. npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead. npm WARN deprecated superagent@7.1.6: Please downgrade to v7.1.5 if you need IE/ActiveXObject support OR upgrade to v8.0.0 as we no longer support IE and published an incorrect patch version (see https://github.com/visionmedia/superagent/issues/1731) npm ERR! code 1 npm ERR! path /home/michaelangelo/GDEC 2.0/sync-server-zalora/node_modules/node-rdkafka npm ERR! command failed npm ERR! command sh -c node-gyp rebuild npm ERR! make: Entering directory '/home/michaelangelo/GDEC 2.0/sync-server-zalora/node_modules/node-rdkafka/build' npm ERR! ACTION deps_librdkafka_gyp_librdkafka_target_configure deps/librdkafka/config.h npm ERR! Usage: ./configure [OPTIONS...] npm ERR! npm ERR! mklove configure script - mklove, not autoconf npm ERR! Copyright (c) 2014-2019 Magnus Edenhill - https://github.com/edenhill/mklove npm ERR! npm ERR! librdkafka - The Apache Kafka C/C++ library npm ERR! Copyright (c) 2012-2019 Magnus Edenhill npm ERR! npm ERR! Development options: npm ERR! --enable-devel Enable development asserts, checks, etc [n] npm ERR! --disable-devel Disable development asserts, checks, etc npm ERR! --enable-valgrind Enable in-code valgrind suppressions [n] npm ERR! --disable-valgrind Disable in-code valgrind suppressions npm ERR! --enable-refcnt-debug Enable refcnt debugging [n] npm ERR! --disable-refcnt-debug Disable refcnt debugging npm ERR! npm ERR! Feature options: npm ERR! --enable-lz4-ext Enable external LZ4 library support (builtin version 1.9.3) [y] npm ERR! --disable-lz4-ext Disable external LZ4 library support (builtin version 1.9.3) npm ERR! --enable-lz4 Deprecated: alias for --enable-lz4-ext [y] npm ERR! --disable-lz4 Deprecated: alias for --enable-lz4-ext npm ERR! --enable-regex-ext Enable external (libc) regex (else use builtin) [y] npm ERR! --disable-regex-ext Disable external (libc) regex (else use builtin) npm ERR! --enable-c11threads Enable detection of C11 threads support in libc [try] npm ERR! --disable-c11threads Disable detection of C11 threads support in libc npm ERR! --enable-syslog Enable logging to syslog [y] npm ERR! --disable-syslog Disable logging to syslog npm ERR! npm ERR! Honoured environment variables: npm ERR! CC, CPP, CXX, CFLAGS, CPPFLAGS, CXXFLAGS, LDFLAGS, LIBS, npm ERR! LD, NM, OBJDUMP, STRIP, RANLIB, PKG_CONFIG, PKG_CONFIG_PATH, npm ERR! STATICLIB=.../libname.a npm ERR! npm ERR! npm ERR! make: Leaving directory '/home/michaelangelo/GDEC 2.0/sync-server-zalora/node_modules/node-rdkafka/build' npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@8.4.1 npm ERR! gyp info using node@16.14.2 | linux | x64 npm ERR! gyp info find Python using Python version 3.10.6 found at "/usr/bin/python3" npm ERR! gyp info spawn /usr/bin/python3 npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args '/home/michaelangelo/.nvm/versions/node/v16.14.2/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py', npm ERR! gyp info spawn args 'binding.gyp', npm ERR! gyp info spawn args '-f', npm ERR! gyp info spawn args 'make', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/home/michaelangelo/GDEC 2.0/sync-server-zalora/node_modules/node-rdkafka/build/config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/home/michaelangelo/.nvm/versions/node/v16.14.2/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/home/michaelangelo/.cache/node-gyp/16.14.2/include/node/common.gypi', npm ERR! gyp info spawn args '-Dlibrary=shared_library', npm ERR! gyp info spawn args '-Dvisibility=default', npm ERR! gyp info spawn args '-Dnode_root_dir=/home/michaelangelo/.cache/node-gyp/16.14.2', npm ERR! gyp info spawn args '-Dnode_gyp_dir=/home/michaelangelo/.nvm/versions/node/v16.14.2/lib/node_modules/npm/node_modules/node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=/home/michaelangelo/.cache/node-gyp/16.14.2/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/home/michaelangelo/GDEC 2.0/sync-server-zalora/node_modules/node-rdkafka', npm ERR! gyp info spawn args '-Dnode_engine=v8', npm ERR! gyp info spawn args '--depth=.', npm ERR! gyp info spawn args '--no-parallel', npm ERR! gyp info spawn args '--generator-output', npm ERR! gyp info spawn args 'build', npm ERR! gyp info spawn args '-Goutput_dir=.' npm ERR! gyp info spawn args ] npm ERR! gyp info spawn make npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] npm ERR! /bin/sh: 1: 2.0/sync-server-zalora/node_modules/node-rdkafka/build/Release/lib.host:/home/michaelangelo/GDEC: not found npm ERR! mklove/modules/configure.base: line 1019: $MKL_OUTDBG: ambiguous redirect npm ERR! mklove/modules/configure.base: line 1019: $MKL_OUTDBG: ambiguous redirect npm ERR! downloading missing module builtin from http://github.com/edenhill/mklove/raw/master/modules/configure.builtin npm ERR! mklove/modules/configure.base: line 1045: $MKL_OUTDBG: ambiguous redirect npm ERR! mklove/modules/configure.base: line 1019: $MKL_OUTDBG: ambiguous redirect npm ERR! mklove/modules/configure.base: line 2126: /home/michaelangelo/GDEC: No such file or directory npm ERR! downloading missing module host from http://github.com/edenhill/mklove/raw/master/modules/configure.host npm ERR! mklove/modules/configure.base: line 1045: $MKL_OUTDBG: ambiguous redirect npm ERR! mklove/modules/configure.base: line 1019: $MKL_OUTDBG: ambiguous redirect npm ERR! mklove/modules/configure.base: line 2126: /home/michaelangelo/GDEC: No such file or directory npm ERR! downloading missing module cc from http://github.com/edenhill/mklove/raw/master/modules/configure.cc npm ERR! mklove/modules/configure.base: line 1045: $MKL_OUTDBG: ambiguous redirect npm ERR! mklove/modules/configure.base: line 1019: $MKL_OUTDBG: ambiguous redirect npm ERR! mklove/modules/configure.base: line 2126: /home/michaelangelo/GDEC: No such file or directory npm ERR! mklove/modules/configure.base: line 1019: $MKL_OUTDBG: ambiguous redirect npm ERR! downloading missing module cxx from http://github.com/edenhill/mklove/raw/master/modules/configure.cxx npm ERR! mklove/modules/configure.base: line 1045: $MKL_OUTDBG: ambiguous redirect npm ERR! mklove/modules/configure.base: line 1019: $MKL_OUTDBG: ambiguous redirect npm ERR! mklove/modules/configure.base: line 2126: /home/michaelangelo/GDEC: No such file or directory npm ERR! downloading missing module lib from http://github.com/edenhill/mklove/raw/master/modules/configure.lib npm ERR! mklove/modules/configure.base: line 1045: $MKL_OUTDBG: ambiguous redirect npm ERR! mklove/modules/configure.base: line 1019: $MKL_OUTDBG: ambiguous redirect npm ERR! mklove/modules/configure.base: line 2126: /home/michaelangelo/GDEC: No such file or directory npm ERR! downloading missing module pic from http://github.com/edenhill/mklove/raw/master/modules/configure.pic npm ERR! mklove/modules/configure.base: line 1045: $MKL_OUTDBG: ambiguous redirect npm ERR! mklove/modules/configure.base: line 1019: $MKL_OUTDBG: ambiguous redirect npm ERR! mklove/modules/configure.base: line 2126: /home/michaelangelo/GDEC: No such file or directory npm ERR! downloading missing module atomics from http://github.com/edenhill/mklove/raw/master/modules/configure.atomics npm ERR! mklove/modules/configure.base: line 1045: $MKL_OUTDBG: ambiguous redirect npm ERR! mklove/modules/configure.base: line 1019: $MKL_OUTDBG: ambiguous redirect npm ERR! mklove/modules/configure.base: line 2126: /home/michaelangelo/GDEC: No such file or directory npm ERR! downloading missing module good_cflags from http://github.com/edenhill/mklove/raw/master/modules/configure.good_cflags npm ERR! mklove/modules/configure.base: line 1045: $MKL_OUTDBG: ambiguous redirect npm ERR! mklove/modules/configure.base: line 1019: $MKL_OUTDBG: ambiguous redirect npm ERR! mklove/modules/configure.base: line 2126: /home/michaelangelo/GDEC: No such file or directory npm ERR! downloading missing module socket from http://github.com/edenhill/mklove/raw/master/modules/configure.socket npm ERR! mklove/modules/configure.base: line 1045: $MKL_OUTDBG: ambiguous redirect npm ERR! mklove/modules/configure.base: line 1019: $MKL_OUTDBG: ambiguous redirect npm ERR! mklove/modules/configure.base: line 2126: /home/michaelangelo/GDEC: No such file or directory npm ERR! downloading missing module zlib from http://github.com/edenhill/mklove/raw/master/modules/configure.zlib npm ERR! mklove/modules/configure.base: line 1045: $MKL_OUTDBG: ambiguous redirect npm ERR! mklove/modules/configure.base: line 1019: $MKL_OUTDBG: ambiguous redirect npm ERR! mklove/modules/configure.base: line 2126: /home/michaelangelo/GDEC: No such file or directory npm ERR! downloading missing module libzstd from http://github.com/edenhill/mklove/raw/master/modules/configure.libzstd npm ERR! mklove/modules/configure.base: line 1045: $MKL_OUTDBG: ambiguous redirect npm ERR! mklove/modules/configure.base: line 1019: $MKL_OUTDBG: ambiguous redirect npm ERR! mklove/modules/configure.base: line 2126: /home/michaelangelo/GDEC: No such file or directory npm ERR! downloading missing module libssl from http://github.com/edenhill/mklove/raw/master/modules/configure.libssl npm ERR! mklove/modules/configure.base: line 1045: $MKL_OUTDBG: ambiguous redirect npm ERR! mklove/modules/configure.base: line 1019: $MKL_OUTDBG: ambiguous redirect npm ERR! mklove/modules/configure.base: line 2126: /home/michaelangelo/GDEC: No such file or directory npm ERR! downloading missing module libsasl2 from http://github.com/edenhill/mklove/raw/master/modules/configure.libsasl2 npm ERR! mklove/modules/configure.base: line 1045: $MKL_OUTDBG: ambiguous redirect npm ERR! mklove/modules/configure.base: line 1019: $MKL_OUTDBG: ambiguous redirect npm ERR! mklove/modules/configure.base: line 2126: /home/michaelangelo/GDEC: No such file or directory npm ERR! downloading missing module libcurl from http://github.com/edenhill/mklove/raw/master/modules/configure.libcurl npm ERR! mklove/modules/configure.base: line 1045: $MKL_OUTDBG: ambiguous redirect npm ERR! mklove/modules/configure.base: line 1019: $MKL_OUTDBG: ambiguous redirect npm ERR! mklove/modules/configure.base: line 2126: /home/michaelangelo/GDEC: No such file or directory npm ERR! downloading missing module parseversion from http://github.com/edenhill/mklove/raw/master/modules/configure.parseversion npm ERR! mklove/modules/configure.base: line 1045: $MKL_OUTDBG: ambiguous redirect npm ERR! mklove/modules/configure.base: line 1019: $MKL_OUTDBG: ambiguous redirect npm ERR! mklove/modules/configure.base: line 2126: /home/michaelangelo/GDEC: No such file or directory npm ERR! Unknown option prefix=/home/michaelangelo/GDEC 2.0/sync-server-zalora/node_modules/node-rdkafka/build/deps npm ERR! mklove/modules/configure.base: line 1028: $MKL_OUTDBG: ambiguous redirect npm ERR! make: *** No rule to make target '../deps/librdkafka/config.h', needed by '11a9e3388a67e1ca5c31c1d8da49cb6d2714eb41.intermediate'. Stop. npm ERR! gyp ERR! build error npm ERR! gyp ERR! stack Error: make failed with exit code: 2 npm ERR! gyp ERR! stack at ChildProcess.onExit (/home/michaelangelo/.nvm/versions/node/v16.14.2/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:526:28) npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) npm ERR! gyp ERR! System Linux 5.19.0-42-generic npm ERR! gyp ERR! command "/home/michaelangelo/.nvm/versions/node/v16.14.2/bin/node" "/home/michaelangelo/.nvm/versions/node/v16.14.2/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" npm ERR! gyp ERR! cwd /home/michaelangelo/GDEC 2.0/sync-server-zalora/node_modules/node-rdkafka npm ERR! gyp ERR! node -v v16.14.2 npm ERR! gyp ERR! node-gyp -v v8.4.1 npm ERR! gyp ERR! not ok