Bugzilla install Apache-SizeLimit

During install of Bugzilla, there are some misleading error messages.

Running the check modules we can see:

<pre>root@svn:/var/www/bugzilla# ./checksetup.pl --check-modules
* This is Bugzilla 4.2.1 on perl 5.10.1
* Running on Linux 2.6.32-5-amd64 #1 SMP Mon Jan 16 16:22:28 UTC 2012

Checking perl modules...
Checking for CGI.pm (v3.51) ok: found v3.59
Checking for Digest-SHA (any) ok: found v5.47
Checking for TimeDate (v2.21) ok: found v2.24
Checking for DateTime (v0.28) ok: found v0.74
Checking for DateTime-TimeZone (v0.71) ok: found v1.46
Checking for DBI (v1.41) ok: found v1.612
Checking for Template-Toolkit (v2.22) ok: found v2.24
Checking for Email-Send (v2.00) ok: found v2.198
Checking for Email-MIME (v1.904) ok: found v1.910
Checking for URI (v1.37) ok: found v1.60
Checking for List-MoreUtils (v0.22) ok: found v0.33
Checking for Math-Random-ISAAC (v1.0.1) ok: found v1.004

Checking available perl DBD modules...
Checking for DBD-Pg (v1.45) not found
Checking for DBD-mysql (v4.001) ok: found v4.016
Checking for DBD-SQLite (v1.29) ok: found v1.35
Checking for DBD-Oracle (v1.19) not found

The following Perl modules are optional:
Checking for GD (v1.20) ok: found v2.39
Checking for Chart (v2.1) ok: found v2.4.5
Checking for Template-GD (any) ok: found v1.56
Checking for GDTextUtil (any) ok: found v0.86
Checking for GDGraph (any) ok: found v1.44
Checking for MIME-tools (v5.406) ok: found v5.502
Checking for libwww-perl (any) ok: found v6.04
Checking for XML-Twig (any) ok: found v3.39
Checking for PatchReader (v0.9.6) ok: found v0.9.6
Checking for perl-ldap (any) ok: found v0.44
Checking for Authen-SASL (any) ok: found v2.15
Checking for RadiusPerl (any) ok: found v0.20
Checking for SOAP-Lite (v0.712) ok: found v0.714
Checking for JSON-RPC (any) ok: found v1.01
Checking for JSON-XS (v2.0) ok: found v2.32
Checking for Test-Taint (any) ok: found v1.04
Checking for HTML-Parser (v3.40) ok: found v3.69
Checking for HTML-Scrubber (any) ok: found v0.09
Checking for Encode (v2.21) ok: found v2.35
Checking for Encode-Detect (any) ok: found v1.01
Checking for Email-MIME-Attachment-Stripper (any) ok: found v1.316
Checking for Email-Reply (any) ok: found v1.202
Checking for TheSchwartz (any) ok: found v1.10
Checking for Daemon-Generic (any) ok: found v0.82
Checking for mod_perl (v1.999022) ok: found v2.000004
Checking for Apache-SizeLimit (v0.96) not found
Checking for mod_headers (any) ok
Checking for mod_expires (any) ok
Checking for mod_env (any) ok
***********************************************************************
* OPTIONAL MODULES *
***********************************************************************
* Certain Perl modules are not required by Bugzilla, but by *
* installing the latest version you gain access to additional *
* features. *
* *
* The optional modules you do not have installed are listed below, *
* with the name of the feature they enable. Below that table are the *
* commands to install each module. *
***********************************************************************
* MODULE NAME * ENABLES FEATURE(S) *
***********************************************************************
* Apache-SizeLimit * mod_perl *
***********************************************************************
COMMANDS TO INSTALL OPTIONAL MODULES:

Apache-SizeLimit: /usr/bin/perl install-module.pl Apache2::SizeLimit
To attempt an automatic install of every required and optional module
with one command, do:

/usr/bin/perl install-module.pl --all

Lets run the install-module script

