[Wine] perl-web-script should start a application with wine
Andreasus
wineforum-user at winehq.org
Tue Dec 16 08:49:05 CST 2008
I need some help.
I have a windows application which load a file, do something and put the output in the same file. This tool is called ct.exe. Now I use wine to start this application, everything works fine.
My problem starts if a try to write a perlscript which start this wine application.
my perl script:
1 #!/usr/bin/perl
2
3 use strict;
4 use CGI;
5 use CGI::Carp qw(fatalsToBrowser warningsToBrowser);
6
7 my $cgi = new CGI;
8 my $html = q();
9
10 print $cgi->header(q(text/html));
11 print $cgi->start_html(-title => q(lustiger wine test)),
12 $cgi->h1(q( is not an Emulator)),
13 my $output = exec("wine /usr/share/weblicgen/bin/ct.exe
14 -open /usr/share/weblicgen/bin/coreTechLeer.lic ");
15 print "$output";
16 $cgi->end_html();
17 print $html;
Error_log:
191 [error] [client 10.113.201.215] fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.VC80.CRT"
192 [error] [client 10.113.201.215] Application tried to create a window, but no driver could be loaded.
193 [error] [client 10.113.201.215] Make sure that your X server is running and that $DISPLAY is set correctly.
194 [error] [client 10.113.201.215] Application tried to create a window, but no driver could be loaded.
195[error] [client 10.113.201.215] Make sure that your X server is running and that $DISPLAY is set correctly.
196 [error] [client 10.113.201.215] err:module:attach_process_dlls "MSVCR80.dll" failed to initialize, aborting
197 [error] [client 10.113.201.215] err:module:LdrInitializeThunk Main exe initialization for L"Z: >\\\\usr\\\\share\\\\weblicgen\\\\bin\\\\ct-licensegenerator.exe" failed, status c0000142
Note: If I type: perl webscript.pl, then It works. If I write this script as a normal perlscript without using it from a browser, then it works too.
Can someone help me?
More information about the wine-users
mailing list