Problems | wc -l

I was hoping to do this earlier, in smaller multiple posts. However, 60% of my course load this semester is project based. Which means I may not have exams for those courses, there are much more deadlines I must meet during the interm of the semester.

Going through all the screen shots and logs I have complied while testing the installation of Bugzilla (I have tested the install on CentOS, Fedora 19 and Fedora 15), below is a list of issues I encountered while testing the install on a Fedora 15 machine — as this matches the production environment the closest.

The issues encountered are from a base install of Fedora and running yum update.

This is the first error I encountered while running checksetup.pl --check-modules

YOU MUST RUN ONE OF THE FOLLOWING COMMANDS (depending on which database
you use):

PostgreSQL: yum install "perl(DBD::Pg)"
MySQL: yum install "perl(DBD::mysql)"
Oracle: yum install "perl(DBD::Oracle)"

*** Installation aborted. Read the messages above. ***

real 0m0.699s
user 0m0.557s
sys 0m0.065s

This was easily solved by installing MySQL. The error demon quickly riposted with:


Checking for CPAN (v1.81) ok: found v1.94
Checking for YAML (any) not found
Checking for ExtUtils-MakeMaker (v6.31) ok: found v6.56

This again was quickly removed with a simple yum install of Perl YAML. After installing yaml, the installation went much longer, 7 minutes and 25.899 seconds longer:


Test Summary Report
-------------------
t/compile.t (Wstat: 512 Tests: 2 Failed: 2)
Failed tests: 1-2
Non-zero exit status: 2
t/memory.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: No plan found in TAP output
t/range.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: Bad plan. You planned 16 tests but ran 0.
t/seed.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: Bad plan. You planned 8 tests but ran 0.
Files=7, Tests=2, 1 wallclock secs ( 0.05 usr 0.03 sys + 0.17 cusr 0.07 csys = 0.32 CPU)
Result: FAIL
Failed 4/7 test programs. 2/2 subtests failed.
make: *** [test_dynamic] Error 2
MKANAT/Math-Random-Secure-0.06.tar.gz
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports MKANAT/Math-Random-Secure-0.06.tar.gz
Running make install
make test had returned bad status, won't install without force

real 7m25.899s
user 3m18.121s
sys 1m3.360s

This issue took me longer to resolve, as I have never encounter an error similar. After taking a closer look at the report, it seemed to me that it was failing at trying to install Math-Random-Secure-0.06.tar.gz.

After realizing this, I recalled an output from an earlier command:


COMMANDS TO INSTALL OPTIONAL MODULES:

GD: yum install "perl(GD)"
Chart: yum install "perl(Chart::Lines)"
Template-GD: yum install "perl(Template::Plugin::GD::Image)"
GDTextUtil: yum install "perl(GD::Text)"
GDGraph: yum install "perl(GD::Graph)"
Test-Taint: yum install "perl(Test::Taint)"
Daemon-Generic: yum install "perl(Daemon::Generic)"
Math-Random-Secure: yum install "perl(Math::Random::Secure)"

I would question why it is listed under “OPTIONAL MOUDLES” when it will fail the installation. However after yum install "perl(Math::Random::Secure)" the installation went a little further ahead, until the next error.


Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Test::Taint
Writing MYMETA.yml and MYMETA.json
cp Taint.pm blib/lib/Test/Taint.pm
/usr/bin/perl /usr/share/perl5/ExtUtils/xsubpp -typemap /usr/share/perl5/ExtUtils/typemap Taint.xs > Taint.xsc && mv Taint.xsc Taint.c
Please specify prototyping behavior for Taint.xs (see perlxs manual)
gcc -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DVERSION=\"1.06\" -DXS_VERSION=\"1.06\" -fPIC "-I/usr/lib64/perl5/CORE" Taint.c
/bin/sh: gcc: command not found
make: *** [Taint.o] Error 127
PETDANCE/Test-Taint-1.06.tar.gz
/usr/bin/make -- NOT OK
Skipping test because of notest pragma
Running make install
Make had returned bad status, install seems impossible
Installing Daemon::Generic version 0.84...
Daemon::Generic is up to date (0.84).

real 0m4.376s
user 0m3.235s
sys 0m0.947s

The fix to this was very obvious, I needed a c complier. After configuring mysql and apache, Bugzilla was up and running.

I will be making another post going through the steps for installing Bugzilla. However, I will have to reference this post as a troubleshooting section, as it should answer any installations issues you could encounter.

-Richard K.

Trackbacks / Pingbacks

  1. Installing Bugzilla on Fedora 15 | professorplumpi - November 23, 2013

Leave a comment