Hello,
Below error we are getting:
[root@HO1-NAGIOSXI ~]# yum install net-snmp-devel -y
Last metadata expiration check: 2:03:58 ago on Wed 22 Jul 2020 06:21:56 PM +04.
Dependencies resolved.
========================================================================================================================================================================
Package Architecture Version Repository Size
========================================================================================================================================================================
Installing:
net-snmp-devel x86_64 1:5.8-7.el8.2 nagiosxi-deps 271 k
Upgrading:
elfutils x86_64 0.178-7.el8 BaseOS 540 k
elfutils-libelf x86_64 0.178-7.el8 BaseOS 212 k
elfutils-libs x86_64 0.178-7.el8 BaseOS 292 k
lm_sensors-libs x86_64 3.4.0-21.20180522git70f7e08.el8 BaseOS 59 k
Installing dependencies:
elfutils-devel x86_64 0.178-7.el8 BaseOS 86 k
elfutils-libelf-devel x86_64 0.178-7.el8 BaseOS 58 k
libzstd-devel x86_64 1.4.2-2.el8 BaseOS 43 k
lm_sensors-devel x86_64 3.4.0-21.20180522git70f7e08.el8 BaseOS 33 k
popt-devel x86_64 1.16-14.el8 BaseOS 30 k
rpm-devel x86_64 4.14.2-37.el8 BaseOS 140 k
xz-devel x86_64 5.2.4-3.el8 BaseOS 62 k
Installing weak dependencies:
elfutils-debuginfod-client x86_64 0.178-7.el8 AppStream 62 k
elfutils-debuginfod-client-devel x86_64 0.178-7.el8 AppStream 53 k
Transaction Summary
========================================================================================================================================================================
Install 10 Packages
Upgrade 4 Packages
Total size: 1.9 M
Downloading Packages:
[SKIPPED] elfutils-debuginfod-client-0.178-7.el8.x86_64.rpm: Already downloaded
[SKIPPED] elfutils-debuginfod-client-devel-0.178-7.el8.x86_64.rpm: Already downloaded
[SKIPPED] elfutils-devel-0.178-7.el8.x86_64.rpm: Already downloaded
[SKIPPED] elfutils-libelf-devel-0.178-7.el8.x86_64.rpm: Already downloaded
[SKIPPED] libzstd-devel-1.4.2-2.el8.x86_64.rpm: Already downloaded
[SKIPPED] lm_sensors-devel-3.4.0-21.20180522git70f7e08.el8.x86_64.rpm: Already downloaded
[SKIPPED] popt-devel-1.16-14.el8.x86_64.rpm: Already downloaded
[SKIPPED] rpm-devel-4.14.2-37.el8.x86_64.rpm: Already downloaded
[SKIPPED] xz-devel-5.2.4-3.el8.x86_64.rpm: Already downloaded
[SKIPPED] net-snmp-devel-5.8-7.el8.2.x86_64.rpm: Already downloaded
[SKIPPED] elfutils-0.178-7.el8.x86_64.rpm: Already downloaded
[SKIPPED] elfutils-libelf-0.178-7.el8.x86_64.rpm: Already downloaded
[SKIPPED] elfutils-libs-0.178-7.el8.x86_64.rpm: Already downloaded
[SKIPPED] lm_sensors-libs-3.4.0-21.20180522git70f7e08.el8.x86_64.rpm: Already downloaded
warning: /var/cache/dnf/nagiosxi-deps-9e4a431b9d4d402a/packages/net-snmp-devel-5.8-7.el8.2.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID ac25decd: NOKEY
Nagios XI Dependencies 158 kB/s | 3.0 kB 00:00
GPG key at file:///etc/pki/rpm-gpg/RPM-GPG-KEY-NAGIOS-V2 (0xC62934A0) is already installed
The GPG keys listed for the "Nagios XI Dependencies" repository are already installed but they are not correct for this package.
Check that the correct key URLs are configured for this repository.. Failing package is: net-snmp-devel-1:5.8-7.el8.2.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-NAGIOS-V2
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'yum clean packages'.
Error: GPG check FAILED
[root@HO1-NAGIOSXI ~]#
[root@HO1-NAGIOSXI ~]#
[root@HO1-NAGIOSXI ~]# pip3 install easysnmp
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
Collecting easysnmp
Using cached
https://files.pythonhosted.org/packages ... 2.5.tar.gz
Installing collected packages: easysnmp
Running setup.py install for easysnmp ... error
Complete output from command /usr/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-3892e_gd/easysnmp/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-950x10rz-record/install-record.txt --single-version-externally-managed --compile:
/bin/sh: net-snmp-config: command not found
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/easysnmp
copying easysnmp/helpers.py -> build/lib.linux-x86_64-3.6/easysnmp
copying easysnmp/compat.py -> build/lib.linux-x86_64-3.6/easysnmp
copying easysnmp/session.py -> build/lib.linux-x86_64-3.6/easysnmp
copying easysnmp/exceptions.py -> build/lib.linux-x86_64-3.6/easysnmp
copying easysnmp/variables.py -> build/lib.linux-x86_64-3.6/easysnmp
copying easysnmp/easy.py -> build/lib.linux-x86_64-3.6/easysnmp
copying easysnmp/__init__.py -> build/lib.linux-x86_64-3.6/easysnmp
copying easysnmp/utils.py -> build/lib.linux-x86_64-3.6/easysnmp
running build_ext
building 'easysnmp.interface' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/easysnmp
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python3.6m -c easysnmp/interface.c -o build/temp.linux-x86_64-3.6/easysnmp/interface.o -Wno-unused-function
easysnmp/interface.c:24:10: fatal error: net-snmp/net-snmp-config.h: No such file or directory
#include <net-snmp/net-snmp-config.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-3892e_gd/easysnmp/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-950x10rz-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-3892e_gd/easysnmp/
[root@HO1-NAGIOSXI ~]#
Please help us on the same.
Thanks for your support!!