Discussion:
[suggest] broken "mrtg" package for RHEL4
Dave B
2010-07-10 16:17:37 UTC
Permalink
One of my 64-bit RHEL4 machines, last night, ended up with:

mrtg-2.16.4-1.el4.rf

Two problems...

1. this overrides the Redhat included package mrtg-2.10.15-2a
2. the package is missing MRTG_lib.pm:

Can't locate MRTG_lib.pm in @INC (@INC contains: /usr/bin/../lib/mrtg2 /usr/bin
/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/5.8.5
/usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.5
/usr/lib/perl5/site_perl
/usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.5
/usr/lib64/perl5/vendor_perl/5.8.3/x86_64-linux-thread-multi
/usr/lib/perl5/vendor_perl .) at /usr/bin/mrtg line 89.
BEGIN failed--compilation aborted at /usr/bin/mrtg line 89.


thanks.
--
********************************
David William Botsch
Programmer/Analyst
CNF Computing
botsch at cnf.cornell.edu
********************************
Christoph Maser
2010-07-11 13:51:20 UTC
Permalink
Post by Dave B
mrtg-2.16.4-1.el4.rf
Two problems...
1. this overrides the Redhat included package mrtg-2.10.15-2a
/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/5.8.5
/usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.5
/usr/lib/perl5/site_perl
/usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.5
/usr/lib64/perl5/vendor_perl/5.8.3/x86_64-linux-thread-multi
/usr/lib/perl5/vendor_perl .) at /usr/bin/mrtg line 89.
BEGIN failed--compilation aborted at /usr/bin/mrtg line 89.
thanks.
The library problem is triggered by this code:

use lib "${FindBin::Bin}${main::SL}..${main::SL}lib${main::SL}mrtg2"

^^hardcoded lib string

in the perl bianries, the redhat/fedora packages have a very simple
patch to work around that, i will add that tomorrow.
Much nicer would be if the upstream package would install the perl
modules in standard directories (perl -V:installvendorlib).

+C
Theodor-Ciobanu
2010-07-11 14:08:25 UTC
Permalink
I've hit this same issue on a CentOS 5.5 x86_64. The rpmforge package installs
the mrtg libs in lib64/, while mrtg expects them in the hardcoded path lib/.
I've temporarily fixed this on my box by:
ln -s /usr/lib64/mrtg2 /usr/lib/mrtg2
Dave B
2010-07-10 16:17:37 UTC
Permalink
One of my 64-bit RHEL4 machines, last night, ended up with:

mrtg-2.16.4-1.el4.rf

Two problems...

1. this overrides the Redhat included package mrtg-2.10.15-2a
2. the package is missing MRTG_lib.pm:

Can't locate MRTG_lib.pm in @INC (@INC contains: /usr/bin/../lib/mrtg2 /usr/bin
/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/5.8.5
/usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.5
/usr/lib/perl5/site_perl
/usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.5
/usr/lib64/perl5/vendor_perl/5.8.3/x86_64-linux-thread-multi
/usr/lib/perl5/vendor_perl .) at /usr/bin/mrtg line 89.
BEGIN failed--compilation aborted at /usr/bin/mrtg line 89.


thanks.
--
********************************
David William Botsch
Programmer/Analyst
CNF Computing
botsch at cnf.cornell.edu
********************************
Christoph Maser
2010-07-11 13:51:20 UTC
Permalink
Post by Dave B
mrtg-2.16.4-1.el4.rf
Two problems...
1. this overrides the Redhat included package mrtg-2.10.15-2a
/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/5.8.5
/usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.5
/usr/lib/perl5/site_perl
/usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.5
/usr/lib64/perl5/vendor_perl/5.8.3/x86_64-linux-thread-multi
/usr/lib/perl5/vendor_perl .) at /usr/bin/mrtg line 89.
BEGIN failed--compilation aborted at /usr/bin/mrtg line 89.
thanks.
The library problem is triggered by this code:

use lib "${FindBin::Bin}${main::SL}..${main::SL}lib${main::SL}mrtg2"

^^hardcoded lib string

in the perl bianries, the redhat/fedora packages have a very simple
patch to work around that, i will add that tomorrow.
Much nicer would be if the upstream package would install the perl
modules in standard directories (perl -V:installvendorlib).

+C
Theodor-Ciobanu
2010-07-11 14:08:25 UTC
Permalink
I've hit this same issue on a CentOS 5.5 x86_64. The rpmforge package installs
the mrtg libs in lib64/, while mrtg expects them in the hardcoded path lib/.
I've temporarily fixed this on my box by:
ln -s /usr/lib64/mrtg2 /usr/lib/mrtg2
Dave B
2010-07-10 16:17:37 UTC
Permalink
One of my 64-bit RHEL4 machines, last night, ended up with:

mrtg-2.16.4-1.el4.rf

Two problems...

1. this overrides the Redhat included package mrtg-2.10.15-2a
2. the package is missing MRTG_lib.pm:

Can't locate MRTG_lib.pm in @INC (@INC contains: /usr/bin/../lib/mrtg2 /usr/bin
/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/5.8.5
/usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.5
/usr/lib/perl5/site_perl
/usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.5
/usr/lib64/perl5/vendor_perl/5.8.3/x86_64-linux-thread-multi
/usr/lib/perl5/vendor_perl .) at /usr/bin/mrtg line 89.
BEGIN failed--compilation aborted at /usr/bin/mrtg line 89.


