Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How to set DYLD_LIBRARY_PATH on Mac OS X Mountain Lion?

Hi all,


I've been struggling to find a proper way to set up DYLD_LIBRARY_PATH variable on Mountain Lion.


I have to use Perl Modules for work purposes but eveytime I try to install some CPAN Module (DBD::Oracle to be exact),perl complains that it can't find the DYLD_LIBRARY_PATH and can't continiue with the installation.


Exact error is:


Trying to find an ORACLE_HOME

Your DYLD_LIBRARY_PATH env var is set to ''



The ORACLE_HOME environment variable is not set and I couldn't guess it.

It must be set to hold the path to an Oracle installation directory

on this machine (or a machine with a compatible architecture).

See the appropriate README file for your OS for more information.

ABORTED!



I have downloaded the Oracle Instant Client files for Basic,SQLPLUS and SDK but I don't know how to use these?


When I try the commands:


export PATH="$HOME/.rbenv/bin:$PATH"


and use my directory path of where the instanclient binaries are located for the part "$HOME/.rbenv/bin" and use "DYLD_LIBRARY_PATH" for '$PATH' but it doesn't helped me at all.

Still the same errors.What should I download in order to set ORACLE_HOME (DYLD_LIBRARY_PATH) and which files I should point the environemt variable to?


Anyone please help me?


Thank a lot

Perl 5.12.4-OTHER, OS X Mountain Lion (10.8.2)

Posted on Mar 7, 2013 5:10 AM

Reply
7 replies

Mar 8, 2013 12:19 AM in response to Linc Davis

I simply type in "perl [scriptname.pl]".How is this relevant?I'm not able to install modules.


I've tried both the direct download/make/install way and doing it from the package as described in CPAN manuals.


For the direct download way,I simply type in "cpanm DBD::Oracle" for example.It downloads the package,makes and tries to install but fails during the install process.


Second method is downloading the module package from cpansearch.pearl.org and then pointing the terminal to package path,executing "perl Makefile.PL" and then "make install".


Both methods fails with the same DYLD_LIBRARY_PATH error.

Mar 8, 2013 8:13 AM in response to mdurukan

I doubt you need to do anything with DYLD_LIBRARY_PATH. What you need to do is set ORACLE_HOME to the path to your Oracle directory. On Linux, this is something like /pkg/oracle/10.2.0. I'm sure it will be different on your machine. You will have to set that up in your .bash_profile so it gets set before running any scripts that depend on Oracle.

How to set DYLD_LIBRARY_PATH on Mac OS X Mountain Lion?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.