Installing ibm_bd on node.js 6.11.0 with macOS sierra

96 views
Skip to first unread message

Ruben Legarda

unread,
Jun 15, 2017, 1:27:44 AM6/15/17
to node-ibm_db
Hi, 

I'm using node v6.11.0 on MAC and I'm not able to install ibm_db module. I'm installing ibm...@2.0.0 version, but I tried white previous versions (0.0.8 and 0.0.19) without success. 

This is the error:

> ibm...@2.0.0 install <deleted>/node_modules/ibm_db

> node installer/driverInstall.js


Downloading DB2 ODBC CLI Driver from https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/macos64_odbc_cli.tar.gz...


100.00% | 20080158 bytes downloaded out of 20080158 bytes.


****************************************

You are downloading a package which includes the Node.js module for IBM DB2/Informix.  The module is licensed under the Apache License 2.0. The package also includes IBM ODBC and CLI Driver from IBM, which is automatically downloaded as the node module is installed on your system/device. The license agreement to the IBM ODBC and CLI Driver is available in /Users/sp84551/Documents/Proyectos IBM/201704 EVO Watson/50 JAZZ EVO/node_modules/ibm_db/installer   Check for additional dependencies, which may come with their own license agreement(s). Your use of the components of the package and dependencies constitutes your acceptance of their respective license agreements. If you do not accept the terms of any license agreement(s), then delete the relevant component(s) from your device.

****************************************


Downloading and extraction of DB2 ODBC CLI Driver completed successfully ...

  CXX(target) Release/obj.target/odbc_bindings/src/odbc.o

  CXX(target) Release/obj.target/odbc_bindings/src/odbc_connection.o

  CXX(target) Release/obj.target/odbc_bindings/src/odbc_statement.o

  CXX(target) Release/obj.target/odbc_bindings/src/odbc_result.o

  SOLINK_MODULE(target) Release/odbc_bindings.node


Error setting up the lib path to odbc_bindings.node file.Error trace:

Error: Command failed: install_name_tool -change libdb2.dylib $IBM_DB_HOME/lib/libdb2.dylib ./build/Release/odbc_bindings.node

error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: more than one input file specified (EVO\ and IBM/201704\)

Usage: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool [-change old new] ... [-rpath old new] ... [-add_rpath new] ... [-delete_rpath old] ... [-id name] input


<deleted>@1.0.0 /Users/sp84551/Documents/Proyectos IBM/201704 EVO Watson/50 JAZZ EVO

└─┬ watson-deve...@2.32.1

  └─┬ webs...@1.0.24

    └── n...@2.3.5 


npm WARN <deleted>@1.0.0 No description

npm ERR! Darwin 16.6.0

npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "ibm_db"

npm ERR! node v6.11.0

npm ERR! npm  v3.10.10

npm ERR! code ELIFECYCLE


npm ERR! ibm...@2.0.0 install: `node installer/driverInstall.js`

npm ERR! Exit status 1

npm ERR! 

npm ERR! Failed at the ibm...@2.0.0 install script 'node installer/driverInstall.js'.

npm ERR! Make sure you have the latest version of node.js and npm installed.

npm ERR! If you do, this is most likely a problem with the ibm_db package,

npm ERR! not with npm itself.

npm ERR! Tell the author that this fails on your system:

npm ERR!     node installer/driverInstall.js

npm ERR! You can get information on how to open an issue for this project with:

npm ERR!     npm bugs ibm_db

npm ERR! Or if that isn't available, you can get their info via:

npm ERR!     npm owner ls ibm_db

npm ERR! There is likely additional logging output above.


npm ERR! Please include the following file with any support request:

npm ERR!     <deleted>/npm-debug.log

npm-debug.log

bimaljha

unread,
Jun 15, 2017, 1:35:00 AM6/15/17
to node-ibm_db
Hi Ruben,

Problem seems with your install_name_tool installed in the system. You may need to update xcode. Look the below error:

Error: Command failed: install_name_tool -change libdb2.dylib $IBM_DB_HOME/lib/libdb2.dylib ./build/Release/odbc_bindings.node

error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: more than one input file specified (EVO\ and IBM/201704\)

Usage: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool [-change old new] ... [-rpath old new] ... [-add_rpath new] ... [-delete_rpath old] ... [-id name] input


You can try to run above command manually that would reproduce the same error.

Thanks and Regards,
Bimal Jha
Reply all
Reply to author
Forward
0 new messages