7 Replies Latest reply: Aug 28, 2013 12:09 AM by Philippe Causse
mdurukan Level 1 (0 points)

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.




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, OS X Mountain Lion (10.8.2)