Using dynamic library without setting environment variables
Using dynamic library without setting environment variables
- Subject: Using dynamic library without setting environment variables
- From: Christian Bøtker Høj <email@hidden>
- Date: Tue, 11 Mar 2003 11:37:44 +0100
Hi there,
I am investigating the possibility of using the Oracle OCI 8.1.7.1
shared library in an application. I would like to embed the library in
my application package for easy installation. Oracle states in the OCI
ReadMe that a number of environment variables should be set before
running any tools that uses the library, specifically
ORACLE_HOME
ORA_NLS33
TNS_ADMIN
DYLD_LIBRARY_PATH
The DYLD_LIBRARY_PATH is necessary to find the library and the three
others are Oracle specific. The Oracle specific variables are okay to
set from code (using setenv() or putenv() ) but the DYLD_LIBRARY_PATH
is needed before launching the application or else the application
fails with an error like
dyld: ./cdemo82 can't open library: /dsk2/src_020404/lib/libclntsh.dylib
It would be possible to remedy this problem if I could change the
installation location of the library to something like
@executable_path/../Frameworks instead of /dsk2/src_020404/lib/ but,
alas, I do not have access to the source code - it is securely in
Oracle's hands.
Do any of you have some suggestions on how to solve this?
Regards,
Christian Hxj
Software Developer
SAXoTECH
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.