Page 1 of 1

Logwatch CPU + Memory modules install error [Resolved]

Posted: Sun Apr 15, 2012 9:56 am
by modem7
Hey guys,

I've got logwatch sending me emails which is great, however, one of the modules is giving me the following:

Code: Select all

No Sys::CPU module installed. To install, execute the command: perl -MCPAN -e 'install Sys::CPU' No Sys::MemInfo module installed. To install, execute the command: perl -MCPAN -e 'install Sys::MemInfo' Machine: x86_64 Release: Linux 2.6.35.14-106.fc14.x86_64
So I run the command it recommends:

Code: Select all

#perl -MCPAN -e 'install Sys::CPU' Going to read '/root/.cpan/Metadata' Database was generated on Sun, 15 Apr 2012 10:51:03 GMT Running install for module 'Sys::CPU' Running make for M/MK/MKODERER/Sys-CPU-0.52.tar.gz Checksum for /root/.cpan/sources/authors/id/M/MK/MKODERER/Sys-CPU-0.52.tar.gz ok CPAN.pm: Going to build M/MK/MKODERER/Sys-CPU-0.52.tar.gz Checking if your kit is complete... Looks good Writing Makefile for Sys::CPU Could not read '/root/.cpan/build/Sys-CPU-0.52-38xqp2/META.yml'. Falling back to other methods to determine prerequisites cp CPU.pm blib/lib/Sys/CPU.pm /usr/bin/perl /usr/share/perl5/ExtUtils/xsubpp -typemap /usr/share/perl5/ExtUtils/typemap CPU.xs > CPU.xsc && mv CPU.xsc CPU.c Please specify prototyping behavior for CPU.xs (see perlxs manual) gcc -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DVERSION=\"0.52\" -DXS_VERSION=\"0.52\" -fPIC "-I/usr/lib64/perl5/CORE" CPU.c /bin/sh: gcc: command not found make: *** [CPU.o] Error 127 MKODERER/Sys-CPU-0.52.tar.gz /usr/bin/make -- NOT OK 'YAML' not installed, will not store persistent state Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible
So it looks like YAML is not installed.........any ideas how I would go about this?

edit:

I tried running #yum install -y perl-YAML perl-DBD-Pg

and now get the following:

Code: Select all

# perl -MCPAN -e 'install Sys::CPU' Going to read '/root/.cpan/Metadata' Database was generated on Sun, 15 Apr 2012 10:51:03 GMT Running install for module 'Sys::CPU' Running make for M/MK/MKODERER/Sys-CPU-0.52.tar.gz Checksum for /root/.cpan/sources/authors/id/M/MK/MKODERER/Sys-CPU-0.52.tar.gz ok CPAN.pm: Going to build M/MK/MKODERER/Sys-CPU-0.52.tar.gz Checking if your kit is complete... Looks good Writing Makefile for Sys::CPU cp CPU.pm blib/lib/Sys/CPU.pm /usr/bin/perl /usr/share/perl5/ExtUtils/xsubpp -typemap /usr/share/perl5/ExtUtils/typemap CPU.xs > CPU.xsc && mv CPU.xsc CPU.c Please specify prototyping behavior for CPU.xs (see perlxs manual) gcc -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DVERSION=\"0.52\" -DXS_VERSION=\"0.52\" -fPIC "-I/usr/lib64/perl5/CORE" CPU.c /bin/sh: gcc: command not found make: *** [CPU.o] Error 127 MKODERER/Sys-CPU-0.52.tar.gz /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
Many thanks!

Re: Logwatch CPU + Memory modules

Posted: Sun Apr 15, 2012 10:02 am
by modem7
I resolved the cpu module installation by running:

Code: Select all

#sudo yum install cmake gcc


however, the memory installation gives me:

Code: Select all

