rgren925 has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks.
I'm installing Sys::MemInfo from cpan and it has installed fine on linux, solaris and hp-ux. It's failing on aix (both 5.3 and 6.1) with the following:
CPAN: Storable loaded ok (v2.49) Reading '/home/nagios/.cpan/Metadata' Database was generated on Mon, 12 Jun 2017 22:29:03 GMT CPAN: LWP::UserAgent loaded ok (v6.27) Fetching with LWP: http://www.cpan.org/authors/01mailrc.txt.gz Reading '/home/nagios/.cpan/sources/authors/01mailrc.txt.gz' CPAN: Compress::Zlib loaded ok (v2.064) ...................................................................... +......DONE Fetching with LWP: http://www.cpan.org/modules/02packages.details.txt.gz Reading '/home/nagios/.cpan/sources/modules/02packages.details.txt.gz' Database was generated on Fri, 31 Aug 2018 21:17:03 GMT ............. New CPAN.pm version (v2.16) available. [Currently running version is v2.05] You might want to try install CPAN reload cpan to both upgrade CPAN.pm and run the new version without leaving the current session. ...............................................................DONE Fetching with LWP: http://www.cpan.org/modules/03modlist.data.gz Reading '/home/nagios/.cpan/sources/modules/03modlist.data.gz' DONE Writing /home/nagios/.cpan/Metadata Running install for module 'Sys::MemInfo' Fetching with LWP: http://www.cpan.org/authors/id/S/SC/SCRESTO/Sys-MemInfo-0.99.tar.gz CPAN: Digest::SHA loaded ok (v5.88) Warning (usually harmless): 'YAML' not installed, cannot parse '/home/ +nagios/.cpan/FTPstats.yml' Fetching with LWP: http://www.cpan.org/authors/id/S/SC/SCRESTO/CHECKSUMS Checksum for /home/nagios/.cpan/sources/authors/id/S/SC/SCRESTO/Sys-Me +mInfo-0.99.tar.gz ok CPAN: File::Temp loaded ok (v0.2304) 'YAML' not installed, will not store persistent state CPAN: CPAN::Meta loaded ok (v2.150010) Configuring S/SC/SCRESTO/Sys-MemInfo-0.99.tar.gz with Makefile.PL Sys::MemInfo for AIX Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for Sys::MemInfo Writing MYMETA.yml and MYMETA.json SCRESTO/Sys-MemInfo-0.99.tar.gz /opt/tools/nagios/perl/bin/perl Makefile.PL -- OK Running make for S/SC/SCRESTO/Sys-MemInfo-0.99.tar.gz CPAN: Module::CoreList loaded ok (v5.020001) cp MemInfo.pm blib/lib/Sys/MemInfo.pm /opt/tools/nagios/perl/bin/perl -e 'use ExtUtils::Mksymlists; + Mksymlists("NAME" => "Sys::MemInfo", "DL_FUNCS" => { }, "FU' Running Mkbootstrap for Sys::MemInfo () chmod 644 MemInfo.bs /opt/tools/nagios/perl/bin/perl /opt/tools/nagios/perl/lib/5.2 +0.1/ExtUtils/xsubpp -noprototypes -typemap /opt/tools/nagiosc Could not find a typemap for C type 'u_longlong_t'. The following C types are mapped by the current typemap: 'AV *', 'Boolean', 'CV *', 'FILE *', 'FileHandle', 'HV *', 'I16', 'I32 +', 'I8', 'IV', 'InOutStream', 'InputStream', 'NV', 'OutputStr' in MemInfo.xs, line 31 Could not find a typemap for C type 'u_longlong_t'. The following C types are mapped by the current typemap: 'AV *', 'Boolean', 'CV *', 'FILE *', 'FileHandle', 'HV *', 'I16', 'I32 +', 'I8', 'IV', 'InOutStream', 'InputStream', 'NV', 'OutputStr' in MemInfo.xs, line 44 make: 1254-004 The error code from the last command is 1. Stop. SCRESTO/Sys-MemInfo-0.99.tar.gz /bin/make -- NOT OK
I'm guessing that there is some c library that is missing that contains 'u_longlong_t; but I really don't know that stuff very well. Any ideas what I need to do to get this module to install?
Thanks very much, Rick
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sys::MemInfo on AIX
by bliako (Abbot) on Sep 01, 2018 at 12:48 UTC | |
by rgren925 (Beadle) on Sep 04, 2018 at 20:14 UTC | |
by bliako (Abbot) on Sep 05, 2018 at 01:36 UTC | |
|
Re: Sys::MemInfo on AIX
by Laurent_R (Canon) on Sep 01, 2018 at 09:04 UTC | |
by rgren925 (Beadle) on Sep 04, 2018 at 18:52 UTC | |
by Laurent_R (Canon) on Sep 04, 2018 at 21:20 UTC |