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

Greetings Perl masters,

I am quite new to this so please dont beat me. If this is a FAQ I havent found the answer by search, and though I have read Tachyons tut it doesn't seem to cover this either.

When adding a module I get a fail during make

[andyf@localhost Data-Dumper-2.101]$ make make: *** Warning: File `/usr/lib/perl5/5.8.0/i386-linux-thread-multi/ +Config.pm' has modification time in the future (2002-09-02 05:16:00 > + 2002-05-09 01:59:38)Makefile out-of-date with respect to /usr/lib/pe +rl5/5.8.0/i386-linux-thread-multi/Config.pm /usr/lib/perl5/5.8.0/i386 +-linux-thread-multi/CORE/config.h Cleaning current config before rebuilding Makefile... make -f Makefile.old clean > /dev/null 2>&1 || /bin/sh -c true /usr/bin/perl Makefile.PL Checking if your kit is complete... Looks good Writing Makefile for Data::Dumper ==> Your Makefile has been rebuilt. <== ==> Please rerun the make command. <== false make: *** [Makefile] Error 1 [andyf@localhost Data-Dumper-2.101]$

What is a make error 1? I am building on a freshly installed RedHat 8.0, all the tools , gcc, make and so on seem to be installed and working correctly. Also this is not a permissions problem since I can't accomplish this as Root either.

Thanks in anticipation of any wisdom Andy

Replies are listed 'Best First'.
Re: Installing Modules: Noob having problems
by halley (Prior) on May 09, 2003 at 13:18 UTC

    I think the first thing you should do is check your system's clock; it's not 9 May 2002. ;)

    --
    [ e d @ h a l l e y . c c ]

      ROFL, ty indeed Ed! (holds head in shame)

      Well I said it was a FRESH install

      Ok, I get that past make , make test on the other hand is throwing up a quite alarming number of Uninitialised strings and other things, so my next question....would it be wise to go ahead and install?

      Perhaps I am doing something naive, I am just trying to add a few modules to the existing perl binary shipped with the system, should I be rebuilding perl completely ?

      Here's the output of make test...

      Failed Test Stat Wstat Total Fail Failed List of Failed ---------------------------------------------------------------------- +--------- t/dumper.t 162 78 48.15% 1 3-4 6-7 9-10 12-13 15-16 +18-19 21- 22 24-25 27-28 30-31 33-34 +36-37 39- 40 42 49 51-52 54-55 57-58 +60-61 63- 64 66-67 69-70 72-73 75-76 +78-79 81- 82 84-85 87-88 90 97 99-100 + 102-103 105-106 108-109 111-112 114 +-115 117- 118 120 145 147 151 153 157 + 159 Failed 1/2 test scripts, 50.00% okay. 78/163 subtests failed, 52.15% o +kay. make: *** [test_dynamic] Error 29

        Call me silly, but Data::Dumper should already be in your Red Hat supplied installation of Perl.

        You can test whether you already have a module with a command like the following:

        % perl -MData::Dumper -e1
        It'll give an applicable error message, or no response for success. For a more inspiring test of this module, try:
        % perl -MData::Dumper -e 'print Dumper {one=>1};'

        --
        [ e d @ h a l l e y . c c ]

        As for the larger question of building modules you fetch from CPAN, most are nowhere near so complicated as this.

        I'm not a fan of CPAN's "shell" but you might want to google for something like cpan shell redhat howto and walk through some examples.

        --
        [ e d @ h a l l e y . c c ]

        this may be helpful information:

        [andyf@localhost Data-Dumper-2.101]$ perl -v This is perl, v5.8.0 built for i386-linux-thread-multi
Re: Installing Modules: Noob having problems
by PodMaster (Abbot) on May 09, 2003 at 21:57 UTC
    Don't bother. Data::Dumper is part of CORE and that version is outdated.
    use Module::CoreList; $_ = 'Data::Dumper'; local $\="\n"; print for $Module::CoreList::version{5.006}{$_}, $Module::CoreList::version{5.006001}{$_}, $Module::CoreList::version{5.008}{$_}; __END__ 2.101 2.102 2.12


    MJD says you can't just make shit up and expect the computer to know what you mean, retardo!
    I run a Win32 PPM repository for perl 5.6x+5.8x. I take requests.
    ** The Third rule of perl club is a statement of fact: pod is sexy.