# perl -MCPAN -e 'install Sys::MemInfo' Going to read '/root/.cpan/Metadata' Database was generated on Sun, 15 Apr 2012 10:51:03 GMT Running install for module 'Sys::MemInfo' Running make for S/SC/SCRESTO/Sys-MemInfo-0.91.tar.gz Fetching with LWP: ftp://mirror.tje.me.uk/pub/mirrors/ftp.cpan.org/authors/id/S/SC/SCRESTO/Sys-MemInfo-0.91.tar.gz Fetching with LWP: ftp://mirror.tje.me.uk/pub/mirrors/ftp.cpan.org/authors/id/S/SC/SCRESTO/CHECKSUMS Checksum for /root/.cpan/sources/authors/id/S/SC/SCRESTO/Sys-MemInfo-0.91.tar.gz ok CPAN.pm: Going to build S/SC/SCRESTO/Sys-MemInfo-0.91.tar.gz Sys::MemInfo for Linux 2.3.17 and higher Checking if your kit is complete... Looks good Writing Makefile for Sys::MemInfo cp MemInfo.pm blib/lib/Sys/MemInfo.pm /usr/bin/perl /usr/share/perl5/ExtUtils/xsubpp -noprototypes -typemap /usr/share/perl5/ExtUtils/typemap MemInfo.xs > MemInfo.xsc && mv MemInfo.xsc MemInfo.c gcc -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DVERSION=\"0.91\" -DXS_VERSION=\"0.91\" -fPIC "-I/usr/lib64/perl5/CORE" MemInfo.c Running Mkbootstrap for Sys::MemInfo () chmod 644 MemInfo.bs rm -f blib/arch/auto/Sys/MemInfo/MemInfo.so gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic MemInfo.o -o blib/arch/auto/Sys/MemInfo/MemInfo.so \ \ chmod 755 blib/arch/auto/Sys/MemInfo/MemInfo.so cp MemInfo.bs blib/arch/auto/Sys/MemInfo/MemInfo.bs chmod 644 blib/arch/auto/Sys/MemInfo/MemInfo.bs Manifying blib/man3/Sys::MemInfo.3pm SCRESTO/Sys-MemInfo-0.91.tar.gz /usr/bin/make -- OK Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/1.t .. Can't locate Test/More.pm in @INC (@INC contains: /root/.cpan/build/Sys-MemInfo-MPApK6/blib/lib /root/.cpan/build/Sys-MemInfo-MPApK6/blib/arch /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5 /usr/share/perl5 /usr/lib64/perl5 /usr/share/perl5 /usr/local/lib64/perl5/site_perl/5.10.0/x86_64-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib64/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl /usr/lib/perl5/site_perl .) at t/1.t line 6. BEGIN failed--compilation aborted at t/1.t line 6. t/1.t .. Dubious, test returned 2 (wstat 512, 0x200) No subtests run Test Summary Report ------------------- t/1.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output Files=1, Tests=0, 0 wallclock secs ( 0.03 usr 0.00 sys + 0.00 cusr 0.01 csys = 0.04 CPU) Result: FAIL Failed 1/1 test programs. 0/0 subtests failed. make: *** [test_dynamic] Error 2 SCRESTO/Sys-MemInfo-0.91.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports SCRESTO/Sys-MemInfo-0.91.tar.gz Running make install make test had returned bad status, won't install without force
Do I need to run something with sudo?

Re: Logwatch CPU + Memory modules install error

Posted: Sun Apr 15, 2012 10:40 am
by bigfoot65
Rather than doing sudo, its best to be root via su -. I never use sudo as root guarantees that I am in the write state.

Not sure why you are having issues as Logwatch has never failed me yet. Did you uninstall something that may have caused this issue?

Re: Logwatch CPU + Memory modules install error

Posted: Sun Apr 15, 2012 10:46 am
by modem7
Rather than doing sudo, its best to be root via su -. I never use sudo as root guarantees that I am in the write state.

Not sure why you are having issues as Logwatch has never failed me yet. Did you uninstall something that may have caused this issue?
Good idea on su, I'll do this from now on.

Not that I'm aware of, that particular part of logwatch has never really worked (everything else works wonders with it).

tried (before the su advice):

Code: Select all

sudo perl -MCPAN -e shell force install Sys::MemInfo
result:

Code: Select all

