-
Notifications
You must be signed in to change notification settings - Fork 18
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
Library not loaded? #44
Comments
Do you have a folder |
Yeah I obviously dont. Nor did I tell it to look there :) How/What/Where is it supposed to be looking and how do I change that? |
It's been a while since I've needed to do this but I believe this should help you: This will create the directory FYI, you may encounter another similar issue regarding LDAP. |
It looks like that will work however it is basically going file for file saying |
Are you getting another error? AFAIK, that path is hard coded into the Oracle instant client. |
Error now is: My symlink format is I mean that is right but is there a faster way? |
Sorry, that might be on me. I looked at the script I used to do my setup and it's slightly different. My script looks like this: |
Did you strictly follow the instructions at https://github.com/strongloop/strong-oracle? Please note |
Yes @raymondfeng I have followed the instructions several times. I always get to the same |
The key is that you have to make sure
And run |
^ that. |
Is this resolved? I am stuck with this error. |
See this solution: https://github.com/kubo/fix_oralib_osx |
Also check the solution @raymondfeng found so you don't need to modify the libraries oracle/node-oracledb#149 (comment) |
@ganeshchand I find that just running with the env mapped to the path of the DYLD library is the route of least friction. |
I have followed the instructions but cannot seem to get this working. The error I get is:
Error: dlopen(LOCAL_MODULE_PATH/node_modules/strong-oracle/build/Release/oracle_bindings.node, 1): Library not loaded: /ade/b/3071542110/oracle/rdbms/lib/libocci.dylib.11.1 Referenced from: LOCAL_MODULE_PATH/node_modules/strong-oracle/build/Release/oracle_bindings.node Reason: image not found at Error (native) at Module.load (module.js:351:32) at Function.Module._load (module.js:306:12) at Module.require (module.js:361:17) at require (module.js:380:17) at Object.<anonymous> (LOCAL_MODULE_PATH/node_modules/strong-oracle/lib/oracle.js:11:14) at Module._compile (module.js:426:26) at Object.Module._extensions..js (module.js:444:10) at Module.load (module.js:351:32) at Function.Module._load (module.js:306:12)
The relevant part, i think is,
1): Library not loaded: /ade/b/3071542110/oracle/rdbms/lib/libocci.dylib.11.1
The path to the instantclient is
/opt/oracle/instantclient/
I have set the
env
to{ OCI_INCLUDE_DIR: '/opt/oracle/instantclient/sdk/include', OCI_HOME: '/opt/oracle/instantclient/', DYLD_LIBRARY_PATH: '/opt/oracle/instantclient/', OCI_LIB_DIR: '/opt/oracle/instantclient/', }
Everything looks right but I cannot seem to get past that error.
The text was updated successfully, but these errors were encountered: