Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I'm attempting to configure RT on RedHat 7.3. When I run make testdeps it returns a list of modules which aren't installed:
/usr/bin/perl ./tools/testdeps -warn mysql Checking for Digest::MD5...found Checking for Storable...found Checking for DBI 1.18 ...found Checking for DBIx::DataSource 0.02 ....DBIx::DataSource 0.02 not inst +alled. Checking for DBIx::SearchBuilder 0.48 ....DBIx::SearchBuilder 0.48 no +t installed. Checking for HTML::Entities...found Checking for MLDBM....MLDBM not installed. Checking for Net::Domain...found Checking for Net::SMTP...found Checking for Params::Validate 0.02 ....Params::Validate 0.02 not inst +alled. Checking for HTML::Mason 1.02 ....HTML::Mason 1.02 not installed. Checking for CGI::Cookie 1.20 ....CGI::Cookie 1.20 not installed. Checking for Apache::Cookie....Apache::Cookie not installed. Checking for Apache::Session 1.53 ....Apache::Session 1.53 not instal +led. Checking for Date::Parse....Date::Parse not installed. Checking for Date::Format....Date::Format not installed. Checking for MIME::Entity 5.108 ....MIME::Entity 5.108 not installed. Checking for Mail::Mailer 1.20 ....Mail::Mailer 1.20 not installed. Checking for Getopt::Long 2.24 ...found Checking for Tie::IxHash....Tie::IxHash not installed. Checking for Text::Wrapper....Text::Wrapper not installed. Checking for Text::Template....Text::Template not installed. Checking for File::Spec 0.8 ...found Checking for Errno...found Checking for FreezeThaw....FreezeThaw not installed. Checking for File::Temp...found Checking for Log::Dispatch 1.6 ....Log::Dispatch 1.6 not installed. Checking for DBD::mysql 2.0416 ....DBD::mysql 2.0416 not installed.
No problem, I'll just install the modules from CPAN. When I use perl -MCPAN -e 'install Apache::Cookie', I get the following:
CPAN: Storable loaded ok Going to read /root/.cpan/Metadata Database was generated on Mon, 19 Aug 2002 23:22:14 GMT Running install for module Apache::Cookie Running make for J/JI/JIMW/libapreq-1.0.tar.gz CPAN: MD5 security checks disabled because MD5 not installed. Please consider installing the MD5 module. Scanning cache /root/.cpan/build for sizes libapreq-1.0/ libapreq-1.0/.cvsignore libapreq-1.0/CREDITS libapreq-1.0/Changes libapreq-1.0/INSTALL libapreq-1.0/LICENSE libapreq-1.0/MANIFEST libapreq-1.0/Makefile.PL libapreq-1.0/Makefile.am libapreq-1.0/README libapreq-1.0/ToDo libapreq-1.0/acconfig.h libapreq-1.0/acinclude.m4 libapreq-1.0/aclocal.m4 libapreq-1.0/config.guess libapreq-1.0/config.sub libapreq-1.0/configure.in libapreq-1.0/install-sh libapreq-1.0/libapreq.pod libapreq-1.0/libtool libapreq-1.0/ltconfig libapreq-1.0/ltmain.sh libapreq-1.0/mkinstalldirs libapreq-1.0/typemap libapreq-1.0/Cookie/ libapreq-1.0/Cookie/.cvsignore libapreq-1.0/Cookie/Cookie.pm libapreq-1.0/Cookie/Cookie.xs libapreq-1.0/Cookie/Makefile.PL libapreq-1.0/Request/ libapreq-1.0/Request/.cvsignore libapreq-1.0/Request/Makefile.PL libapreq-1.0/Request/Request.pm libapreq-1.0/Request/Request.xs libapreq-1.0/c/ libapreq-1.0/c/.cvsignore libapreq-1.0/c/Makefile.PL libapreq-1.0/c/Makefile.am libapreq-1.0/c/Makefile.noperl libapreq-1.0/c/apache_cookie.c libapreq-1.0/c/apache_cookie.h libapreq-1.0/c/apache_multipart_buffer.c libapreq-1.0/c/apache_multipart_buffer.h libapreq-1.0/c/apache_request.c libapreq-1.0/c/apache_request.h libapreq-1.0/c/libapreq_config.h.in libapreq-1.0/c/stamp-h.in libapreq-1.0/c/Makefile.in libapreq-1.0/eg/ libapreq-1.0/eg/c/ libapreq-1.0/eg/c/testapreq/ libapreq-1.0/eg/c/testapreq/Makefile.apxs libapreq-1.0/eg/c/testapreq/Makefile.tmpl libapreq-1.0/eg/c/testapreq/mod_testapreq.c libapreq-1.0/eg/c/testapreq/mod_testapreq.module libapreq-1.0/eg/perl/ libapreq-1.0/eg/perl/cookie.pl libapreq-1.0/eg/perl/file_upload.pl libapreq-1.0/lib/ libapreq-1.0/lib/Apache/ libapreq-1.0/lib/Apache/libapreq.pm libapreq-1.0/missing libapreq-1.0/Makefile.in libapreq-1.0/configure Removing previously used /root/.cpan/build/libapreq-1.0 CPAN.pm: Going to build J/JI/JIMW/libapreq-1.0.tar.gz Checking if your kit is complete... Looks good WARNING from evaluation of /root/.cpan/build/libapreq-1.0/c/Makefile.P +L: Can't locate loadable object for module File::Glob in @INC (@INC c +ontains: /usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1 /usr/li +b/perl5/site_perl/5.6.1/i386-linux /usr/lib/perl5/site_perl/5.6.1 /us +r/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 + /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.6.1/i386-linux + /usr/lib/perl5/vendor_perl/5.6.1 /usr/lib/perl5/vendor_perl .) at /u +sr/lib/perl5/vendor_perl/5.6.1/i386-linux/Apache/src.pm line 134 Compilation failed in require at /usr/lib/perl5/vendor_perl/5.6.1/i386 +-linux/Apache/src.pm line 134. BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.6.1/ +i386-linux/Apache/src.pm line 134. Compilation failed in require at (eval 22) line 10. mkdir ../blib mkdir ../blib/arch mkdir ../blib/arch/auto mkdir ../blib/arch/auto/libapreq WARNING from evaluation of /root/.cpan/build/libapreq-1.0/Request/Make +file.PL: Can't locate object method "inc" via package "Apache::src" ( +perhaps you forgot to load "Apache::src"?) at (eval 23) line 26. WARNING from evaluation of /root/.cpan/build/libapreq-1.0/Cookie/Makef +ile.PL: Can't locate object method "inc" via package "Apache::src" (p +erhaps you forgot to load "Apache::src"?) at (eval 24) line 26. Writing Makefile for libapreq Can't locate loadable object for module File::Glob in @INC (@INC conta +ins: /usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1/i386-linux +/usr/lib/perl5/5.6.1 /usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5 +.6.1 /usr/lib/perl5/site_perl/5.6.1/i386-linux /usr/lib/perl5/site_pe +rl/5.6.1 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/sit +e_perl/5.6.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.6. +1/i386-linux /usr/lib/perl5/vendor_perl/5.6.1 /usr/lib/perl5/vendor_p +erl .) at /usr/lib/perl5/5.6.1/ExtUtils/Command.pm line 45 Compilation failed in require at /usr/lib/perl5/5.6.1/ExtUtils/Command +.pm line 45. BEGIN failed--compilation aborted at /usr/lib/perl5/5.6.1/ExtUtils/Com +mand.pm line 45. Compilation failed in require. BEGIN failed--compilation aborted. make: *** [blib/lib/.exists] Error 255 /usr/bin/make -- NOT OK Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible
Any clues?

