Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mac install not working #251

Open
pstahmer opened this issue Feb 10, 2015 · 2 comments
Open

Mac install not working #251

pstahmer opened this issue Feb 10, 2015 · 2 comments

Comments

@pstahmer
Copy link

Hello, I'm trying to run this on a mac, the pre_install_check.sh script tells me everything is fine, but I get an error for 'occi.h' not being found. This file is in fact in the include directory (see ls at bottom) and I've verified the dylibs, so can anyone offer suggestions of what to try next?

$ source pre_install_check.sh
everythings looks dandy
  OCI_HOME: /Users/X/Documents/projects/X/instantclient_11_1
  OCI_LIB_DIR: /Users/X/Documents/projects/X/instantclient_11_1
  OCI_INCLUDE_DIR: /Users/X/Documents/projects/X/instantclient_11_1/sdk/include

$ npm install oracle
npm WARN package.json [email protected] No repository field.
-
> [email protected] install /Users/X/Documents/projects/X/node_modules/oracle
> node-gyp rebuild

  CXX(target) Release/obj.target/oracle_bindings/src/connection.o
In file included from ../src/connection.cpp:2:
../src/connection.h:11:10: fatal error: 'occi.h' file not found
#include <occi.h>
         ^
1 error generated.
make: *** [Release/obj.target/oracle_bindings/src/connection.o] 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.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Darwin 13.4.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/X/Documents/projects/X/node_modules/oracle
gyp ERR! node -v v0.10.33
gyp ERR! node-gyp -v v1.0.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.4.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "oracle"
npm ERR! cwd /Users/X/Documents/projects/X/instantclient_11_1
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0

$ ls $OCI_INCLUDE_DIR
ldap.h      occiControl.h   ociap.h     ocikpr.h    orid.h
nzerror.h   occiData.h  ociapr.h    ocixmldb.h  orl.h
nzt.h       occiObjects.h   ocidef.h    ocixstream.h    oro.h
occi.h      oci.h       ocidem.h    odci.h      ort.h
occiAQ.h    oci1.h      ocidfn.h    oratypes.h  xa.h
occiCommon.h    oci8dp.h    ociextp.h   ori.h

$ ls $OCI_LIB_DIR
BASIC_README        libnnz11.dylib      ojdbc6.jar
adrci           libocci.dylibgenezi         libocci.dylib.11.1  
sdk libclntsh.dylib     libociei.dylib      uidrvci
libclntsh.dylib.11.1    libocijdbc11.dylib  xstreams.jar
libnnz.dylib        ojdbc5.jar
@ghost
Copy link

ghost commented Jun 17, 2015

Help! I occur this error too!

@pspry
Copy link

pspry commented Jun 17, 2015

It appears that this development has moved to oracledb
https://github.com/oracle/node-oracledb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants