Closed CollinEstes closed 9 years ago
Is the env var correct? DLYD_LIBRARY_PATH: '/opt/oracle/instantclient/'?
I believe so, it is to the unzip'd instant client libraries.
Collins-MacBook-Pro:~ collinestes$ cd $DLYD_LIBRARY_PATH
Collins-MacBook-Pro:instantclient collinestes$ ls
BASIC_README libclntsh.dylib libnnz11.dylib libocci.so ojdbc5.jar uidrvci
adrci libclntsh.dylib.11.1 libocci.dylib libociei.dylib ojdbc6.jar xstreams.jar
genezi libclntsh.so libocci.dylib.11.1 libocijdbc11.dylib sdk
Collins-MacBook-Pro:instantclient collinestes$
I have those set in my ~/.bash_profile file:
export OCI_HOME=/opt/oracle/instantclient/
export OCI_LIB_DIR=/opt/oracle/instantclient/
export OCI_INCLUDE_DIR=/opt/oracle/instantclient/sdk/include
export DLYD_LIBRARY_PATH=/opt/oracle/instantclient/
Did you create symbolic links per https://github.com/strongloop/strong-oracle?
Yes I have:
Collins-MacBook-Pro:~ collinestes$ cd $OCI_LIB_DIR
Collins-MacBook-Pro:instantclient collinestes$ ln -s libclntsh.dylib.11.1 libclntsh.dylib
ln: libclntsh.dylib: File exists
Collins-MacBook-Pro:instantclient collinestes$ ln -s libocci.dylib.11.1 libocci.dylib
ln: libocci.dylib: File exists
What does nm libocci.dylib | grep -w __ZTIN6oracle4occi12SQLExceptionE
print?
Looks like a problem:
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm: can't open file: libocci.dylib (No such file or directory)
What is extra strange is I wrote an integration test and it ran, now I'm stuck on that error.
I see the following files under oracle instant client. Please note I have libocci.dylib -> libocci.dylib.11.1
.
-rw-rw-rw-@ 1 rfeng staff 484 Feb 15 2013 BASIC_README
-rwxrwxrwx@ 1 rfeng staff 10252 Feb 15 2013 adrci
-rwxrwxrwx@ 1 rfeng staff 40768 Feb 15 2013 genezi
lrwxr-xr-x 1 rfeng staff 20 Feb 9 2014 libclntsh.dylib -> libclntsh.dylib.11.1
-rwxrwxrwx@ 1 rfeng staff 64771444 Dec 19 2012 libclntsh.dylib.11.1
-rwxrwxrwx@ 1 rfeng staff 2808528 Feb 15 2013 libnnz11.dylib
lrwxr-xr-x 1 rfeng staff 18 Feb 9 2014 libocci.dylib -> libocci.dylib.11.1
-rwxrwxrwx@ 1 rfeng staff 1897664 Dec 19 2012 libocci.dylib.11.1
-rwxrwxrwx@ 1 rfeng staff 118379468 Feb 15 2013 libociei.dylib
-rwxrwxrwx@ 1 rfeng staff 158924 Dec 19 2012 libocijdbc11.dylib
-rw-rw-rw-@ 1 rfeng staff 2095661 May 29 2012 ojdbc5.jar
-rw-rw-rw-@ 1 rfeng staff 2714016 May 29 2012 ojdbc6.jar
drwxrwxrwx@ 7 rfeng staff 238 Feb 9 2014 sdk
-rwxrwxrwx@ 1 rfeng staff 162324 Feb 15 2013 uidrvci
-rw-rw-rw-@ 1 rfeng staff 66779 Dec 19 2012 xstreams.jar
I just went all the way back through the install process, and I got the following error now:
Reason: no suitable image found. Did find:
/opt/instantclient/libocci.dylib.11.1: mach-o, but wrong architecture
I then went back into my project and did an 'npm install strong-oracle' which succeeded (although with a couple errors:
XX(target) Release/obj.target/oracle_bindings/src/connection.o
../src/connection.cpp:151:11: warning: 'FatalException' is deprecated: Use FatalException(isolate, ...) [-Wdeprecated-declarations]
node::FatalException(tryCatch);
^
/var/folders/1b/sfc4sf6j3vz0rqp70przm0wr312_ty/T/.node-gyp/2.3.1/src/node.h:283:29: note: 'FatalException' has been explicitly marked deprecated
here
inline void FatalException(const v8::TryCatch& try_catch) {
^
/var/folders/1b/sfc4sf6j3vz0rqp70przm0wr312_ty/T/.node-gyp/2.3.1/src/node.h:66:42: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
../src/connection.cpp:263:11: warning: 'FatalException' is deprecated: Use FatalException(isolate, ...) [-Wdeprecated-declarations]
node::FatalException(tryCatch);
^
/var/folders/1b/sfc4sf6j3vz0rqp70przm0wr312_ty/T/.node-gyp/2.3.1/src/node.h:283:29: note: 'FatalException' has been explicitly marked deprecated
here
inline void FatalException(const v8::TryCatch& try_catch) {
^
/var/folders/1b/sfc4sf6j3vz0rqp70przm0wr312_ty/T/.node-gyp/2.3.1/src/node.h:66:42: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
../src/connection.cpp:803:11: warning: 'FatalException' is deprecated: Use FatalException(isolate, ...) [-Wdeprecated-declarations]
node::FatalException(tryCatch);
^
/var/folders/1b/sfc4sf6j3vz0rqp70przm0wr312_ty/T/.node-gyp/2.3.1/src/node.h:283:29: note: 'FatalException' has been explicitly marked deprecated
here
inline void FatalException(const v8::TryCatch& try_catch) {
^
/var/folders/1b/sfc4sf6j3vz0rqp70przm0wr312_ty/T/.node-gyp/2.3.1/src/node.h:66:42: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
../src/connection.cpp:873:11: warning: 'FatalException' is deprecated: Use FatalException(isolate, ...) [-Wdeprecated-declarations]
node::FatalException(tryCatch);
^
/var/folders/1b/sfc4sf6j3vz0rqp70przm0wr312_ty/T/.node-gyp/2.3.1/src/node.h:283:29: note: 'FatalException' has been explicitly marked deprecated
here
inline void FatalException(const v8::TryCatch& try_catch) {
^
/var/folders/1b/sfc4sf6j3vz0rqp70przm0wr312_ty/T/.node-gyp/2.3.1/src/node.h:66:42: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
4 warnings generated.
CXX(target) Release/obj.target/oracle_bindings/src/oracle_bindings.o
../src/oracle_bindings.cpp:167:11: warning: 'FatalException' is deprecated: Use FatalException(isolate, ...) [-Wdeprecated-declarations]
node::FatalException(tryCatch);
^
/var/folders/1b/sfc4sf6j3vz0rqp70przm0wr312_ty/T/.node-gyp/2.3.1/src/node.h:283:29: note: 'FatalException' has been explicitly marked deprecated
here
inline void FatalException(const v8::TryCatch& try_catch) {
^
/var/folders/1b/sfc4sf6j3vz0rqp70przm0wr312_ty/T/.node-gyp/2.3.1/src/node.h:66:42: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
../src/oracle_bindings.cpp:351:11: warning: 'FatalException' is deprecated: Use FatalException(isolate, ...) [-Wdeprecated-declarations]
node::FatalException(tryCatch);
^
/var/folders/1b/sfc4sf6j3vz0rqp70przm0wr312_ty/T/.node-gyp/2.3.1/src/node.h:283:29: note: 'FatalException' has been explicitly marked deprecated
here
inline void FatalException(const v8::TryCatch& try_catch) {
^
/var/folders/1b/sfc4sf6j3vz0rqp70przm0wr312_ty/T/.node-gyp/2.3.1/src/node.h:66:42: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
Then my error changed back to the same as above, after I had reinstalled strong-oracle.
I'm on osx. And I downloaded the OSX specific binaries from oracle
Is your Mac 64 bit?
yes it is, my processor: 2.9 GHz Intel Core i5
i am running io.js
Reason: no suitable image found. Did find: /opt/instantclient/libocci.dylib.11.1: mach-o, but wrong architecture
Did you get the Intel 64bit Instant Client, not the PPC one?
I got this one:
Instant Client Downloads for Mac OS X (Intel x86)
Should I get the PPC version? I'm assuming I need the intel x86.
The x86 version is the right one but make sure you get the 64 bits download, i.e. http://www.oracle.com/technetwork/topics/intel-macsoft-096467.html or http://www.oracle.com/technetwork/topics/intel-macsoft-096467.html.
I bet that is it! I think I pulled 32 bit...
I'll confirm...
That was it. Thanks everyone. Sorry I was careless with the download page...
i was download wrong architecture too, this saved my life :P
guys, i have this error after doing this command:
=>What does nm libocci.dylib | grep -w __ZTIN6oracle4occi12SQLExceptionE print?
00000000001334e0 S __ZTIN6oracle4occi12SQLExceptionE
@faridblaster Can you file a new issue? Please include the exact output from the npm install step, the verbatim error message and the output of uname -a
and node -p process.versions
. Thanks.
I was able to successfully run my integration test with strong-oracle just yesterday, now I'm getting an error that makes me think my environment changed and is causing a problem but I can't track down what it is. Here is my enviornment varables and the error being thrown.