in reply to Re: DBD::Oracle install on Mac OSX 10.8.5 (Mountain Lion) (mwahaha)
in thread DBD::Oracle install on Mac OSX 10.8.5 (Mountain Lion)
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
commands (while in the module build directory as root).perl Makefile.pl make make install
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...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: DBD::Oracle install on Mac OSX 10.8.5 (Mountain Lion) (mwahaha)
by cristianabs (Initiate) on Dec 05, 2013 at 17:25 UTC | |
by Corion (Patriarch) on Dec 05, 2013 at 18:00 UTC | |
by cristianabs (Initiate) on Jan 14, 2014 at 01:40 UTC | |
by Anonymous Monk on Jan 14, 2014 at 01:53 UTC | |
|
Re^3: DBD::Oracle install on Mac OSX 10.8.5 (Mountain Lion) (mwahaha)
by pillmill (Initiate) on Feb 04, 2014 at 21:00 UTC | |
by Anonymous Monk on Feb 05, 2014 at 00:33 UTC |