Hi Vineet

The translate.cgi script is not intended to be run directly, it is launched by 
index.cgi. To do translations using the web based moses, it's better to 
access it through a web server.

> I have installed apache web server and tried executing the script
> through another pc on my network and i got the following message when
> i type the location of the html file which is on the server and
> click translate:
>
> Insecure dependency in eval while running with -T switch at
> /usr/share/perl5/HTTP/Message.pm line 390.

This is a perl security error. I "solved" this problem by removing the '-T' 
switch from the first line of index.cgi and translate.cgi

regards
Barry

On Thursday 05 February 2009 15:47:45 Vineet Kashyap wrote:
> Hi
>
> I am getting the following the error messages when i run
>
> ./index.cgi
>
> Use of uninitialized value $SELF_URL in substitution (s///) at
> ./index.cgi line 30.
>
> Use of uninitialized value $params{"url"} in concatenation (.)
> or string at ./index.cgi line 54.
>
> ./translate.cgi
>
> <h1>Software error:</h1>
> <pre>No URL? at ./translate.cgi line 208.</pre>
> <p>
>
> # get value of URL param, make sure it's absolute
>
> my $url = CGI->new->param ('url');
> die "No URL?" unless $url;   // this is line 208
> $url = "http://$url"; unless ($url =~ m!^[a-z]+://!);
>
> do i have to specify something here for url?
>
> I have installed apache web server and tried executing the script
> through another pc on my network and i got the following message when
> i type the location of the html file which is on the server and
> click translate:
>
> Insecure dependency in eval while running with -T switch at
> /usr/share/perl5/HTTP/Message.pm line 390.
>
> I think its the Html file location that i want to translate
> has just text and nothing else. Could this be the problem?
>
> Any help would be appreciated as i have to give
> an online demonstration ?
>
> Thanks
>
> Vineet
>
> _______________________________________________
> Moses-support mailing list
> [email protected]
> http://mailman.mit.edu/mailman/listinfo/moses-support

_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to