Re: Building DBD::Oracle with the new Oracle Express product.
- From: ethandbrown@xxxxxxxxx (Ethan Brown)
- Date: Tue, 27 Dec 2005 17:48:47 -0500
On 12/27/05, Ethan Brown <ethandbrown@xxxxxxxxx> wrote:
> Hi Tim--
>
> I'm having problems building DBD::Oracle with the new Oracle Express
> product (see
> http://www.oracle.com/technology/products/database/xe/index.html).
> This is a new distribution that installs nicely on Linux via a single
> RPM.
>
> During the building process I'm getting an error: "Unable to locate an
> oracle.mk, proc.mk or other suitable *.mk file in your Oracle
> installation. " These files are apparently used for Oracle Pro*C.
>
> Have you come across this problem? Any suggestions?
>
> Thanks,
>
> --Ethan
>
Well, it occurred to me that dbi-users@xxxxxxxx is actually a mailing
list. I googled and found some postings by you (Tim) about a patch to
Makefile.pl in the thread
http://groups.google.com/group/perl.dbi.users/browse_thread/thread/f4c50c67f7dccfd9/08b3acd637ac2001?q=oracle+xe&rnum=1#08b3acd637ac2001
I applied the patches, but got an error in the output:
------------------------------
Using Oracle in /usr/lib/oracle/xe/app/oracle/product/10.2.0/server
DEFINE _SQLPLUS_RELEASE = "1002000100" (CHAR)
Oracle version 10.2.0.1 (10.2)
Looks like Oracle XE
Reading /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/rdbms/demo/demo_xe.mk
ERROR parsing /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/rdbms/demo/demo_xe.mk:
Unable to determine what to link with.
---------------------------------
Undaunted, I poked around in Makefile.PL and the file demo_xe.mk, and
figured I could get things to work if I just hard-coded the use of
LIBCLNTSH:
---------------------------------
$linkvia = '$(LIBCLNTSH)' if !$linkvia && $MK{LIBCLNTSH};
## EDB. Force linkvia to use LIBCLNTSH
$linkvia = '$(LIBCLNTSH)';
## END EDB
# The oracle.mk file tends to define OCILDLIBS
$linkvia = '$(OCILDLIBS)' if !$linkvia && $MK{OCILDLIBS};
---------------------------------
This ended up doing the trick.
Apologies for not searching more thoroughly before sending my last mail.
(By the way, my platform is Linux Mandrake 10.1 on x86).
Thanks,
--Ethan
.
- References:
- Building DBD::Oracle with the new Oracle Express product.
- From: Ethan Brown
- Building DBD::Oracle with the new Oracle Express product.
- Prev by Date: Building DBD::Oracle with the new Oracle Express product.
- Next by Date: RE: DBD ODBC question - $dbh->{odbc_exec_direct}
- Previous by thread: Building DBD::Oracle with the new Oracle Express product.
- Next by thread: RE: DBD-Sybase 1.07, FreeTDS 0.63, HPUX 11.11: Build problem (maketest)
- Index(es):
Relevant Pages
|