in reply to really need help with DBD::Oracle installation

What part of the error message is giving you problems?

You're using Microsoft Visual C++ compiler or similar but the LIB and INCLUDE environment variables are not both set. You need to run the VCVARS32.BAT batch file that was supplied with the compiler before you can use it. A copy of vcvars32.bat can typically be found in the following directories under your Visual Studio install directory: Visual C++ 6.0: vc98\bin Visual Studio .NET: vc7\bin

Find it, run it, then retry this.

You will need to have MS Visual C installed.

Your version of the make executable is the wrong one. MAKE Version 5.2 Copyright (c) 1987, 2000 Borland indicates that you're using some kind of make tool supplied by Borland. You will need the Microsoft tools.

You can try to replace your Perl with Strawberry Perl, which includes a matching C compiler and hijacks the environment so that it works right out of the box. It should even be mostly compatible with ActiveState Perl 5.10.

Replies are listed 'Best First'.
Re^2: really need help with DBD::Oracle installation
by adrive (Scribe) on Mar 10, 2008 at 09:12 UTC
    hi, before trying strawberryperl, isn't visual c++ a commercial product? I tried downloading something from here : http://www.microsoft.com/downloads/thankyou.aspx?familyId=32bc1bee-a3f9-4c13-9c99-220b62a191ee&displayLang=en#

    but that didn't work either, Is there a link to download a free compiler that can compile source files from cpan?

      Yes, Microsoft Visual C++ is a commercial product and you usually have pay money to get a license to use it. There are free editions, but ActiveState uses MSVC6 to build ActiveState Perl and you will need version 6 as well if you want to build extensions to it. Version 6 is only available against payment.

      If I may suggest a better approach to your questions, "didn't work either" is not an error description that helps me provide solutions to your questions.

      Is there a link to download a free compiler that can compile source files from cpan?

      As I said already, Strawberry Perl aims to provide an all-in-one package for that. In theory, you can even compile extensions for ActiveState Perl with the toolchain provided by Strawberry Perl.

        In theory, you can even compile extensions for ActiveState Perl with the toolchain provided by Strawberry Perl

        Not only in theory, but in practice too !!
        I think that Corion's suggestion of using MinGW and dmake (which is what he means by the "toolchain provided by Strawberry Perl") is a good one. Whether you use that toolchain with Strawberry Perl or with ActiveState Perl shouldn't make any difference.

        Until someone provides a ppm package of DBD::Oracle (which, afaict, hasn't yet happened re perl-5.10.0), you'll have to build it yourself. Give it a go with dmake and MinGW - report the errors you encounter, and someone will possibly be able to help you proceed.

        Cheers,
        Rob
        hi, i downloaded strawberry perl and installed...everything works great so far for installing other modules with cpan. It can even build!

        however, when trying to install DBD::Oracle this is what i get :

        Using DBI 1.601 (for perl 5.010000 on MSWin32-x86-multi-thread) installed in C:/ strawberry/perl/site/lib/auto/DBI/ Configuring DBD::Oracle for perl 5.010000 on MSWin32 (MSWin32-x86-multi-thread) Remember to actually *READ* the README file! Especially if you have any problems . Using Oracle in C:/oracle/ora92 DEFINE _SQLPLUS_RELEASE = "902000100" (CHAR) Oracle version 9.2.0.1 (9.2) OCI directory not found, please install OCI in C:/oracle/ora92 at Makefile.PL li ne 228. Warning: No success on commandC:\strawberry\perl\bin\perl.exe Makefile.PL LIBS= -LC:\strawberry\c\lib INC=-IC:\strawberry\c\include PYTHIAN/DBD-Oracle-1.20.tar.gz C:\strawberry\perl\bin\perl.exe Makefile.PL LIBS=-LC:\strawberry\c\lib INC=-IC :\strawberry\c\include -- NOT OK Running make test Make had some problems, won't test Running make install Make had some problems, won't install Failed during this command: PYTHIAN/DBD-Oracle-1.20.tar.gz : writemakefile NO 'C:\strawberry\ perl\bin\perl.exe Makefile.PL LIBS=-LC:\strawberry\c\lib INC=-IC:\strawberry\c\i nclude' returned status 512


        i tried copying oci.dll from C:\oracle\instantclient_11_1\oci.dll but it kept showing the same message. What should i do??