您的位置:首页 > 其它

Ubuntu12.04 安装net-snmp-5.7.1

2013-07-15 15:42 253 查看
安装net-snmp依赖包 ps:尝试使用apt-get 可惜由于依赖问题,不能安装只能下载包了

wget http://launchpadlibrarian.net/134564437/libperl-dev_5.14.2-6ubuntu2.3_amd64.debsudo dpkg -i libperl-dev_5.14.2-6ubuntu2.3_amd64.debsudo ldconfig
wget http://superb-dca2.dl.sourceforge.net/project/net-snmp/net-snmp/5.7.1/net-snmp-5.7.1.tar.gztar zxvf net-snmp-5.7.1.tar.gzcd net-snmp-5.7.1./configuremake && make install
cd pythonsudo python setup.py install
安装完毕后测试netsnmp
In [1]: import netsnmp/usr/local/lib/python2.7/dist-packages/setuptools-0.8-py2.7.egg/pkg_resources.py:1054: UserWarning: /home/songtao/.python-eggs is writable by group/others and vulnerable to attack when used with get_resource_filename. Consider a more secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable).
解决办法
chmod g-wx,o-wx .python-eggs/

本文出自 “扫榻人” 博客,请务必保留此出处http://enable.blog.51cto.com/747951/1249475
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: