net-snmp 5.7.3 子代理程序 libnetsnmp.so.30 not found解决办法

用net-snmp-5.7.3开发的子代理程序执行后,报错“./mysnmp: error while loading shared libraries: libnetsnmpmibs.so.30: cannot open shared object file: No such file or directory”

原因是 LD_LIBRARY_PATH环境变量没有定义,执行下面的语句:

<strong><span style="font-size:24px;color:#ff0000;">export LD_LIBRARY_PATH=/usr/local/lib</span></strong>

解决过程示例:

[email protected]:/usr/local/lib# ldd /home/kpiss/net-snmp-5.7.3/agent/mibgroup/chanctsnmp
        linux-vdso.so.1 =>  (0x00007fff577e2000)
        libnetsnmpmibs.so.30 => not found
        libnetsnmpagent.so.30 => not found
        libnetsnmp.so.30 => not found
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fc5207a7000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fc520b70000)
[email protected]:/usr/local/lib#  export LD_LIBRARY_PATH=/usr/local/lib
[email protected]:/usr/local/lib# ldd /home/kpiss/net-snmp-5.7.3/agent/mibgroup/chanctsnmp
        linux-vdso.so.1 =>  (0x00007fffef1fe000)
        libnetsnmpmibs.so.30 => /usr/local/lib/libnetsnmpmibs.so.30 (0x00007fc14b29c000)
        libnetsnmpagent.so.30 => /usr/local/lib/libnetsnmpagent.so.30 (0x00007fc14b03a000)
        libnetsnmp.so.30 => /usr/local/lib/libnetsnmp.so.30 (0x00007fc14ad50000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fc14a98a000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fc14a786000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fc14a568000)
        librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fc14a360000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fc14b70a000)

参考:

https://www.mail-archive.com/net-snmp-users%40lists.sourceforge.net/msg16168.html

时间: 2024-08-30 05:27:42

net-snmp 5.7.3 子代理程序 libnetsnmp.so.30 not found解决办法的相关文章

python程序一直在后台运行的解决办法

刚写了个python程序,要一直在后台运行,即使断开ssh进程也在,下面是解决办法: 假如Python程序为test.py 编写shell脚本start.sh #!/bin/bash python test.py & chmod +x start.sh ./start.sh

IIS6.0添加上.net4.0后,以前的.net系统出现“服务器应用程序不可用”的错误提示解决办法

把VS2010开发的网站.net4.0部署到Windows Server 2003的服务器上去, Windows Server 2003操作系统自带的为IIS 6.0,IIS 6.0一般只支持.NET 2.0的程序,这就需要配置服务器上的IIS 6.0达到支持.NET 4.0的目的.在网上查找了一些文章,以供大家查阅和参考,主要有以下几个步骤: 一.升级.net framework至4.0 如果服务器已经安装了VS2010,则其中已经包含安装了.net 4.0 framework,否则就需要另外

初学微信小程序开发—文件解析错误的解决办法

今天是我学习小程序第二天,当我正在调试新增页面时,发现这个错误: 提示为:文件解析错误  SyntaxError: Unexpected end of JSON input 一开始以为我用错标点符号之类的错误,后来百度发现,是因为这里面空的 解决办法非常简单,看图中步骤:找到即将跳转的路径,然后在左侧找到对应的文件(以本案例为例,找到weekly.json) 补上一个大括号就行了,也就是即将跳转的.json文件不能为空 第一次写博客,很新奇 原文地址:https://www.cnblogs.co

nrf52832 keil程序下载出现jlink cortex-m error 解决办法

nrf52832 keil下载过程中强制退出,导致后续程序烧写失败, sw device 找不到问题 解决办法: 1,nRf go studio 工具 ->nRF5x Programming 选择 nrf51 recover 2,然后erase all 即可重新下载. 原文地址:https://www.cnblogs.com/linfeng110/p/12125627.html

libnids TCP数据流重组,显示TCP连接过程的程序总无法捕获数据包解决办法:

法一: 指定可用网卡: nids_params.device="lo"; 法二: nids.h中有这么一段: struct nids_chksum_ctl { u_int netaddr; u_int mask; u_int action; u_int reserved; }; extern void nids_register_chksum_ctl(struct nids_chksum_ctl *,int); 这段是相关与计算校验和的,比较新的网卡驱动会自动计算校验和,我们要做的就是

运行程序后窗口瞬间消失的解决办法

1.比如程序: #include<iostream> using namespace std; int main() { int p=10; cout<<p<<endl; // system("PAUSE");//char response; // cin>>response; return 0; } 运行后一闪而过,如何解决? ①return 0;前面加一句 system("PAUSE"); ② return 0前面

Delphi7程序调用C#写的DLL解决办法(转)

近来,因工作需要,必须解决Delphi7写的主程序调用C#写的dll的问题.在网上一番搜索,又经过种种试验,最终证明有以下两种方法可行:    编写C#dll的方法都一样,首先在vs2005中创建一个"类库"项目TestDll,using System.Runtime.InteropServices;namespace TestDll{public interface  I TestClass  {     void YourProcedure(stirng param1);}[Cla

部署PDA程序的时候存储不足的解决办法

通常Windows Mobile的存储空间分为程序内存和存储内存,默认都比较小,当程序比较大的时候可能无法正常部署到设备上面,针对此问题可采用如下办法解决:1.通过VS修改,工具--选项--设备--选择目标设备---仿真器管理---设置存储大小.2.在部署程序的时候指定路径为SD卡.

手机设置Fiddler代理后无法访问Https网络的解决办法

首先,下载最新版本的Fillder,将手机和PC设置为统一局域网(手机链接PC的wifi) 打开手机设置-无线网络设置,设置代理为手动,输入pc的ip和Fillder的端口8888(Fillder默认端口:8888) 此时访问http网站可以正常访问,但是https访问不了,用fildder抓包工具只能够抓取http协议内容 如何才能访问Https网站且可以正常抓取呢?需要如下操作: 1.下载filddercertmaker,安装完成后,重启fiddler,选择tools-options-htt