thanks.
--
********************************
David William Botsch
Programmer/Analyst
CNF Computing
botsch at cnf.cornell.edu
********************************
Christoph Maser
2010-07-11 13:51:20 UTC
Permalink
Post by Dave B
mrtg-2.16.4-1.el4.rf
Two problems...
1. this overrides the Redhat included package mrtg-2.10.15-2a
/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/5.8.5
/usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.5
/usr/lib/perl5/site_perl
/usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.5
/usr/lib64/perl5/vendor_perl/5.8.3/x86_64-linux-thread-multi
/usr/lib/perl5/vendor_perl .) at /usr/bin/mrtg line 89.
BEGIN failed--compilation aborted at /usr/bin/mrtg line 89.
thanks.
The library problem is triggered by this code:

use lib "${FindBin::Bin}${main::SL}..${main::SL}lib${main::SL}mrtg2"

^^hardcoded lib string

in the perl bianries, the redhat/fedora packages have a very simple
patch to work around that, i will add that tomorrow.
Much nicer would be if the upstream package would install the perl
modules in standard directories (perl -V:installvendorlib).

+C
Theodor-Ciobanu
2010-07-11 14:08:25 UTC
Permalink
I've hit this same issue on a CentOS 5.5 x86_64. The rpmforge package installs
the mrtg libs in lib64/, while mrtg expects them in the hardcoded path lib/.
I've temporarily fixed this on my box by:
ln -s /usr/lib64/mrtg2 /usr/lib/mrtg2
Dave B
2010-07-10 16:17:37 UTC
Permalink
One of my 64-bit RHEL4 machines, last night, ended up with:

mrtg-2.16.4-1.el4.rf

Two problems...

1. this overrides the Redhat included package mrtg-2.10.15-2a
2. the package is missing MRTG_lib.pm:

Can't locate MRTG_lib.pm in @INC (@INC contains: /usr/bin/../lib/mrtg2 /usr/bin
/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/5.8.5
/usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.5
/usr/lib/perl5/site_perl
/usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.5
/usr/lib64/perl5/vendor_perl/5.8.3/x86_64-linux-thread-multi
/usr/lib/perl5/vendor_perl .) at /usr/bin/mrtg line 89.
BEGIN failed--compilation aborted at /usr/bin/mrtg line 89.


thanks.
--
********************************
David William Botsch
Programmer/Analyst
CNF Computing
botsch at cnf.cornell.edu
********************************
Christoph Maser
2010-07-11 13:51:20 UTC
Permalink
Post by Dave B
mrtg-2.16.4-1.el4.rf
Two problems...
1. this overrides the Redhat included package mrtg-2.10.15-2a
/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/5.8.5
/usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.5
/usr/lib/perl5/site_perl
/usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.5
/usr/lib64/perl5/vendor_perl/5.8.3/x86_64-linux-thread-multi
/usr/lib/perl5/vendor_perl .) at /usr/bin/mrtg line 89.
BEGIN failed--compilation aborted at /usr/bin/mrtg line 89.
thanks.
The library problem is triggered by this code:

use lib "${FindBin::Bin}${main::SL}..${main::SL}lib${main::SL}mrtg2"

^^hardcoded lib string

in the perl bianries, the redhat/fedora packages have a very simple
patch to work around that, i will add that tomorrow.
Much nicer would be if the upstream package would install the perl
modules in standard directories (perl -V:installvendorlib).

+C
Theodor-Ciobanu
2010-07-11 14:08:25 UTC
Permalink
I've hit this same issue on a CentOS 5.5 x86_64. The rpmforge package installs
the mrtg libs in lib64/, while mrtg expects them in the hardcoded path lib/.
I've temporarily fixed this on my box by:
ln -s /usr/lib64/mrtg2 /usr/lib/mrtg2
Dave B
2010-07-10 16:17:37 UTC
Permalink
One of my 64-bit RHEL4 machines, last night, ended up with:

mrtg-2.16.4-1.el4.rf

Two problems...

1. this overrides the Redhat included package mrtg-2.10.15-2a
2. the package is missing MRTG_lib.pm:

Can't locate MRTG_lib.pm in @INC (@INC contains: /usr/bin/../lib/mrtg2 /usr/bin
/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/5.8.5
/usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.5
/usr/lib/perl5/site_perl
/usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.5
/usr/lib64/perl5/vendor_perl/5.8.3/x86_64-linux-thread-multi
/usr/lib/perl5/vendor_perl .) at /usr/bin/mrtg line 89.
BEGIN failed--compilation aborted at /usr/bin/mrtg line 89.


thanks.
--
********************************
David William Botsch
Programmer/Analyst
CNF Computing
botsch at cnf.cornell.edu
********************************
Christoph Maser
2010-07-11 13:51:20 UTC
Permalink
Post by Dave B
mrtg-2.16.4-1.el4.rf
Two problems...
1. this overrides the Redhat included package mrtg-2.10.15-2a
/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/5.8.5
/usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.5
/usr/lib/perl5/site_perl
/usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.5
/usr/lib64/perl5/vendor_perl/5.8.3/x86_64-linux-thread-multi
/usr/lib/perl5/vendor_perl .) at /usr/bin/mrtg line 89.
BEGIN failed--compilation aborted at /usr/bin/mrtg line 89.
thanks.
The library problem is triggered by this code:

use lib "${FindBin::Bin}${main::SL}..${main::SL}lib${main::SL}mrtg2"

^^hardcoded lib string

in the perl bianries, the redhat/fedora packages have a very simple
patch to work around that, i will add that tomorrow.
Much nicer would be if the upstream package would install the perl
modules in standard directories (perl -V:installvendorlib).

+C
Theodor-Ciobanu
2010-07-11 14:08:25 UTC
Permalink
I've hit this same issue on a CentOS 5.5 x86_64. The rpmforge package installs
the mrtg libs in lib64/, while mrtg expects them in the hardcoded path lib/.
I've temporarily fixed this on my box by:
ln -s /usr/lib64/mrtg2 /usr/lib/mrtg2

Loading...