Replies are listed 'Best First'.
Re: CPAN module issues with RedHat 7.3
by grantm (Parson) on Sep 08, 2002 at 22:38 UTC

    I just installed Apache::Cookie via CPAN.pm on RH7.3 with absolutely no problems. The errors re File::Glob look suspicious. Do you have these files:

    /usr/lib/perl5/5.6.1/i386-linux/File/Glob.pm /usr/lib/perl5/5.6.1/i386-linux/auto/File/Glob /usr/lib/perl5/5.6.1/i386-linux/auto/File/Glob/autosplit.ix /usr/lib/perl5/5.6.1/i386-linux/auto/File/Glob/Glob.bs /usr/lib/perl5/5.6.1/i386-linux/auto/File/Glob/Glob.so

    On my system this command threw up a few harmless messages regarding Test::Harness and Getopt which I have updated, but that was all.

    You might want to try:

    rpm --verify perl-5.6.1-34.99.6
Re: CPAN module issues with RedHat 7.3
by hacker (Priest) on Sep 09, 2002 at 11:05 UTC

    Have you tried CPANPLUS?

       perl -MCPAN -e 'install CPANPLUS'

    Follow all prompts given, and configure CPANPLUS. When completely installed, do the following:

       perl -MCPANPLUS -e 'shell'

    When inside the shell type 'o', then 'i *' to install and upgrade all older or pre-required modules, such as File::Glob in your example above.

    CPANPLUS has the added benefit of not trying to upgrade perl from within CPANPLUS for you, like CPAN often tries to do. It's much more intuitive in some respects than CPAN, but complements it well. It should help find and fix the missing or out-of-date module problems you seem to be having.

Re: CPAN module issues with RedHat 7.3
by krisahoch (Deacon) on Sep 09, 2002 at 11:53 UTC

    Coincedentally, I just installed RT 2.0.14. I had almost the same problems. Here is how I fixed it.

    make fixdeps

    It resolved all interdependant modules.
    HTH - Kristofer