- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
使用 python 和 AWS AMI 镜像(松散地基于 REHL/Centos)通过 pip3 安装时出现以下错误
这对我来说看起来像是依赖项,但我已经搜索到谷歌的尽头,我看起来已经安装了所有需要的东西。
谁能看到我是否缺少依赖项?
到目前为止,依赖项安装如下: -
sudo yum install python35.x86_64
sudo yum install gcc-c++ python35-devel.x86_64 cyrus-sasl-devel.x86_64
sudo yum install mysql mysql-devel mysql-lib
sudo yum install net-snmp-libs net-snmp-devel net-snmp-agent-libs
sudo yum install gcc python-devel
Running setup.py install for easysnmp ... error
Complete output from command /usr/bin/python3.4 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-9e4w4qtu/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-bgholydk-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.4
creating build/lib.linux-x86_64-3.4/easysnmp
copying easysnmp/helpers.py -> build/lib.linux-x86_64-3.4/easysnmp
copying easysnmp/utils.py -> build/lib.linux-x86_64-3.4/easysnmp
copying easysnmp/easy.py -> build/lib.linux-x86_64-3.4/easysnmp
copying easysnmp/session.py -> build/lib.linux-x86_64-3.4/easysnmp
copying easysnmp/variables.py -> build/lib.linux-x86_64-3.4/easysnmp
copying easysnmp/compat.py -> build/lib.linux-x86_64-3.4/easysnmp
copying easysnmp/exceptions.py -> build/lib.linux-x86_64-3.4/easysnmp
copying easysnmp/__init__.py -> build/lib.linux-x86_64-3.4/easysnmp
running build_ext
building 'easysnmp.interface' extension
creating build/temp.linux-x86_64-3.4
creating build/temp.linux-x86_64-3.4/easysnmp
gcc -pthread -Wno-unused-result -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python3.4m -c easysnmp/interface.c -o build/temp.linux-x86_64-3.4/easysnmp/interface.o -Wno-unused-function
easysnmp/interface.c: In function ‘netsnmp_create_session_tunneled’:
easysnmp/interface.c:1843:17: error: ‘SnmpSession’ has no member named ‘transport_configuration’
if (!session.transport_configuration)
^
easysnmp/interface.c:1846:16: error: ‘SnmpSession’ has no member named ‘transport_configuration’
session.transport_configuration =
^
easysnmp/interface.c:1848:21: error: ‘SnmpSession’ has no member named ‘transport_configuration’
if (!session.transport_configuration)
^
easysnmp/interface.c:1855:16: error: ‘SnmpSession’ has no member named ‘transport_configuration’
session.transport_configuration->compare =
^
easysnmp/interface.c:1856:42: error: ‘netsnmp_transport_config_compare’ undeclared (first use in this function)
(netsnmp_container_compare*) netsnmp_transport_config_compare;
^
easysnmp/interface.c:1856:42: note: each undeclared identifier is reported only once for each function it appears in
easysnmp/interface.c:1860:33: error: ‘SnmpSession’ has no member named ‘transport_configuration’
CONTAINER_INSERT(session.transport_configuration,
^
easysnmp/interface.c:1861:26: warning: implicit declaration of function ‘netsnmp_transport_create_config’ [-Wimplicit-function-declaration]
netsnmp_transport_create_config("localCert",
^
easysnmp/interface.c:1862:58: warning: passing argument 2 of ‘CONTAINER_INSERT’ makes pointer from integer without a cast [enabled by default]
our_identity));
^
In file included from /usr/include/net-snmp/utilities.h:54:0,
from /usr/include/net-snmp/net-snmp-includes.h:74,
from easysnmp/interface.c:25:
/usr/include/net-snmp/library/container.h:391:9: note: expected ‘const void *’ but argument is of type ‘int’
int CONTAINER_INSERT(netsnmp_container* x, const void* k)
^
easysnmp/interface.c:1865:33: error: ‘SnmpSession’ has no member named ‘transport_configuration’
CONTAINER_INSERT(session.transport_configuration,
^
easysnmp/interface.c:1867:58: warning: passing argument 2 of ‘CONTAINER_INSERT’ makes pointer from integer without a cast [enabled by default]
their_identity));
^
In file included from /usr/include/net-snmp/utilities.h:54:0,
from /usr/include/net-snmp/net-snmp-includes.h:74,
from easysnmp/interface.c:25:
/usr/include/net-snmp/library/container.h:391:9: note: expected ‘const void *’ but argument is of type ‘int’
int CONTAINER_INSERT(netsnmp_container* x, const void* k)
^
easysnmp/interface.c:1870:33: error: ‘SnmpSession’ has no member named ‘transport_configuration’
CONTAINER_INSERT(session.transport_configuration,
^
easysnmp/interface.c:1872:58: warning: passing argument 2 of ‘CONTAINER_INSERT’ makes pointer from integer without a cast [enabled by default]
their_hostname));
^
In file included from /usr/include/net-snmp/utilities.h:54:0,
from /usr/include/net-snmp/net-snmp-includes.h:74,
from easysnmp/interface.c:25:
/usr/include/net-snmp/library/container.h:391:9: note: expected ‘const void *’ but argument is of type ‘int’
int CONTAINER_INSERT(netsnmp_container* x, const void* k)
^
easysnmp/interface.c:1875:33: error: ‘SnmpSession’ has no member named ‘transport_configuration’
CONTAINER_INSERT(session.transport_configuration,
^
easysnmp/interface.c:1877:58: warning: passing argument 2 of ‘CONTAINER_INSERT’ makes pointer from integer without a cast [enabled by default]
trust_cert));
^
In file included from /usr/include/net-snmp/utilities.h:54:0,
from /usr/include/net-snmp/net-snmp-includes.h:74,
from easysnmp/interface.c:25:
/usr/include/net-snmp/library/container.h:391:9: note: expected ‘const void *’ but argument is of type ‘int’
int CONTAINER_INSERT(netsnmp_container* x, const void* k)
^
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python3.4 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-9e4w4qtu/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-bgholydk-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-9e4w4qtu/easysnmp/
[ec2-user@ip-10/]$
[ec2-user@ip-10/]$ pip3 install netsnmp-py
Collecting netsnmp-py
Using cached netsnmp-py-0.4.tar.gz
Installing collected packages: netsnmp-py
Running setup.py install for netsnmp-py ... error
Complete output from command /usr/bin/python3.4 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-zq9uoh2p/netsnmp-py/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-owzi19wx-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.4
creating build/lib.linux-x86_64-3.4/netsnmp
copying netsnmp/__main__.py -> build/lib.linux-x86_64-3.4/netsnmp
copying netsnmp/__init__.py -> build/lib.linux-x86_64-3.4/netsnmp
copying netsnmp/_hex.py -> build/lib.linux-x86_64-3.4/netsnmp
creating build/lib.linux-x86_64-3.4/netsnmp/_dev
copying netsnmp/_dev/cisco.py -> build/lib.linux-x86_64-3.4/netsnmp/_dev
copying netsnmp/_dev/technicolor.py -> build/lib.linux-x86_64-3.4/netsnmp/_dev
copying netsnmp/_dev/__init__.py -> build/lib.linux-x86_64-3.4/netsnmp/_dev
copying netsnmp/_dev/arris.py -> build/lib.linux-x86_64-3.4/netsnmp/_dev
running build_ext
building 'netsnmp._api' extension
creating build/temp.linux-x86_64-3.4
creating build/temp.linux-x86_64-3.4/netsnmp
gcc -pthread -Wno-unused-result -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I./netsnmp -I/usr/include/python3.4m -c netsnmp/session.c -o build/temp.linux-x86_64-3.4/netsnmp/session.o
netsnmp/session.c:5:40: fatal error: net-snmp/net-snmp-features.h: No such file or directory
#include <net-snmp/net-snmp-features.h>
^
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python3.4 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-zq9uoh2p/netsnmp-py/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-owzi19wx-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-zq9uoh2p/netsnmp-py/
最佳答案
你安装了net-snmp-devel吗?根据亚马逊包,默认情况下不安装:
https://aws.amazon.com/amazon-linux-ami/2016.03-packages/
关于Python3 centos/amazon AMI - 安装 net-snmp/easysnmp - gcc 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46529768/
我正在使用 CentOS 6 机器。我尝试遵循以下指南: How to open port in centOS http://ask.xmodulo.com/open-port-firewall-ce
我正在为 CentOS 7 创建一个脚本,但我正在努力根据变量连接值,这与我工作的其他发行版不同。例如,在下面的代码中: DIR_BKP=/tmp/_bkp_local PATH_LOG=$DIR_B
我从以下位置下载了文件: https://github.com/christiangalsterer/httpbeat/releaseshttpbeat-4.0.0-x86_64.rpm 并尝试通过以
我想在我的 Centos 8 中使用命令 mkimage。 我尝试使用命令 dnf install uboot-tools 以 root 身份安装 uboot-tools 但这不可用。 谁能指导我如何
我有一个 Centos 服务器。 结果 $ cat /etc/centos-release CentOS Linux release 7.9.2009 (Core) 和 $ yum list i
我在CentOs7 上安装Gitlab 后遇到了麻烦。我第一次被重定向到管理员密码创建页面,在输入管理员用户密码后,服务器发送错误。 422 The change you requested was
因此,我正在尝试从我的一个运行 centos 的邮箱中发送电子邮件,并且我已经安装并打开了 sendmail,但是发送一封电子邮件实际上需要几分钟时间。电子邮件不是应该几乎是即时的吗? 这是我的/et
我正在尝试在虚拟 Centos 7 发行版上构建一些 C++ 库。由于我还没有发现这个操作系统看不到/usr/local/lib 或/usr/local/lib64 的原因,这些库安装在其他 linu
我正在尝试通过以下网址在我的服务器(centos 7.1 minimal)上安装 imagemagick: imagemagick installation steps 在第 1 步得到这个错误: L
当我尝试安装 rpmforge(我需要安装 phpmyadmin)时出现此错误,将不胜感激任何帮助! [root@plasticarmy ~]# yum http://pkgs.repoforge.o
我需要安装一个centos 5 repo 来在centos 7 机器上下载用于el5 的dhclient,以便在centos 5 机器上传输dhclient rpms。有可能的 ? 谢谢! 最佳答案
我正在开发一个可以在 CentOS 8 和 CentOS 7 系统上运行的程序。在其中,我使用 gethostbyname 将 DNS 名称解析为 IP 地址。 为了尝试使代码可移植,我正在使用以下命
我想在 CentOS7(或 CentOS6)上安装 cgal 模块。它需要 pgrouting 才能使用 PostGIS。 我一直用 CGAL Manual Installation 安装 cgal
我在 CentOS 平台上使用 R/RStudio。我需要查看二进制日志文件(/var/log/messages)是否包含有关图形设备绘图问题的更多信息,但我无法从 RStudio 中读取它。 我在社
我正在尝试在我的 CentOS 上本地安装 Kubernetes。我正在关注这个博客 http://containertutorials.com/get_started_kubernetes/inde
来自 http://kubernetes.io/docs/getting-started-guides/kubeadm/ CentOS Linux 版本 7.2.1511(核心) (1/4) 在主机上
使用tcpdump监控网络流量时,发现很多dns反向查询记录。 像这样: A_IP.55276 > DNS_IP.domain: 9247+ PTR?查询 IP.in-addr.arpa。 (45)
我正在尝试在 CentOS 6.7 和 ./configure --prefix=$HOME/local 上安装 mutt运行良好,但在 make install步骤,我在下面遇到了这个错误,我不知道
如何在 CENTOS 中删除所有以 *0x0.jpg 结尾的文件?我需要删除嵌套在文件夹和子文件夹中的多个文件 最佳答案 我假设你有一个外壳 - 试试 find /mydirectory -type
我需要检索安装在我的 Linux (Centos) 主机上的所有软件包的软件包版本。 rpm -qa 给了我所有已安装软件包的列表。 我知道 rpm -qi "package name"给了我包信息。
我是一名优秀的程序员,十分优秀!