Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net-snmp-config.h: No such file or directory #67

Open
gavmckee80 opened this issue Jul 26, 2017 · 1 comment
Open

net-snmp-config.h: No such file or directory #67

gavmckee80 opened this issue Jul 26, 2017 · 1 comment

Comments

@gavmckee80
Copy link

Hi Guys,

can you advise on the following issue?

$ pip install easysnmp
Collecting easysnmp
Using cached easysnmp-0.2.5.tar.gz
Building wheels for collected packages: easysnmp
Running setup.py bdist_wheel for easysnmp ... error
Complete output from command /home/gmckee/anaconda2/envs/ansible-dev/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-cxSoNe/easysnmp/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/tmp3bwjNJpip-wheel- --python-tag cp27:
sh: net-snmp-config: command not found
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/easysnmp
copying easysnmp/init.py -> build/lib.linux-x86_64-2.7/easysnmp
copying easysnmp/compat.py -> build/lib.linux-x86_64-2.7/easysnmp
copying easysnmp/easy.py -> build/lib.linux-x86_64-2.7/easysnmp
copying easysnmp/exceptions.py -> build/lib.linux-x86_64-2.7/easysnmp
copying easysnmp/helpers.py -> build/lib.linux-x86_64-2.7/easysnmp
copying easysnmp/session.py -> build/lib.linux-x86_64-2.7/easysnmp
copying easysnmp/utils.py -> build/lib.linux-x86_64-2.7/easysnmp
copying easysnmp/variables.py -> build/lib.linux-x86_64-2.7/easysnmp
running build_ext
building 'easysnmp.interface' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/easysnmp
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/gmckee/anaconda2/envs/ansible-dev/include/python2.7 -c easysnmp/interface.c -o build/temp.linux-x86_64-2.7/easysnmp/interface.o -Wno-unused-function
easysnmp/interface.c:24:38: 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


Failed building wheel for easysnmp
Running setup.py clean for easysnmp
Failed to build easysnmp
Installing collected packages: easysnmp
Running setup.py install for easysnmp ... error
Complete output from command /home/gmckee/anaconda2/envs/ansible-dev/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-cxSoNe/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-6KJFlq-record/install-record.txt --single-version-externally-managed --compile:
sh: net-snmp-config: command not found
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/easysnmp
copying easysnmp/init.py -> build/lib.linux-x86_64-2.7/easysnmp
copying easysnmp/compat.py -> build/lib.linux-x86_64-2.7/easysnmp
copying easysnmp/easy.py -> build/lib.linux-x86_64-2.7/easysnmp
copying easysnmp/exceptions.py -> build/lib.linux-x86_64-2.7/easysnmp
copying easysnmp/helpers.py -> build/lib.linux-x86_64-2.7/easysnmp
copying easysnmp/session.py -> build/lib.linux-x86_64-2.7/easysnmp
copying easysnmp/utils.py -> build/lib.linux-x86_64-2.7/easysnmp
copying easysnmp/variables.py -> build/lib.linux-x86_64-2.7/easysnmp
running build_ext
building 'easysnmp.interface' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/easysnmp
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/gmckee/anaconda2/envs/ansible-dev/include/python2.7 -c easysnmp/interface.c -o build/temp.linux-x86_64-2.7/easysnmp/interface.o -Wno-unused-function
easysnmp/interface.c:24:38: 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 "/home/gmckee/anaconda2/envs/ansible-dev/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-cxSoNe/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-6KJFlq-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-cxSoNe/easysnmp/

@kamakazikamikaze
Copy link
Collaborator

sh: net-snmp-config: command not found

Do you have the Net-SNMP package installed for your system? You can find per-OS instructions at the EasySNMP documentation at ReadTheDocs. http://easysnmp.readthedocs.io/en/latest/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants