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


In reply to Sys::MemInfo on AIX by rgren925

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.