OS : RHEL 7.7 (AWS)

when I try to Install Perl module NetSNMP::OID have the below error

Could not find a typemap for C type 'netsnmp_oid *'

[root@ip-10-1-1-75 NetSNMP-OID-5.0404]# perl Makefile.PL Generating a +Unix-style Makefile Writing Makefile for NetSNMP::OID Writing MYMETA. +yml and MYMETA.json [root@ip-10-1-1-75 NetSNMP-OID-5.0404]# make Skip blib/lib/NetSNMP/OID.pm (unchanged) Running Mkbootstrap for OID () chmod 644 "OID.bs" "/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- OID.bs bli +b/arch/auto/NetSNMP/OID/OID.bs 644 "/usr/bin/perl" "/usr/share/perl5/vendor_perl/ExtUtils/xsubpp" -protot +ypes -typemap '/usr/share/perl5/ExtUtils/typemap' OID.xs > OID.xsc Could not find a typemap for C type 'netsnmp_oid *'. The following C types are mapped by the current typemap: 'AV *', 'Bool +ean', 'CV *', 'FILE *', 'FileHandle', 'HV *', 'I16', 'I32', 'I8', 'IV +', 'InOutStream', 'InputStream', 'NV', 'OutputStream', 'PerlIO *', 'R +esult', 'STRLEN', 'SV *', 'SVREF', 'SysRet', 'SysRetLong', 'Time_t *' +, 'U16', 'U32', 'U8', 'UV', 'bool', 'bool_t', 'caddr_t', 'char', 'cha +r *', 'char **', 'const char *', 'double', 'float', 'int', 'long', 's +hort', 'size_t', 'ssize_t', 'time_t', 'unsigned', 'unsigned char', 'u +nsigned char *', 'unsigned int', 'unsigned long', 'unsigned long *', +'unsigned short', 'void *', 'wchar_t', 'wchar_t *' in OID.xs, line 19 +2 Could not find a typemap for C type 'netsnmp_oid *'. The following C types are mapped by the current typemap: 'AV *', 'Bool +ean', 'CV *', 'FILE *', 'FileHandle', 'HV *', 'I16', 'I32', 'I8', 'IV +', 'InOutStream', 'InputStream', 'NV', 'OutputStream', 'PerlIO *', 'R +esult', 'STRLEN', 'SV *', 'SVREF', 'SysRet', 'SysRetLong', 'Time_t *' +, 'U16', 'U32', 'U8', 'UV', 'bool', 'bool_t', 'caddr_t', 'char', 'cha +r *', 'char **', 'const char *', 'double', 'float', 'int', 'long', 's +hort', 'size_t', 'ssize_t', 'time_t', 'unsigned', 'unsigned char', 'u +nsigned char *', 'unsigned int', 'unsigned long', 'unsigned long *', +'unsigned short', 'void *', 'wchar_t', 'wchar_t *' in OID.xs, line 20 +9 make: *** [OID.c] Error 1 [root@ip-10-1-1-75 NetSNMP-OID-5.0404]#

In reply to Error while Installing NetSNMP::OID by vikasgurlinka

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.