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

I'm trying to install RRDTool::OO on two machines with CPAN.pm which are running respectively Gentoo and Debian Linux.

Update: Solved!

Preliminarly I have succesfully installed RRDtool by means of the respective OS-specific tools.

Now on the former machine I could install RRDTool::OO succesfully, while on the latter the install procedure does not complete and I get the following output at the CPAN prompt:

This module requires the RRDs module to be installed. It is available in the rrdtool distribution: http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/rrdtool.tar.gz Do you want me to install it for you right now ([y]/n)?Can't open INST +ALLDIRS=site: No such file or directory at Makefile.PL line 19. Downloading ... done.
And then, later on:
sh: line 1: configure: command not found make: *** No targets specified and no makefile found. Stop. sh: line 1: cd: perl-shared: No such file or directory Can't open perl script "Makefile.PL": No such file or directory make: *** No targets specified and no makefile found. Stop. make: *** No rule to make target `test'. Stop. make: *** No rule to make target `install'. Stop. Install failed: at Makefile.PL line 58. ################################################ # Please check the INSTALLATION section in the # # RRDTool::OO manual page. # ################################################ make: *** No targets specified and no makefile found. Stop. /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
(of course I pasted the lines I thought to be relevant, the other ones are info from tar)

Replies are listed 'Best First'.
Re: Seeking advice re installing RRDTool::OO
by Tanktalus (Canon) on Jul 05, 2005 at 13:44 UTC

    The "INSTALLDIRS=site" line looks like a shell problem to me. What shell are you using as your own user? As root? I'm guessing that one, or both, of these are not sh, ksh, or bash. Try reseting your shell(s) back to one of these and trying again. It may be as simple as reseting the SHELL environment variable to /bin/sh or something - but how to do that in your shell, I'm not entirely sure.

      $ echo $SHELL /bin/bash
      Also,
      cpan> o conf shell shell /bin/bash

      Update: All in all I think it all boils down to

      $ perl -MRRDs -e1
      on the Gentoo machine, and
      $ perl -MRRDs -e1 Can't locate RRDs.pm in @INC (@INC contains: /etc/perl /usr/local/lib/ +perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/lib/perl5 /usr/share/perl +5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .). BEGIN failed--compilation aborted.
      on the debian one. So this may not be strictly a Perl question, but a Debian package installation one. Any idea would be welcome. Madly searching for info over Google in the meantime...
Re: Seeking advice re installing RRDTool::OO
by ghenry (Vicar) on Jul 05, 2005 at 13:13 UTC

    Is this still using the OS tools?

    Have you tried just downloading it by hand and running:

    perl MakeFile.PL make make test make install

    And still getting the same errors?

    Walking the road to enlightenment... I found a penguin and a camel on the way.....
    Fancy a yourname@perl.me.uk? Just ask!!!
      No, I meant that I did
      $ sudo emerge net-analyzer/rrdtool $ sudo perl -MCPAN -e shell
      in one case, and everything went like a charm, and
      $ sudo apt-get install rrdtool $ sudo perl -MCPAN -e shell
      in the other one, and I couldn't get it to work.

      Of course I'm also trying to install it manually, but as tphyahoo pointed out at Re: Seeking advice re installing RRDTool::OO, I guess that in fact the problem is due to the absence of the RRDs module, although it should be there...

[SOLVED] Re: Seeking advice re installing RRDTool::OO
by blazar (Canon) on Jul 05, 2005 at 14:15 UTC
    Solved! Basically I found that the Debian guys splitted the RRDtool package, so that one has to apt-get install both rrdtool and librrds-perl.
      Hmm.. so it is an incomplete dependency configuration? Send a bug report.
        I'm not really sure: RDDtool can be used without "librdds-perl", but RDDTool::OO needs (RDDs which is not hosted on CPAN but is provided by) it.
Re: Seeking advice re installing RRDTool::OO
by tphyahoo (Vicar) on Jul 05, 2005 at 13:03 UTC
    Sounds like you need to have "RRDs" module installed, whatever that is. (From the output you pasted.)

    Did you click yes when prompted, and then that didn't work? Maybe you need to install "RRDs" manually, rather than let this script help you like it wants to.

    This is just my shot in the dark.

    Good luck.

      Sounds like you need to have "RRDs" module installed, whatever that is. (From the output you pasted.)
      RRDs is part of the RRDtool distribution. Or at least it should be. Indded on the Gentoo machine if I type
      man RRDs
      I get its documentation, while on the Debian one, I don't, so i guess that for some reason it wasn't installed.
      Did you click yes when prompted, and then that didn't work? Maybe you need to install "RRDs" manually, rather than let this script help you like it wants to.
      Actually I couldn't click anything for as soon as the prompt appeared, it didn't give me the time to select an option, but it silently went on instead. I guess that something wrong happened here:
      Do you want me to install it for you right now ([y]/n)?Can't open INST +ALLDIRS=si ^^^^^^^^^^^^ +^^^^^^^^^^ ^^^^^^^^^^^^ +^^^^^^^^^^
      Please note that I have
      cpan> o conf prerequisites_policy prerequisites_policy ask
      set, so I should be prompted...