This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Trouble installing DBD::Oracle on Cygwin

2008/4/16, Dunston Rocks:
> Hilling DBD::Oracle on Cygwin
>  Steps followed  :
>   Download from CPAN
>  tar –zxvf  DBD-Oracle-1.20.tar.gz
>  cd DBD-Oracle-1.20
>  make  realclean
>  perl
>  make : *** [ Oracle.o ]  Error 1 ; output attached (make_results.txt)
>  perl – V (attached :  perl_V.out)
>  make  realclean
>  perl -g
>  make (Same error as  above in Step 6) ) ;
>  output attached (make_results_debugmode.txt)
>  Oracle 10g Client at  C:\oracle\product\10.2.0\client_2
>  ORACLE_HOME set to  above
>  SQLPLUS set to  "C:\oracle\product\10.2.0\client_2\bin\sqllplus" and
>  am able to connect to all  databases in   C:\oracle\product\10.2.0\client_2\network\ADMIN\tnsnames.ora from cygwin bash shell
>  Cygwin Installation : A  complete installation from latest build from on April 10th 2008
>  DBI is installed, but  attempting to run code that uses DBD::Oracle throws below error    install_driver(Oracle)  failed: Can't locate DBD/ in @INC (@INC contains: %PERL5LIB%;C  \Documents and Settings\dunston\My  Documents\scripts\parse;C \Program Files\Mozilla  Firefox\tpsf;C \Documents and Settings\dunston\My  Documents\scripts\parse;C \Program Files\Mozilla  Firefox\tpsf /usr/lib/perl5/5.8/cygwin /usr/lib/perl5/5.8  /usr/lib/perl5/site_perl/5.8/cygwin /usr/lib/perl5/site_perl/5.8  /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/vendor_perl/5.8/cygwin  /usr/lib/perl5/vendor_perl/5..8 /usr/lib/perl5/vendor_perl/5.8 .) at (eval 3)  line 3.

Change your PERL5LIB to a sane value.
I know, Oracle 10 messes up the PERL5LIB environment variable,
because they ship their own perl and apache.
I just unset PERL5LIB and add the POSIX paths of the Oracle dirs to
your perl Makefile.PL

$ PERL5LIB= ORACLE_HOME=/cygdrive/oracle/product/10.2.0/client_2 perl

maybe add
-h <path to headers>

Also check out
if the importlib was correctly created.

>  Would appreciate your input on  installing this library in Cygwin
>   Thanks
>  ------
>  gcc -g -c  -IC:/oracle/product/10.2.0/client_2/oci/include

gcc cannot handle this path anymore!
/cygdrive/c/oracle/product/10.2.0/client_2/oci/include is better.

-I/usr/lib/perl5/site_perl/5.8/cygwin/auto/DBI -g
-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -pipe
-Wdeclaration-after-statement -DUSEIMPORTLIB    -DVERSION=\"1.20\"
-DXS_VERSION=\"1.20\"  "-I/usr/lib/perl5/5.8/cygwin/CORE"  -Wall
-DORA_OCI_VERSION=\"\" Oracle.c
>  In file included from Oracle.xs:1:
>  Oracle.h:37:17: oci.h: No such file or directory
>  Oracle.h:39:20: ocidfn.h: No such file or directory
>  Oracle.h:40:18: orid.h: No such file or directory
>  Oracle.h:41:17: ori.h: No such file or directory
Reini Urban    

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]