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: atverd on Apr 24, '08 01:53:20PM
Oracle finally released instant client for Intel:
http://www.oracle.com/technology/software/tech/oci/instantclient/index.html

You still need _environ patch to DBD::Oracle though.

[ Reply to This | # ]
Install Perl module DBD::Oracle on Intel macs.
Authored by: atverd on Apr 24, '08 02:11:23PM
The patch for _environ problem

--- dbdimp.c.orig	2008-04-03 11:07:56.000000000 -0700
+++ dbdimp.c	2008-04-24 13:57:06.000000000 -0700
@@ -17,6 +17,10 @@
 #include "w32api/winbase.h"
 #endif /* __CYGWIN32__ */
 
+#ifdef __APPLE__
+#include <crt_externs.h>
+#endif
+
 #include "Oracle.h"
 
 #if defined(CAN_USE_PRO_C)
@@ -3793,9 +3797,13 @@
     PerlIO *fp = DBILOGFP;
     int i = 0;
     char *p;
+#ifdef __APPLE__
+    #define environ (*_NSGetEnviron())
+#else
 #ifndef __BORLANDC__
     extern char **environ;
 #endif
+#endif
     PerlIO_printf(fp, "Environment variables:\n");
     do {
 	p = (char*)environ[i++];



[ Reply to This | # ]
Install Perl module DBD::Oracle on Intel macs.
Authored by: boingolover on Jan 25, '09 07:06:05AM

The _environ bug has been closed finally, a patch has been rolled in with the trunk and hopefully should be out with the next release of DBD::Oracle (1.23?) I created a patch for it based on the information I found in this thread. You can download the patch against 1.22 here:

http://rt.cpan.org/Public/Bug/Display.html?id=21920 (dbdimp.diff)

or on my blog, which I include a writeup on how to get this going on intel mac (some of it based on this thread).

http://nathanjohnson.info



[ Reply to This | # ]