Skip to content

Instantly share code, notes, and snippets.

@kevindashgit
Created February 7, 2019 07:52
Show Gist options
  • Save kevindashgit/1666fdc863e3354896c3e01c55bc3499 to your computer and use it in GitHub Desktop.
Save kevindashgit/1666fdc863e3354896c3e01c55bc3499 to your computer and use it in GitHub Desktop.
npm i -S --verbose ibm_db2
Downloading and extraction of DB2 ODBC CLI Driver completed successfully ...
c++ '-DNODE_GYP_MODULE_NAME=odbc_bindings' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/Users/username/.node-gyp/11.9.0/include/node -I/Users/username/.node-gyp/11.9.0/src -I/Users/username/.node-gyp/11.9.0/deps/openssl/config -I/Users/username/.node-gyp/11.9.0/deps/openssl/openssl/include -I/Users/username/.node-gyp/11.9.0/deps/uv/include -I/Users/username/.node-gyp/11.9.0/deps/zlib -I/Users/username/.node-gyp/11.9.0/deps/v8/include -I../../nan -I/Users/username/temp/try-db2/node_modules/ibm_db2/installer/clidriver/include -Os -gdwarf-2 -mmacosx-version-min=10.7 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=gnu++1y -stdlib=libc++ -fno-rtti -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/odbc_bindings/src/odbc.o.d.raw -c -o Release/obj.target/odbc_bindings/src/odbc.o ../src/odbc.cpp
{ Error: Command failed: node-gyp configure build --IS_DOWNLOADED=true --IBM_DB_HOME="$IBM_DB_HOME"
gyp info it worked if it ends with ok
gyp verb cli [ '/Users/username/.nvm/versions/node/v11.9.0/bin/node',
gyp verb cli '/Users/username/.nvm/versions/node/v11.9.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli 'configure',
gyp verb cli 'build',
gyp verb cli '--IS_DOWNLOADED=true',
gyp verb cli '--IBM_DB_HOME=/Users/username/temp/try-db2/node_modules/ibm_db2/installer/clidriver' ]
gyp info using node-gyp@3.8.0
gyp info using node@11.9.0 | darwin | x64
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` succeeded python2 /Users/username/.pyenv/shims/python2
gyp verb check python version `/Users/username/.pyenv/shims/python2 -c "import sys; print "2.7.15
gyp verb check python version .%s.%s" % sys.version_info[:3]; "` returned: %j
gyp verb get node dir no --target version specified, falling back to host node version: 11.9.0
gyp verb command install [ '11.9.0' ]
gyp verb install input version string "11.9.0"
gyp verb install installing version: 11.9.0
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 11.9.0
gyp verb build dir attempting to create "build" dir: /Users/username/temp/try-db2/node_modules/ibm_db2/build
gyp verb build dir "build" dir needed to be created? /Users/username/temp/try-db2/node_modules/ibm_db2/build
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: /Users/username/temp/try-db2/node_modules/ibm_db2/build/config.gypi
gyp verb config.gypi checking for gypi file: /Users/username/temp/try-db2/node_modules/ibm_db2/config.gypi
gyp verb common.gypi checking for gypi file: /Users/username/temp/try-db2/node_modules/ibm_db2/common.gypi
gyp verb gyp gyp format was not specified; forcing "make"
gyp info spawn /Users/username/.pyenv/shims/python2
gyp info spawn args [ '/Users/username/.nvm/versions/node/v11.9.0/lib/node_modules/npm/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/username/temp/try-db2/node_modules/ibm_db2/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/username/.nvm/versions/node/v11.9.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/username/.node-gyp/11.9.0/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/username/.node-gyp/11.9.0',
gyp info spawn args '-Dnode_gyp_dir=/Users/username/.nvm/versions/node/v11.9.0/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/Users/username/.node-gyp/11.9.0/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/Users/username/temp/try-db2/node_modules/ibm_db2',
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 verb command build []
gyp verb build type Release
gyp verb architecture x64
gyp verb node dev dir /Users/username/.node-gyp/11.9.0
gyp verb `which` succeeded for `make` /usr/bin/make
gyp info spawn make
gyp info spawn args [ 'V=1', 'BUILDTYPE=Release', '-C', 'build' ]
dyld: Library not loaded: /usr/local/lib/libwep
Referenced from: /usr/bin/c++
Reason: no suitable image found. Did find:
/usr/local/lib/libwep: code signature in (/usr/local/lib/libwep) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.
/usr/local/lib/libwep: stat() failed with errno=1
make: *** [Release/obj.target/odbc_bindings/src/odbc.o] Abort trap: 6
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/username/.nvm/versions/node/v11.9.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:197:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12)
gyp ERR! System Darwin 18.2.0
gyp ERR! command "/Users/username/.nvm/versions/node/v11.9.0/bin/node" "/Users/username/.nvm/versions/node/v11.9.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build" "--IS_DOWNLOADED=true" "--IBM_DB_HOME=/Users/username/temp/try-db2/node_modules/ibm_db2/installer/clidriver"
gyp ERR! cwd /Users/username/temp/try-db2/node_modules/ibm_db2
gyp ERR! node -v v11.9.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
at ChildProcess.exithandler (child_process.js:297:12)
at ChildProcess.emit (events.js:197:13)
at maybeClose (internal/child_process.js:978:16)
at Socket.stream.socket.on (internal/child_process.js:395:11)
at Socket.emit (events.js:197:13)
at Pipe._handle.close (net.js:611:12)
killed: false,
code: 1,
signal: null,
cmd:
'node-gyp configure build --IS_DOWNLOADED=true --IBM_DB_HOME="$IBM_DB_HOME"' }
npm verb lifecycle ibm_db2@3.0.0~install: unsafe-perm in lifecycle true
npm verb lifecycle ibm_db2@3.0.0~install: PATH: /Users/username/.nvm/versions/node/v11.9.0/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/username/temp/try-db2/node_modules/ibm_db2/node_modules/.bin:/Users/username/temp/try-db2/node_modules/.bin:/opt/local/bin:/opt/local/sbin:/Users/username/.pyenv/plugins/pyenv-virtualenv/shims:/Users/username/.pyenv/shims:/Users/username/.pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/usr/local/sbin:/Applications/Wireshark.app/Contents/MacOS:/Users/username/.pyenv/plugins/pyenv-virtualenv/shims:/Users/username/.pyenv/shims:/Users/username/.pyenv/bin:/Users/username/.nvm/versions/node/v11.9.0/bin:/Users/username/.antigen/bundles/robbyrussell/oh-my-zsh/lib:/Users/username/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/git:/Users/username/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/ssh-agent:/Users/username/.antigen/bundles/zsh-users/zsh-syntax-highlighting:/Users/username/.antigen/bundles/zsh-users/zsh-autosuggestions:/Users/username/.antigen/bundles/zsh-users/zsh-completions:/Users/username/.antigen/bundles/lukechilds/zsh-nvm
npm verb lifecycle ibm_db2@3.0.0~install: CWD: /Users/username/temp/try-db2/node_modules/ibm_db2
npm info lifecycle ibm_db2@3.0.0~install: Failed to exec install script
npm timing action:install Completed in 7525ms
npm verb unlock done using /Users/username/.npm/_locks/staging-bf65cbb5fdf52b45.lock for /Users/username/temp/try-db2/node_modules/.staging
npm timing stage:rollbackFailedOptional Completed in 185ms
npm timing stage:runTopLevelLifecycles Completed in 1158497ms
npm WARN try-db2@1.0.0 No description
npm WARN try-db2@1.0.0 No repository field.
npm verb stack Error: ibm_db2@3.0.0 install: `node installer/driverInstall.js`
npm verb stack Exit status 1
npm verb stack at EventEmitter.<anonymous> (/Users/username/.nvm/versions/node/v11.9.0/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
npm verb stack at EventEmitter.emit (events.js:197:13)
npm verb stack at ChildProcess.<anonymous> (/Users/username/.nvm/versions/node/v11.9.0/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
npm verb stack at ChildProcess.emit (events.js:197:13)
npm verb stack at maybeClose (internal/child_process.js:978:16)
npm verb stack at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5)
npm verb pkgid ibm_db2@3.0.0
npm verb cwd /Users/username/temp/try-db2
npm verb Darwin 18.2.0
npm verb argv "/Users/username/.nvm/versions/node/v11.9.0/bin/node" "/Users/username/.nvm/versions/node/v11.9.0/bin/npm" "i" "-S" "--verbose" "ibm_db2"
npm verb node v11.9.0
npm verb npm v6.5.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ibm_db2@3.0.0 install: `node installer/driverInstall.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ibm_db2@3.0.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm verb exit [ 1, true ]
npm timing npm Completed in 1158837ms
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/username/.npm/_logs/2019-02-07T07_36_13_392Z-debug.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment