Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Error while Installing NetSNMP::OID

by vikasgurlinka (Initiate)
on Mar 26, 2020 at 02:24 UTC ( [id://11114654]=perlquestion: print w/replies, xml ) Need Help??

vikasgurlinka has asked for the wisdom of the Perl Monks concerning the following question:

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]#

Replies are listed 'Best First'.
Re: Error while Installing NetSNMP::OID
by syphilis (Archbishop) on Mar 26, 2020 at 03:13 UTC
    Could not find a typemap for C type 'netsnmp_oid *'

    From the README that ships with the NetSNMP-OID-5.0404 source:
    This module requires these other modules and libraries: The net-snmp 5.0 or greater release The SNMP 5.0.1 or greater perl module.
    I'm guessing that installing those prerequisites should provide the missing typemap.
    Looks to me that NetSNMP-OID-5.0404 does not supply it.

    Or do you already have those prerequisites installed ?

    Cheers,
    Rob

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11114654]
Approved by Athanasius
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-03-29 13:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found