spx2 has asked for the wisdom of the Perl Monks concerning the following question:

Hello,

I'm having some trouble with perl on windows
I've just tried to run a program that uses Data::Dumper
and it gets me the error.
This application has failed to start because Perl56.dll was not found.Re-installing the application may fix this problem. I'm running activestate perl 5.8.8 here.
I have never experienced this problem before installing oracle(I've seen on several
mailing lists other people have encountered the same problem).
Also perl compiler gives a weird message :
C:\WINDOWS\system32\cmd.exe /c perl "C:\/tst.pl " Can't load 'C:\oracle\product\10.1.0\Db_1\perl\5.6.1\lib\MSWin32-x86/a +uto/Data/D umper/Dumper.dll' for module Data::Dumper: load_file:The specified mod +ule could not be found at C:\oracle\product\10.1.0\Db_1\perl\5.6.1\lib\MSWin32-x +86/XSLoade r.pm line 75. at C:\oracle\product\10.1.0\Db_1\perl\5.6.1\lib\MSWin32-x86/Data/Dump +er.pm line 27 Compilation failed in require at C:\/tst.pl line 4. BEGIN failed--compilation aborted at C:\/tst.pl line 4. shell returned 9 Hit any key to close this window...
on one of the mailing lists I've seen they recommend to do
@set PERL5LIB= <- where should I run this ?

thanks

Replies are listed 'Best First'.
Re: perl+oracle+windoze=trouble
by Corion (Patriarch) on Mar 26, 2008 at 09:48 UTC
    This application has failed to start because Perl56.dll was not found. +Re-installing the application may fix this problem.
    I'm running activestate perl 5.8.8 here.

    No, you're not:

    Can't load 'C:\oracle\product\10.1.0\Db_1\perl\5.6.1\lib\MSWin32-x86/a +uto/Data/Dumper/Dumper.dll

    Try typing perl -v and see what it outputs. It seems that your Oracle installation came with its own Perl, a Perl 5.6, and you're now mixing up Perl versions. Clean up $ENV{PATH} and make sure you're running the version of Perl you want. For more information on PERL5LIB, see perlrun. You can set those variables from your shell session or in the batch file that calls your Perl program.