node-oracle icon indicating copy to clipboard operation
node-oracle copied to clipboard

install failure -- ld: library not found for -locci

Open equinoxss opened this issue 11 years ago • 3 comments

I have the 11.2 instantclient package install on a mac running mavericks. I believe I have followed the setup instructions exactly, but cannot get passed this missing lib error.

NPM-DEBUG.LOG: line 93 is where things appear to go off the rails

89 verbose linkBins [email protected] 90 verbose linkMans [email protected] 91 verbose rebuildBundles [email protected] 92 info install [email protected] 93 verbose unsafe-perm in lifecycle true 94 info [email protected] Failed to exec install script 95 info /Users/sxsmith/workspace/bender/node_modules/oracle unbuild 96 info preuninstall [email protected] 97 info uninstall [email protected] 98 verbose true,/Users/sxsmith/workspace/bender/node_modules,/Users/sxsmith/workspace/bender/node_modules unbuild [email protected] 99 info postuninstall [email protected]

STDOUT:

[email protected] install /Users/sxsmith/workspace/bender/node_modules/oracle node-gyp rebuild

CXX(target) Release/obj.target/oracle_bindings/src/connection.o CXX(target) Release/obj.target/oracle_bindings/src/oracle_bindings.o CXX(target) Release/obj.target/oracle_bindings/src/executeBaton.o CXX(target) Release/obj.target/oracle_bindings/src/reader.o CXX(target) Release/obj.target/oracle_bindings/src/statement.o CXX(target) Release/obj.target/oracle_bindings/src/outParam.o SOLINK_MODULE(target) Release/oracle_bindings.node ld: library not found for -locci clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [Release/oracle_bindings.node] Error 1 gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797:12) gyp ERR! System Darwin 13.2.0 gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /Users/sxsmith/workspace/bender/node_modules/oracle gyp ERR! node -v v0.10.26 gyp ERR! node-gyp -v v0.13.1 gyp ERR! not ok npm ERR! [email protected] install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] install script. npm ERR! This is most likely a problem with the oracle package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get their info via: npm ERR! npm owner ls oracle npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 13.2.0 npm ERR! command "node" "/usr/local/bin/npm" "install" "oracle" npm ERR! cwd /Users/sxsmith/workspace/bender npm ERR! node -v v0.10.26 npm ERR! npm -v 1.4.13 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /Users/sxsmith/workspace/bender/npm-debug.log npm ERR! not ok code 0

equinoxss avatar May 25 '14 18:05 equinoxss

A little bit late, but maybe this will be useful for someone else later:

You have to create a link from the *.dynlib.11.1 files ones with only .dynlib extension. e.g. ln -s libocci.dynlib.11.1 libocci.dynlib in the $OCI_LIB_DIR

vschoettke avatar Aug 11 '14 13:08 vschoettke

I had the same problem, my issue was that I didn't have the SDK folder inside the $OCI_LIB_DIR. I moved the SDK folder and did the install steps and Voila! it worked.

vishu-guntupalli avatar Dec 21 '14 21:12 vishu-guntupalli

can also happen if you're using the i386 downloads when the compiler is expecting x86 (at least, for me on Ubuntu 14.04LTS) (not a bug)

PixnBits avatar Jan 02 '15 23:01 PixnBits