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

OS X "El Capitan": DYLD_LIBRARY_PATH not working unless SIP is turned off #231

Closed
cristobal opened this issue Oct 1, 2015 · 9 comments
Closed

Comments

@cristobal
Copy link

In the latest release off OS-X using the DYLD_LIBRARY_PATH is not possible unless System Integrity Protection (SIP) is disabled.

Meaning that setting the DYLD_LIBRARY_PATH will have no effects on spawned sub shells and therefore using the node client is no longer possible unless one turns off (SIP) as explained here.

This is true in most of the cases, where one starts a subprocess that will run and use the node-oracledb module. This issue meant for discussion on any solutions on how to circumvent disabling SIP or should it just be added as a section to the README and wiki for OS X.

@cjbj
Copy link
Member

cjbj commented Oct 1, 2015

Cross referencing: #149

@cjbj cjbj added the question label Oct 5, 2015
@cjbj
Copy link
Member

cjbj commented Oct 5, 2015

@cristobal did you try the script from #419? Any comments on impact, security, useful etc?

@cristobal
Copy link
Author

Sorry been busy at work, but will try it later today and get back at you with a comment later or tomorrow morning.

@cristobal
Copy link
Author

Ok finally got time to try out the script. The script works however i did need to modify it to suit my need. However the command for extracting the $VER in the updatepaths function should be modified. Since it's not guaranteed to work correctly, as far as i can see. Should be this instead.

local VER=`ls $IC_DIR/libclntsh.dylib.* | awk '{print $NF'} | xargs basename | sed s/libclntsh.dylib.//g`

Then you are always guaranteed to get out the version string.

@cristobal
Copy link
Author

Hmm however thinking a bit further on the topic if this was a part of post install step of the node oracledb client. Should it not just be done for all OS platform just not OS X. As far as i know it's best to avoid the use of LD_LIBRARY_PATH at all.

@cjbj cjbj reopened this Oct 13, 2015
@cjbj
Copy link
Member

cjbj commented Oct 13, 2015

Let's keep this open to track a good resolution

@cjbj
Copy link
Member

cjbj commented Dec 21, 2015

Closing; see #149

@cjbj cjbj closed this as completed Dec 21, 2015
@cristobal
Copy link
Author

👍

@cjbj
Copy link
Member

cjbj commented May 27, 2016

Instant Client 12.1 for OS X is now available from: http://www.oracle.com/technetwork/topics/intel-macsoft-096467.html

Updated installation instructions are at: http://www.oracle.com/technetwork/topics/intel-macsoft-096467.html#ic_osx_inst

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

2 participants