Perl EXE DLL error

When I run a perl EXE created using PAR module I get a Windows Prompt which has the below content :

---------------------------
Microsoft Visual C++ Runtime Library
---------------------------
Runtime Error!

Program: C:\DOCUME~1\psingh\LOCALS~1\Temp\par-psingh\cache-957d...

R6034

An application has made an attempt to load the C runtime library incorrectly.
Please contact the application's support team for more information.


---------------------------
OK  
---------------------------



After clicking the OK button the below error comes in the command prompt:


install_driver(Pg) failed: Can't load 'C:\DOCUME~1\psingh\LOCALS~1\Temp\par-psingh\cache-957dd488252b6f9bea1ad1c15535884
eb3ca030d\905a1276.dll' for module DBD::Pg: load_file:A dynamic link library (DLL) initialization routine failed at D:/P
erl/lib/DynaLoader.pm line 201.
 at D:/Perl/site/lib/PAR/Heavy.pm line 109
Compilation failed in require at (eval 18) line 3.
Perhaps a required shared library or dll isn't installed where expected
 at script/postgresqlDumpSimple.pl line 93
triharishAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Adam314Commented:
Sounds like you are missing some DLLs in your compiled program.  Did you include DBD::Pg when you used par?  What was the command you used?
0
triharishAuthor Commented:
The command was :

pp  -o  executablefilename.exe  filename.pl


Then I ran the EXE created above and then the error occured.
0
Adam314Commented:
Try this:
    pp -o executablefilename.exe -M DBD::Pg filename.pl

If there are other dll's required by DBD::Pg, include them with the -l option.
0
Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

triharishAuthor Commented:
I created the EXE using the above command but the same error is coming.



Also how to find out what other DLLs are required ?
0
triharishAuthor Commented:
I included the DBD::Pg module in the source code and now the below error is coming :


Can't load 'C:\DOCUME~1\psingh\LOCALS~1\Temp\par-psingh\cache-75e3bdb7c70e4c5915c76244d20d71f04f325ed1\905a1276.dll' for
 module DBD::Pg: load_file:A dynamic link library (DLL) initialization routine failed at D:/Perl/lib/DynaLoader.pm line
201.
 at D:/Perl/site/lib/PAR/Heavy.pm line 109
Compilation failed in require at script/sourceCodeFile.pl line 6.
BEGIN failed--compilation aborted at script/sourceCodeFile.pl line 6.
0
Adam314Commented:
Is there a file named 905a1276.dll anywhere on your computer?  If so, include it in the exe with the -l option:
pp -o executablefilename.exe -M DBD::Pg -l c:\path\to\905a1276.dll filename.pl

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Perl

From novice to tech pro — start learning today.