Going to read '/root/.cpan/Metadata' Database was generated on Sun, 15 Apr 2012 10:51:03 GMT Running install for module 'Sys::MemInfo' Running make for S/SC/SCRESTO/Sys-MemInfo-0.91.tar.gz Checksum for /root/.cpan/sources/authors/id/S/SC/SCRESTO/Sys-MemInfo-0.91.tar.gz ok Scanning cache /root/.cpan/build for sizes ............................................................................DONE CPAN.pm: Going to build S/SC/SCRESTO/Sys-MemInfo-0.91.tar.gz Sys::MemInfo for Linux 2.3.17 and higher Checking if your kit is complete... Looks good Writing Makefile for Sys::MemInfo cp MemInfo.pm blib/lib/Sys/MemInfo.pm /usr/bin/perl /usr/share/perl5/ExtUtils/xsubpp -noprototypes -typemap /usr/share/perl5/ExtUtils/typemap MemInfo.xs > MemInfo.xsc && mv MemInfo.xsc MemInfo.c gcc -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DVERSION=\"0.91\" -DXS_VERSION=\"0.91\" -fPIC "-I/usr/lib64/perl5/CORE" MemInfo.c Running Mkbootstrap for Sys::MemInfo () chmod 644 MemInfo.bs rm -f blib/arch/auto/Sys/MemInfo/MemInfo.so gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic MemInfo.o -o blib/arch/auto/Sys/MemInfo/MemInfo.so \ \ chmod 755 blib/arch/auto/Sys/MemInfo/MemInfo.so cp MemInfo.bs blib/arch/auto/Sys/MemInfo/MemInfo.bs chmod 644 blib/arch/auto/Sys/MemInfo/MemInfo.bs Manifying blib/man3/Sys::MemInfo.3pm SCRESTO/Sys-MemInfo-0.91.tar.gz /usr/bin/make -- OK Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/1.t .. Can't locate Test/More.pm in @INC (@INC contains: /root/.cpan/build/Sys-MemInfo-1DxbSc/blib/lib /root/.cpan/build/Sys-MemInfo-1DxbSc/blib/arch /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5 /usr/share/perl5 /usr/lib64/perl5 /usr/share/perl5 /usr/local/lib64/perl5/site_perl/5.10.0/x86_64-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib64/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl /usr/lib/perl5/site_perl .) at t/1.t line 6. BEGIN failed--compilation aborted at t/1.t line 6. t/1.t .. Dubious, test returned 2 (wstat 512, 0x200) No subtests run Test Summary Report ------------------- t/1.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output Files=1, Tests=0, 0 wallclock secs ( 0.03 usr 0.01 sys + 0.01 cusr 0.00 csys = 0.05 CPU) Result: FAIL Failed 1/1 test programs. 0/0 subtests failed. make: *** [test_dynamic] Error 2 SCRESTO/Sys-MemInfo-0.91.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports SCRESTO/Sys-MemInfo-0.91.tar.gz Running make install Files found in blib/arch: installing files in blib/lib into architecture dependent library tree Installing /usr/local/lib64/perl5/auto/Sys/MemInfo/MemInfo.so Installing /usr/local/lib64/perl5/auto/Sys/MemInfo/MemInfo.bs Installing /usr/local/lib64/perl5/Sys/MemInfo.pm Installing /usr/local/share/man/man3/Sys::MemInfo.3pm Appending installation info to /usr/lib64/perl5/perllocal.pod SCRESTO/Sys-MemInfo-0.91.tar.gz /usr/bin/make install -- OK Failed during this command: SCRESTO/Sys-MemInfo-0.91.tar.gz : make_test FAILED but failure ignored because 'force' in effect

unfortunately, it doesn't seem to have had the desired effect (probably not too surprising as the make test failed. It has however, stopped that particular error coming up on the email reports).

Will what I did have any adverse effects, or is it worthwhile just ignoring it as all it really does it give static info that I know about anyway?

Re: Logwatch CPU + Memory modules install error

Posted: Sun Apr 15, 2012 10:49 am
by bigfoot65
Not sure what is going on, but maybe try doing yum erase logwatch then reinstall. Something has gotten off somewhere, but hard to say what it is.

Re: Logwatch CPU + Memory modules install error [Resolved]

Posted: Thu May 31, 2012 6:18 am
by modem7
It strangely started working on it's own.

The app developer for Logwatch was exceptionally helpful as well!