Howto get Bugzilla 5.0.6 working on Alma Linux 9

After a couple days of struggling with this, the following fix worked for me:

In each *.cgi script, change ‘use lib (. lib)’ to ‘use lib (. /usr/local/lib)’:

prompt# perl -i.bak -pe ‘s/\(\. lib/\(\. \/usr\/local\/lib/’ *.cgi

Get the list of modules that are needed:

prompt# ./ --check-modules

Whatever Perl modules Bugzilla needs that are not in the repos can be installed with cpan.

This may work with Bugzilla 5.1.2 as well, but I haven’t tested it.

Nice! If you have any interest, we’d love to see using Bugzilla on AlmaLinux added as a guide to the wiki. You can either post something on your own blog, or just put together a draft and submit a PR and we’ll take it from there.

there’s some fedora rpm’s which can be rebuilt for alma9 here.

It requires latexmk to build, but otherwise doesn’t need EPEL to install/run.

# download rawhide srpm
curl -O

# install (not as root!) srpm
rpm -ivh bugzilla-5.0.6-17.fc39.src.rpm

# not sure why it identifies us as fedora - epel issue perhaps?
# see
remove the %if 0%{?fedora}...%endif lines (leave the BuildRequires) from ~/rpmbuild/SPECS/bugzilla.spec

# rebuild the srpm for alma
rpmbuild -bs ~/rpmbuild/SPECS/bugzilla.spec 

# initialse alma9+epel9 mock if you haven't already (only needed once)
mock -r alma+epel-9-x86_64 --init

# rebuild our new srpm
mock -r alma+epel-9-x86_64 --rebuild ~/rpmbuild/SRPMS/bugzilla-5.0.6-17.el9.src.rpm 

then we end up with the binaries after a few minutes in /var/lib/mock/alma+epel-9-x86_64/result/

it sorts out all of the perl dependencies without needing to mess with cpan.

then its still a lot of work installing/configuring/securing a database and webserver etc.