Thanks!

I got it all to work, all on 64bit, and sqlplus even works. Here's my process:

First, I followed mostly what was at this stackoverflow accepted solution.

To that end, I did the following:

I created the directory /Applications/instantclient_11_2.

I downloaded from Oracle the following packages (not sure they are all necessary, but they were sufficient):

instantclient-basic-macos.x64-11.2.0.3.0.zip instantclient-sdk-macos.x64-11.2.0.3.0.zip instantclient-sqlplus-macos.x64-11.2.0.3.0.zip

This was all in my ~/Downloads directory, and they all unzipped into a local 'instantclient_11_2' directory, and I copied all of the results of unzipping that to /Applications/instantclient_11_2.

Then I did the DBD::Oracle install (see following code), which fails to completely install, but at least gets the files down, which I deal with manually after this step.

sudo perl -MCPAN -e shell install DBD::Oracle

That code downloaded to my ~/.cpan/build directory, but per the stack overflow post, you can follow the directions there if that is not where you cpan build directory is.

Once there I had to cd into the ~/.cpan/build/DBD-Oracle-1.66-(something) directory, then sudo su root. Now, on MacOSX, root is not enabled by default, follow the directions here to get a root account enabled on your machine.

Now I was ready to build. I had to set two environment variables (while I'm root), like so:

export ORACLE_HOME=/Applications/instantclient_11_2 export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/Applications/instantclien +t_11_2

to make this work. The second one is paramount because that's why you have to su to root and not just sudo it -- if you try to sudo this, the shell tells you that it doesn't pick up the DYLD_LIBRARY_PATH info. I don't know why, but there you go.

Now I was ready to do the

perl Makefile.pl make make install
commands (while in the module build directory as root).

This installed, and I got a ton of warnings, but it worked.

Good luck to you, hope you find these instructions if you hit the same problem I did...


In reply to Re^2: DBD::Oracle install on Mac OSX 10.8.5 (Mountain Lion) (mwahaha) by mpettis
in thread DBD::Oracle install on Mac OSX 10.8.5 (Mountain Lion) by mpettis

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.