You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/01/20 21:37:31 UTC

[GitHub] [pulsar-client-node] tschmidt64-SC commented on issue #134: Getting error while installing

tschmidt64-SC commented on issue #134:
URL: https://github.com/apache/pulsar-client-node/issues/134#issuecomment-763964768


   I'm getting this same issue on MacOS (Big Sur 11.1). 
   
   ```bash
   ➜   ✗ brew reinstall libpulsar
   ==> Downloading https://homebrew.bintray.com/bottles/libpulsar-2.7.0_1.big_sur.bottle.tar.gz
   Already downloaded: /Users/tschmidt/Library/Caches/Homebrew/downloads/10a657368d76e82fa87e89539a5f15bb16cbd032df49baf47b9712d3aa4fd8a0--libpulsar-2.7.0_1.big_sur.bottle.tar.gz
   ==> Reinstalling libpulsar
   ==> Pouring libpulsar-2.7.0_1.big_sur.bottle.tar.gz
   🍺  /usr/local/Cellar/libpulsar/2.7.0_1: 54 files, 19.9MB
   ➜   ✗ yarn
   yarn install v1.22.4
   [1/4] 🔍  Resolving packages...
   [2/4] 🚚  Fetching packages...
   [3/4] 🔗  Linking dependencies...
   [4/4] 🔨  Building fresh packages...
   [1/3] ⠐ core-js
   [2/3] ⠐ pulsar-client
   error /Users/tschmidt/skygrid/all-repos/skygrid-auth/node_modules/pulsar-client: Command failed.
   Exit code: 1
   Command: node-pre-gyp install --fallback-to-build
   Arguments:
   Directory: /Users/tschmidt/skygrid/all-repos/skygrid-auth/node_modules/pulsar-client
   Output:
   node-pre-gyp info it worked if it ends with ok
   node-pre-gyp info using node-pre-gyp@0.12.0
   node-pre-gyp info using node@12.18.1 | darwin | x64
   node-pre-gyp WARN Using request for node-pre-gyp https download
   node-pre-gyp info check checked for "/Users/tschmidt/skygrid/all-repos/skygrid-auth/node_modules/pulsar-client/build/Release/libpulsar.node" (not found)
   node-pre-gyp http GET https://pulsar.apache.org/docs/en/client-libraries-cpp/libpulsar-v1.1.0-node-v72-darwin-x64.tar.gz
   node-pre-gyp http 404 https://pulsar.apache.org/docs/en/client-libraries-cpp/libpulsar-v1.1.0-node-v72-darwin-x64.tar.gz
   node-pre-gyp WARN Tried to download(404): https://pulsar.apache.org/docs/en/client-libraries-cpp/libpulsar-v1.1.0-node-v72-darwin-x64.tar.gz
   node-pre-gyp WARN Pre-built binaries not found for pulsar-client@1.1.0 and node@12.18.1 (node-v72 ABI, unknown) (falling back to source compile with node-gyp)
   node-pre-gyp http 404 status code downloading tarball https://pulsar.apache.org/docs/en/client-libraries-cpp/libpulsar-v1.1.0-node-v72-darwin-x64.tar.gz
   gyp info it worked if it ends with ok
   gyp info using node-gyp@3.8.0
   gyp info using node@12.18.1 | darwin | x64
   gyp info ok
   gyp info it worked if it ends with ok
   gyp info using node-gyp@3.8.0
   gyp info using node@12.18.1 | darwin | x64
   gyp info spawn /usr/bin/python2.7
   gyp info spawn args [
   gyp info spawn args   '/Users/tschmidt/skygrid/all-repos/skygrid-auth/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   '/Users/tschmidt/skygrid/all-repos/skygrid-auth/node_modules/pulsar-client/build/config.gypi',
   gyp info spawn args   '-I',
   gyp info spawn args   '/Users/tschmidt/skygrid/all-repos/skygrid-auth/node_modules/node-gyp/addon.gypi',
   gyp info spawn args   '-I',
   gyp info spawn args   '/Users/tschmidt/.node-gyp/12.18.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=/Users/tschmidt/.node-gyp/12.18.1',
   gyp info spawn args   '-Dnode_gyp_dir=/Users/tschmidt/skygrid/all-repos/skygrid-auth/node_modules/node-gyp',
   gyp info spawn args   '-Dnode_lib_file=/Users/tschmidt/.node-gyp/12.18.1/<(target_arch)/node.lib',
   gyp info spawn args   '-Dmodule_root_dir=/Users/tschmidt/skygrid/all-repos/skygrid-auth/node_modules/pulsar-client',
   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 args ]
   gyp info ok
   gyp info it worked if it ends with ok
   gyp info using node-gyp@3.8.0
   gyp info using node@12.18.1 | darwin | x64
   gyp info spawn make
   gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
     CC(target) Release/obj.target/nothing/../node-addon-api/src/nothing.o
     LIBTOOL-STATIC Release/nothing.a
   Traceback (most recent call last):
     File "/Users/tschmidt/skygrid/all-repos/skygrid-auth/node_modules/pulsar-client/build/./gyp-mac-tool", line 611, in <module>
       sys.exit(main(sys.argv[1:]))
     File "/Users/tschmidt/skygrid/all-repos/skygrid-auth/node_modules/pulsar-client/build/./gyp-mac-tool", line 28, in main
       exit_code = executor.Dispatch(args)
     File "/Users/tschmidt/skygrid/all-repos/skygrid-auth/node_modules/pulsar-client/build/./gyp-mac-tool", line 43, in Dispatch
       return getattr(self, method)(*args[1:])
     File "/Users/tschmidt/skygrid/all-repos/skygrid-auth/node_modules/pulsar-client/build/./gyp-mac-tool", line 246, in ExecFilterLibtool
       if not libtool_re.match(line) and not libtool_re5.match(line):
   TypeError: cannot use a string pattern on a bytes-like object
   make: *** [Release/nothing.a] Error 1
   gyp ERR! build error
   gyp ERR! stack Error: `make` failed with exit code: 2
   gyp ERR! stack     at ChildProcess.onExit (/Users/tschmidt/skygrid/all-repos/skygrid-auth/node_modules/node-gyp/lib/build.js:262:23)
   gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
   gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
   gyp ERR! System Darwin 20.2.0
   gyp ERR! command "/Users/tschmidt/.nvm/versions/node/v12.18.1/bin/node" "/Users/tschmidt/skygrid/all-repos/skygrid-auth/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/Users/tschmidt/skygrid/all-repos/skygrid-auth/node_modules/pulsar-client/build/Release/libpulsar.node" "--module_name=libpulsar" "--module_path=/Users/tschmidt/skygrid/all-repos/skygrid-auth/node_modules/pulsar-client/build/Release" "--napi_version=6" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v72"
   gyp ERR! cwd /Users/tschmidt/skygrid/all-repos/skygrid-auth/node_modules/pulsar-client
   gyp ERR! node -v v12.18.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 '/Users/tschmidt/.nvm/versions/node/v12.18.1/bin/node /Users/tschmidt/skygrid/all-repos/skygrid-auth/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/tschmidt/skygrid/all-repos/skygrid-auth/node_modules/pulsar-client/build/Release/libpulsar.node --module_name=libpulsar --module_path=/Users/tschmidt/skygrid/all-repos/skygrid-auth/node_modules/pulsar-client/build/Release --napi_version=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v72' (1)
   node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/Users/tschmidt/skygrid/all-repos/skygrid-auth/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
   node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
   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:286:5)
   node-pre-gyp ERR! System Darwin 20.2.0
   node-pre-gyp ERR! command "/Users/tschmidt/.nvm/versions/node/v12.18.1/bin/node" "/Users/tschmidt/skygrid/all-repos/skygrid-auth/node_modules/pulsar-client/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
   node-pre-gyp ERR! cwd /Users/tschmidt/skygrid/all-repos/skygrid-auth/node_modules/pulsar-client
   node-pre-gyp ERR! node -v v12.18.1
   node-pre-gyp ERR! node-pre-gyp -v v0.12.0
   node-pre-gyp ERR! not ok
   Failed to execute '/Users/tschmidt/.nvm/versions/node/v12.18.1/bin/node /Users/tschmidt/skygrid/all-repos/skygrid-auth/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/tschmidt/skygrid/all-repos/skygrid-auth/node_modules/pulsar-client/build/Release/libpulsar.node --module_name=libpulsar
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org