Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Install Perl module DBD::Oracle on Intel macs.' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Install Perl module DBD::Oracle on Intel macs.
Authored by: chs76945 on Oct 04, '07 09:33:07AM
This is a great article, and it helped me immensely. FINALLY, I can store and develop my Oracle-backended perl applications on my laptop instead of remotely on a Unix system.

A note that might help many: the 10.1 version of instanctclient was built incorrectly, and has a hardcoded link to a library on some developer's workstation somewhere out in Oracle land. (Don't ask me how their QA missed this.)

If, when loading DBD::Oracle, you get some noise like "dyld: Library not loaded: /b/729/rdbms/lib/libclntsh.dylib.10.1", it just means that the Oracle bundle wants it's buddy /b/729/rdbms/lib/libclntsh.dylib.10.1 and can't find it. A simple (but not particularly elegant) workaround is to just give it what it wants by putting a symlink to that library in that location.

The following commands should do it (execute in the terminal). You must replace INSTALLDIR with the path to wherever you installed the instantclient; if you're really not sure, simply navigate to the instant client directory in the finder and just drop libclntsh.dylib.10.1 into the terminal window when you get to that part of the command (in which case you don't need to type the filename part either).

sudo mkdir -p /b/729/rdbms/lib/
sudo ln -s INSTALLDIR/libclntsh.dylib.10.1 /b/729/rdbms/lib/

[ Reply to This | # ]

Install Perl module DBD::Oracle on Intel macs.
Authored by: paco on Jan 31, '08 10:19:44AM

The alternative that I found is to use the DYLD_LIBRARY_PATH (MacOS equivalent of LD_LIBRARY_PATH on other unixes).

I have my instantclient installed in /opt/local/oracle, so I do the following in my environment (e.g., .profile):

export DYLD_LIBRARY_PATH=/opt/local/oracle

No need to create the path.

[ Reply to This | # ]