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

Hi monks,
I installed AppConfig 1.52 because it is required prior
to installing Template Toolkit and When I ran
perl Makefile.PL PREFIX=/home/jzb
I still got the error

The Template Toolkit requires that the AppConfig module (version 1.52 or later) first be installed. This is used by the 'ttree' program for reading command line options and configuration files. It is available from CPAN:

Anyone know what's going on here? Will I need to edit Makefile.PL??

Replies are listed 'Best First'.
Re: Template Toolkit installation problems
by s0ttle (Scribe) on Sep 14, 2001 at 00:36 UTC
    Yes, you will need to edit the script 'Makefile.PL' to reflect the new location of AppConfig.pm I'm assuming you did install AppConfig.pm locally ....

    Run this script to see if the correct path to the module you installed (AppConfig.pm) is in the array @INC.
    #!/usr/bin/perl -w use strict; use lib qw(/home/jzb/lib); # ?? home/jzb/lib/AppConfig.pm ?? # note: make sure that the last # directory contains the location of # AppConfig.pm # so you might actually need something like # use lib qw(/home/jzb/lib/perl5/site_perl/5.005); # uncomment the above line and comment out the # line below 'use strict' eval "use AppConfig"; if ($@) { die "Can not find AppConfig.pm.....doh! \n"; } else { print "Found it!!! \n"; }
    Just so you see forehand what @INC's default values are.
    s0ttle:(~)%perl -e 'for(@INC){print $_, "\n";}' /usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503 /usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005 .
    - yo tengo mas que aprender.