Problem with ppm> install DBD-Oracle

Posted on 2006-06-13
Last Modified: 2012-06-21
When I try to install the package DBD-Oracle this is what happens.
Its the first error thats the problem the second is for directory that is read.

ppm> install DBD-Oracle
Install 'DBD-Oracle' version 1.17 in ActivePerl
Downloaded 213415 bytes.
Extracting 31/31: blib/script/ora_explain.bat
Installing C:\Perl\site\lib\auto\DBD\Oracle\dbdimp.h
Installing C:\Perl\site\lib\auto\DBD\Oracle\
Installing C:\Perl\site\lib\auto\DBD\Oracle\ocitrace.h
Installing C:\Perl\site\lib\auto\DBD\Oracle\
Installing C:\Perl\site\lib\auto\DBD\Oracle\Oracle.dll
Installing C:\Perl\site\lib\auto\DBD\Oracle\Oracle.exp
Installing C:\Perl\site\lib\auto\DBD\Oracle\Oracle.h
Installing C:\Perl\site\lib\auto\DBD\Oracle\Oracle.lib
Installing C:\Perl\site\lib\auto\DBD\Oracle\Oracle.pdb
Installing C:\Perl\html\bin\ora_explain.html
Installing C:\Perl\html\site\lib\Oraperl.html
Installing C:\Perl\html\site\lib\DBD\Oracle.html
Files found in blib\arch: installing files in blib\lib into architecture depende
nt library tree
Installing C:\Perl\site\lib\
Installing C:\Perl\site\lib\
Installing C:\Perl\site\lib\DBD\
Installing C:\Perl\site\lib\DBD\Oracle\
Installing C:\Perl\bin\ora_explain
Installing C:\Perl\bin\ora_explain.bat

There is no oracle client libraries currently available for your platform (MSWin         <-------error 1
32-x86-multi-thread) in at
 install_script line 25.

unlink C:\Perl\bin\ora_explain
unlink C:\Perl\bin\ora_explain.bat
unlink C:\Perl\html\bin\ora_explain.html
unlink C:\Perl\html\site\lib\DBD\Oracle.html
unlink C:\Perl\html\site\lib\Oraperl.html
unlink C:\Perl\site\lib\DBD\
unlink C:\Perl\site\lib\DBD\Oracle\
unlink C:\Perl\site\lib\
unlink C:\Perl\site\lib\auto\DBD\Oracle\
unlink C:\Perl\site\lib\auto\DBD\Oracle\Oracle.dll
unlink C:\Perl\site\lib\auto\DBD\Oracle\Oracle.exp
unlink C:\Perl\site\lib\auto\DBD\Oracle\Oracle.h
unlink C:\Perl\site\lib\auto\DBD\Oracle\Oracle.lib
unlink C:\Perl\site\lib\auto\DBD\Oracle\Oracle.pdb
unlink C:\Perl\site\lib\auto\DBD\Oracle\dbdimp.h
unlink C:\Perl\site\lib\auto\DBD\Oracle\
unlink C:\Perl\site\lib\auto\DBD\Oracle\ocitrace.h
unlink C:\Perl\site\lib\
unlink C:\Perl\site\lib\auto\DBD\Oracle\.packlist

Can't remove directory C:\DOCUME~1\RobeMorg\LOCALS~1\Temp/DBD-Oracle-1-3652-1150   <-----error 2
251617 (Permission denied) at c:/Perl/site/lib/PPM/ line 247
Error: (un)install script failed: 'C:\Perl\bin\perl.exe install_script'

I have used activestate perl 5.8 with this pc (same os) before and had no problem with DBD-Oracle package.

Any help appreciated.
Question by:deNZity
  • 5
  • 2
LVL 19

Assisted Solution

by:Kim Ryan
Kim Ryan earned 250 total points
ID: 16899500
This could help:
Specifically it notes that Oracle Instant Client must be installed before you install DBD::Orcale. I think this is the problem as the DBD module looks for the presence of some Oracle client libraries before proceeding.

Author Comment

ID: 16899711
I have both Oracle 10g and Oracle DevSuite installed but I will install the client as well and see what happens.

LVL 28

Accepted Solution

FishMonger earned 250 total points
ID: 16900156
When I have problems with installing via ppm, I switch to installing via cpan and let it build/install the module from source.

perl -MCPAN -e "install DBD-Oracle"

If you've never used the cpan module, you'll first need to run the shell and it will "walk" you through its configuration.  Before you do this, you'll need to download/install Microsoft's nmake.  Here's the download link.
After executing the file, move the files to you perl/bin directory and then run the cpan shell.  Here's a little more info on it.

enter the cpan shell with this command.
perl -MCPAN -e shell

As you step through the configuration, one of the options is what it should do about the dependencies.  The prompt looks like this:

The CPAN module can detect when a module that which you are trying to
build depends on prerequisites. If this happens, it can build the
prerequisites for you automatically ('follow'), ask you for
confirmation ('ask'), or just ignore them ('ignore'). Please set your
policy to one of the three values.

Policy on building prerequisites (follow, ask or ignore)? [ask]

Author Comment

ID: 16906471
Hi Fishmonger, did as you suggested however trying to install DBD-Oracle returned the following.

C:\Perl\PerlScripts>perl -MCPAN -e shell

cpan shell -- CPAN exploration and modules installation (v1.7602)
ReadLine support enabled

cpan> install DBD-Oracle
CPAN: Storable loaded ok
Going to read C:\Perl\cpan\Metadata
  Database was generated on Wed, 14 Jun 2006 09:27:49 GMT
Warning: Cannot install DBD-Oracle, don't know what it is.
Try the command

    i /DBD-Oracle/

to find objects with matching identifiers.


cpan> i /DBD-Oracle/
Distribution id = P/PY/PYTHIAN/DBD-Oracle-1.17.tar.gz
    CPAN_USERID  PYTHIAN (Pythian Remote DBA <>)
    CONTAINSMODS Oraperl DBD::Oracle::GetInfo DBD::Oracle

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

LVL 28

Expert Comment

ID: 16907131
cpan> install P/PY/PYTHIAN/DBD-Oracle-1.17.tar.gz

Author Comment

ID: 16907713
Hi Fishmonger, I'm thinking of changing my handle to Greengrocer :)

did as above things looked good until this....
DBD-Oracle-1.17/Makefile.PL Going to build P/PY/PYTHIAN/DBD-Oracle-1.17.tar.gz

*** 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.

    If you think this error is not correct then just set the LIB and
    INCLUDE environment variables to some value to disable the check.
Running make test
  Make had some problems, maybe interrupted? Won't test
Running make install
  Make had some problems, maybe interrupted? Won't install


I thought nmake would be doing the compiling, nmake.exe and nmake.err are in c:\perl\bin


Author Comment

ID: 16907833
I should have mentioned that I dont have visual C++ compiler.

Author Comment

ID: 16931101
points for effort

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now