git/list[1] front-page[2] threads[3] people[4] search[5] about
 

gitweb and gitweb_config.perl problem

From
Rrob@robdavies.net <rob@robdavies.net>
Date
Oct 5, 2025, 04:57 UTC
Message-ID
<4f19f3b21d3db8d7cdb962089910839c@robdavies.net>
Hi
I found a bug in gitweb when using gitweb_config.perl

I downloaded and installed gitweb from source, it worked at this point. I configured using a gitweb_config.perl file, it was at this point I got an error : 500 - Internal Server Error No such file or directory at gitweb.cgi line 734.

I ran gitweb.cgi from the command line and got this error as well as the error above : [Sun Oct 5 04:53:37 2025] gitweb.cgi: do "gitweb_config.perl" failed, '.' is no longer in @INC; did you mean do "./gitweb_config.perl"? at ./gitweb.cgi line 732.

I then changed line 744 in gitweb.cgi from :
	our $GITWEB_CONFIG = $ENV{'GITWEB_CONFIG'} || "gitweb_config.perl";
to
	our $GITWEB_CONFIG = $ENV{'GITWEB_CONFIG'} || "./gitweb_config.perl";
and it worked

I have seen this same error on https://bugs.gentoo.org/675864

Solution : I changed the file git/gitweb/Makefile line 14 from : GITWEB_CONFIG = gitweb_config.perl to GITWEB_CONFIG = ./gitweb_config.perl

when I built it this time using : make gitweb make gitwebdir=~/www/www/gitweb install-gitweb

It now worked when I configured using the file gitweb_config.perl.

Kind regards, Rob Davies

Message 1 of 1 in “gitweb and gitweb_config.perl problem”
  1. rob@robdavies.netOct 5, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.