Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

[svn:dbd-oracle] r2437 - dbd-oracle/trunk
Author: timbo
Date: Fri Jan 20 02:32:38 2006
New Revision: 2437

Modified:
dbd-oracle/trunk/Makefile.PL
Log:
Include $OH/sdk/include in find_headers so logic can be simplified elsewhere
.


Modified: dbd-oracle/trunk/Makefile.PL
 ====================
 ====================
 ====================
================
==
--- dbd-oracle/trunk/Makefile.PL	(original)
+++ dbd-oracle/trunk/Makefile.PL	Fri Jan 20 02:32:38 2006
@@ -143,7 +143,7 @@ die qq{  The $ORACLE_ENV environment var
} unless (-d $OH and $os eq 'VMS')
or -d "$OH/sdk/." 	# Instant Client with SDK
or -d "$OH/lib/." 	# normal Oracle installation
-      or -e "$OH/libclntsh.$so.10.1" # pre-sdk instant client XXX hack (ver
sion specific)
+      or glob("$OH/libclntsh.$so*") # pre-sdk instant client or rpm
or -e "$OH/oci.dll";	# Windows Instant Client

print "Using Oracle in $OH\n";
@@ -329,11 +329,8 @@ elsif (my @libclntsh = glob("$OH/libclnt
$linkwith_msg = "-l$lib.";
$opts{LIBS} = [ "-L$OH -l$lib $syslibs" ];

-    my $inc = "$OH/sdk/include";
-    warn "Your Instant Client installation doesn't have the SDK component i
nstalled\n"
-        unless -d $inc;
-    $opts{INC}  = "-I$inc -I$dbi_arch_dir";
-
+    my $inc = join " ", map { "-I$_" } find_headers();
+    $opts{INC}  = "$inc -I$dbi_arch_dir";
}

elsif ($mkfile = find_mkfile() and $mkfile =~ /\bdemo_xe.mk$/) { # Orac
le XE
@@ -1370,7 +1367,9 @@ sub find_headers {
"$OH/rdbms/public", # prefer public over others
"$OH/rdbms",
"$OH/plsql", # oratypes.h sometimes here (eg HPUX 11.23 Itanium Oracle 9.2.0
),
-       # --- Oracle Instant Client locations
+       # --- Oracle SDK Instant Client locations
+       "$OH/sdk/include",
+       # --- Oracle RPM Instant Client locations
"/usr/include/oracle/ $client_version_full
/client", # Instant Client for RedH
at FC4
"/usr/include/oracle/ $client_version_trim
/client", # Instant Client for RedH
at FC4
"/include/oracle/ $client_version_full
/client", # Instant Client for RedHat F
C3

Report this thread to moderator Post Follow-up to this message
Old Post
timbo@cvs.perl.org
01-20-06 12:24 PM


Sponsored Links





Last Thread Next Thread
Post New Thread

Oracle PERL DBD archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 04:10 AM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006