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

Error Reason: image not found #247

Closed
randomailer opened this issue Oct 15, 2015 · 6 comments
Closed

Error Reason: image not found #247

randomailer opened this issue Oct 15, 2015 · 6 comments

Comments

@randomailer
Copy link

Error when I trying to start app from Intellij Idea

Error: dlopen(/Users/..../projects/admin-platform/node_modules/oracledb/build/Release/oracledb.node, 1): Library not loaded: /ade/b/3071542110/oracle/rdbms/lib/libclntsh.dylib.11.1
  Referenced from: /Users/..../projects/admin-platform/node_modules/oracledb/build/Release/oracledb.node
  Reason: image not found
    at Error (native)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
@cjbj
Copy link
Member

cjbj commented Oct 16, 2015

You'll need to set DYLD_LIBRARY_PATH so that the IDE passes it to node-oracledb or
look at #231 and #149

@cjbj cjbj closed this as completed Oct 16, 2015
@mxriverlynn
Copy link

@cjbj is it true that the DYLD_LIBRARY_PATH must be set, still? I've been reading the other linked threads (231 and 149) and i'm a bit confused.

I'm having problems with OSX 10.11 / El Capitan, with launchers like nodemon and foreverjs. they don't work, because OSX won't foward the DYLD_LIBRARY_PATH environment variable.

I have the DYLD set in my .bash_profile appropriately, so I can run my code by doing node foo.js but if i change this to nodemon foo.js it fails with the "Reason: Image Not Found" problem since the DYLD path is not forwarded.

Is there a way to make this work with nodemon, foreverjs, and other sub-shell / launchers?

@cjbj
Copy link
Member

cjbj commented Jan 6, 2016

@derickbailey I documented a method of installing with 11.2 instant client that doesn't require DYLD_LIBRARY_PATH. Try it out: https://github.com/oracle/node-oracledb/blob/master/INSTALL.md#instosx

@mxriverlynn
Copy link

thanks @cjbj - i had not noticed the change in those instructions when i looked at it before. i re-ran all of the steps, and everything is working for me, with nodemon and my other tooling now.

@cjbj
Copy link
Member

cjbj commented Jan 13, 2016

@derickbailey you could alternatively create the links in ~/lib as noted by @raymondfeng in #149 (comment)
I will update INSTALL.md to show both methods. I have already updated the generic OS X Instant Client install notes at http://www.oracle.com/technetwork/topics/intel-macsoft-096467.html#ic_osx_inst

@jeffersongouveia
Copy link

For me it did not work set the DYLD_LIBRARY_PATH, but LD_LIBRARY_PATH worked fine.

e.g: LD_LIBRARY_PATH=/Users//Library/Oracle/instantclient_12_2/

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

No branches or pull requests

4 participants