Do you have a file called libclntsh.dylib in your ORACLE_HOME? If not, you may need to create a symlink to the dylib.10.1 file:
zathras:instantclient_10_2 jpiwowar$ ls *clntsh* libclntsh.dylib.10.1
ln -s libclntsh.dylib.10.1 libclntsh.dylib
I'm guessing that Xcode is trying to compile a Universal binary by default, and that you need to supply additional options to XCode to get it to compile for only the Intel architecture. Unfortunately, since I'm not an XCode user (nor, to be honest, much of a developer at all ;-), I don't know what's necessary to make that happen.
zathras:instantclient_10_2 jpiwowar$ file libclntsh.dylib.10.1 libclntsh.dylib.10.1: Mach-O dynamically linked shared library i386 zathras:instantclient_10_2 jpiwowar$ file `ls /usr/lib/*.dylib | tail -1` /usr/lib/libzfs.dylib: Mach-O universal binary with 2 architectures /usr/lib/libzfs.dylib (for architecture i386): Mach-O dynamically linked shared library i386 /usr/lib/libzfs.dylib (for architecture ppc7400): Mach-O dynamically linked shared library ppc
Does anything in the error message look particularly insightful to you?Hi Brad,
dyld: Library not loaded: /scratch/plebld/208/rdbms/lib/libclntsh.dylib.10.1I've seen a similar error message when I try to launch sqlplus without defining the DYLD_LIBRARY_PATH environment variable in my shell environment. I think that the '/scratch/plebld/208/rdbms/lib' is some sort of stub/default within the Oracle libraries themselves, or a relic from the build environment at Oracle where the libraries were generated.