in reply to Re: Installing Modules: Noob having problems
in thread Installing Modules: Noob having problems

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

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

    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 ]

      Thankyou very much Ed. I'll go away for now and digest the verbose output of that test.

      I like this place already, hopefully I'll be back with some more mature enquiries once I get my all the necessary modules installed and my code (chat server) is underway, I'm just waiting for my login details to come back too whereafter my login handle should be 'Prisoner 9'

      Thanks again for your prompt and very helpful resonse

      Andy

Re: Re: Re: Installing Modules: Noob having problems
by halley (Prior) on May 09, 2003 at 13:54 UTC

    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 ]

      Just out of curiosity halley, what do you dislike about the CPAN shell?

      -- vek --

        An installation of Red Hat Linux is built around the RPM database. CPAN's shell has no connection to that database, so files it installs are not as trackable.

        Also, CPAN's shell has a habit of wanting to fetch and build the latest perl interpreter. The interface is not very intuitive, and again, mucks up what you've already installed unless you know the right place to say "no."

        Also, good packages are built as non-root, and installed as root. I don't like root to compile things. There are too many ways a Makefile can make a deadly mistake.

        For the modules I install from CPAN, I run it through the latest cpanflute script, which gives me a nice rebuildable-as-not-root perl-Foo-Bar-1.0.src.rpm. For the few modules it doesn't handle, I make the RPM .spec file myself. RPM can then track perl-Foo-Bar dependencies cleanly and automatically.

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

      yes indeed its there and fuly working I guess. I will check out 2 other options , the CPAN method you mention and RPM which I have just been reading about. All good. Progress stepwise, but satisfying progress nontheless. Cheers Ed.
Re: Re: Re: Installing Modules: Noob having problems
by Anonymous Monk on May 09, 2003 at 13:48 UTC
    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