http://qs321.pair.com?node_id=876581

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

I tried to install RRDs
I am using debian lenny 5.0
I refer this link
http://kobesearch.cpan.org/htdocs/RRD-Simple/INSTALL.html

but when I install the librrds-perl
 sudo apt-get install librrds-perl
It says the following error
"E: Internal Error, Could not perform immediate configuration (2) on perl-modules"
what this error denotes !
help me to install RRDs

Replies are listed 'Best First'.
Re: RRDs Installation problem
by Anonymous Monk on Dec 11, 2010 at 11:28 UTC
Re: RRDs Installation problem
by Khen1950fx (Canon) on Dec 11, 2010 at 12:28 UTC
    First, download the source here.

    Second, install using

    ./configure --with-gnu-ld, make, make install, (do your system's ldcon +fig. The libs are in /usr/local/rrdtool-1.3.1/lib).

    Third, cd to ./rrdtool-1.3.1/bindings/perl-shared.

    Fourth, run perl Makefile.PL, make, make test, make install.

    Fifth, RRDs is installed.

    Sixth, run cpan RRD::Simple

    Seventh, done!

    Update: if t/32 fails, do force install.

      No, don't do that on a Debian system. Use the Debian provided packages, or compile a complete perl suite together with modules in /opt or /usr/local. Debian system tools rely heavily on perl, and you may break your system by overwriting modules with different versions that the package manager isn't aware of.
Re: RRDs Installation problem
by wazoox (Prior) on Dec 11, 2010 at 18:00 UTC

    As Anonymous said, you may have deleted a system directory and your system may be broken and need reinstallation. First, use 'aptitude' instead of 'apt-get', it's more advanced; aptitude and apt-get share most options. You should first try to repair the installation:

    aptitude update aptitude install -f

    This should update/remove/install needed packages.

    If these commands fail to set back the system to a working state, as apparently you're not a skilled Debian administrator, you must consider your system broken. You'll have to reinstall it from scratch. else you can retry to install :

    aptitude install librrds-perl