gitweb.cgi: “Final prematuro dos cabeçalhos de script: gitweb.cgi”

1

Estou executando o LAMP no Arch e agora quero que o gitweb esteja no apache. Segui as instruções como no link mas no diretório gitweb (aqui localhost/~myuser/gitweb ) eu recebo:

Server error!

The server encountered an internal error and was unable to complete your request.

Error message: 
Premature end of script headers: gitweb.cgi

If you think this is a server error, please contact the webmaster.

Error 500

localhost
Fri Jun 8 15:14:11 2012
Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.1c DAV/2 PHP/5.4.3
    
por Haix64 08.06.2012 / 16:24

1 resposta

2

Eu tive o mesmo erro e resolvi isso instalando o perl-cgi package

$ sudo pacman -S perl-cgi

N.b, depurei isso executando o script com falha diretamente, ou seja,

$ cd /usr/share/gitweb/ 
$ ./gitweb.cgi
Can't locate CGI.pm in @INC (you may need to install the CGI module)(@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl .) at ./gitweb.cgi line 13.
BEGIN failed--compilation aborted at ./gitweb.cgi line 13.
    
por 29.10.2015 / 12:49