root@svn:/var/www/bugzilla# /usr/bin/perl install-module.pl --all
Checking for CPAN (v1.81) ok: found v1.94
Checking for YAML (any) ok: found v0.81
Checking for ExtUtils-MakeMaker (v6.31) ok: found v6.62
Going to read '/root/.cpan/Metadata'
Database was generated on Tue, 08 May 2012 05:03:03 GMT
Installing Apache2::SizeLimit version 0.96...
Running install for module 'Apache2::SizeLimit'
Running make for P/PH/PHRED/Apache-SizeLimit-0.96.tar.gz
CPAN: Compress::Zlib loaded ok (v2.052)
Checksum for /root/.cpan/source/authors/id/P/PH/PHRED/Apache-SizeLimit-0.96.tar.gz ok
CPAN: Archive::Tar loaded ok (v1.52)
Apache-SizeLimit-0.96/
Apache-SizeLimit-0.96/Changes
Apache-SizeLimit-0.96/INSTALL
Apache-SizeLimit-0.96/lib/
Apache-SizeLimit-0.96/LICENSE
Apache-SizeLimit-0.96/Makefile.PL
Apache-SizeLimit-0.96/MANIFEST
Apache-SizeLimit-0.96/MANIFEST.SKIP
Apache-SizeLimit-0.96/META.yml
Apache-SizeLimit-0.96/README
Apache-SizeLimit-0.96/t/
Apache-SizeLimit-0.96/t/apache/
Apache-SizeLimit-0.96/t/apache2/
Apache-SizeLimit-0.96/t/pod.t
Apache-SizeLimit-0.96/t/response/
Apache-SizeLimit-0.96/t/response/TestApache/
Apache-SizeLimit-0.96/t/response/TestApache2/
Apache-SizeLimit-0.96/t/response/TestApache2/basic.pm
Apache-SizeLimit-0.96/t/response/TestApache2/check_n_requests2.pm
Apache-SizeLimit-0.96/t/response/TestApache2/deprecated.pm
Apache-SizeLimit-0.96/t/response/TestApache2/zzz_check_n_requests.pm
Apache-SizeLimit-0.96/t/response/TestApache/basic.pm
Apache-SizeLimit-0.96/t/response/TestApache/check_n_requests2.pm
Apache-SizeLimit-0.96/t/response/TestApache/deprecated.pm
Apache-SizeLimit-0.96/t/response/TestApache/zzz_check_n_requests.pm
Apache-SizeLimit-0.96/t/apache2/all.t
Apache-SizeLimit-0.96/t/apache/all.t
Apache-SizeLimit-0.96/lib/Apache/
Apache-SizeLimit-0.96/lib/Apache2/
Apache-SizeLimit-0.96/lib/Apache2/SizeLimit.pm
Apache-SizeLimit-0.96/lib/Apache/SizeLimit/
Apache-SizeLimit-0.96/lib/Apache/SizeLimit.pm
Apache-SizeLimit-0.96/lib/Apache/SizeLimit/Core.pm

CPAN.pm: Going to build P/PH/PHRED/Apache-SizeLimit-0.96.tar.gz

Can't find the mod_perl include dir (reason: path /usr/include/apache2 doesn't exist) at /usr/lib/perl5/Apache2/Build.pm line 2030.
Warning: No success on command[/usr/bin/perl Makefile.PL LIB="/var/www/bugzilla/lib" INSTALLMAN1DIR="/var/www/bugzilla/lib/man/man1" INSTALLMAN3DIR="/var/www/bugzilla/lib/man/man3" INSTALLBIN="/var/www/bugzilla/lib/bin" INSTALLSCRIPT="/var/www/bugzilla/lib/bin" INSTALLDIRS=perl]
PHRED/Apache-SizeLimit-0.96.tar.gz
/usr/bin/perl Makefile.PL LIB="/var/www/bugzilla/lib" INSTALLMAN1DIR="/var/www/bugzilla/lib/man/man1" INSTALLMAN3DIR="/var/www/bugzilla/lib/man/man3" INSTALLBIN="/var/www/bugzilla/lib/bin" INSTALLSCRIPT="/var/www/bugzilla/lib/bin" INSTALLDIRS=perl -- NOT OK
Skipping test because of notest pragma
Running make install
Make had some problems, won't install

At first I was a little troubled on what the problem could be. So my next guess was to try and download the source and check if I can compile it from source.

Downloading and having look at the readme:

root@svn:/tmp/Apache-SizeLimit-0.97# cat INSTALL
to install this module simply follow the canonical procedure
for installing any perl module

$ tar zxvf Apache-SizeLimit-0.XX.tar.gz
$ cd Apache-SizeLimit-0.XX

$ perl Makefile.PL
For static mod_perl use -httpd /path/to/httpd
For dynamic mod_perl use -apxs /path/to/apxs
$ make
$ sudo make install

for further directions, see the README.

Checking my installed packages I was missing apxs for the install to succeed.

After installing the required package (on debian apache2-prefork-dev) the check succeeds.

Advertisements

Author: S4mur4i

Happy in the unhappy world.

8 thoughts on “Bugzilla install Apache-SizeLimit”

  1. I was ripping my hair out with this one; thanks for the post! One addition that I had to do was symlink /usr/bin/apxs to /usr/bin/apxs2 (which is what was installed for me after installing the package), if that helps anyone else that stumbles on this post.

    1. mod_perl_devel is an additional package, which has a dependency on apxs. It isn’t the simplest solution since additonal packages get installed not the bare minimum required.

  2. old post I know – but I found it when searching for a similar issue on Wheezy with bugzilla 4.4.6 so maybe others will.

    My problem is that Apache2::SizeLimit / Apache-SizeLimit is not found using ./checksetup.pl but is actually installed.

    # perl -MApache2::Sizelimit -e ‘print “Hi\n”;’
    Can’t locate Apache2/Sizelimit.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .).
    BEGIN failed–compilation aborted.
    root@bz2:/var/www/bugzilla# perl -MApache2::SizeLimit -e ‘print “Hi\n”;’
    You must install Linux::Pid for Apache::SizeLimit to work on your platform. at /usr/lib/perl5/Apache/SizeLimit/Core.pm line 128.
    BEGIN failed–compilation aborted at /usr/lib/perl5/Apache/SizeLimit/Core.pm line 171.
    Compilation failed in require at /usr/lib/perl5/Apache2/SizeLimit.pm line 48.
    BEGIN failed–compilation aborted at /usr/lib/perl5/Apache2/SizeLimit.pm line 48.
    Compilation failed in require.
    BEGIN failed–compilation aborted.

    So
    /usr/bin/perl install-module.pl Linux::Pid
    resolved this for me.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s