This is a discussion on Re: subagnet can not find libnetsnmpmibs.so.9 within the SNMP Users forums, part of the Networking and Network Related category; ------=_Part_6398_25180514.1130132016906 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline hi,u ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
------=_Part_6398_25180514.1130132016906
Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline hi,u can remake ur master agent again with make parameter of "--prefix" ,prefix is used to specifing the install path of make install. On 10/24/05, Rick.Lee <rickmaillist@gmail.com> wrote: > > hi, > I have copied corresponding lib files to /usr/lib directory and > mysubagent works fine! Thank you! > do you know how to adjust mysubagent to let it search the libs in > /usr/local/lib other than /usr/lib? > > Rick > > 2005/10/22, Ryan guo <ryanphat@gmail.com>: > > hi, u needn't do that and ,just copy such files to /usr/lib and > /usr/lib64 > > and retry it,may be ur subagent search these two directories and didn't > find > > it and arose a error,try it! > > > > > > > > > > > > > > On 10/22/05, Lee Rick <rickmaillist@gmail.com> wrote: > > > yes, I find it in /usr/local/lib, ls result is: > > > [root@localhost net-snmp-5.2.2.pre4]# ls /usr/local/lib > > > libnetsnmp.a libnetsnmphelpers.so.9 libnetsnmp.so.9 > > > libnetsnmpagent.a libnetsnmphelpers.so.9.0.0 libnetsnmp.so.9.0.0 > > > libnetsnmpagent.la <http://libnetsnmpagent.la> libnetsnmp.la<http://l= ibnetsnmp.la> > libnetsnmptrapd.a > > > libnetsnmpagent.so libnetsnmpmibs.a libnetsnmptrapd.la<http://libnets= nmptrapd.la> > > > libnetsnmpagent.so.9 libnetsnmpmibs.la <http://libnetsnmpmibs.la> > libnetsnmptrapd.so > > > libnetsnmpagent.so.9.0.0 libnetsnmpmibs.so libnetsnmptrapd.so.9 > > > libnetsnmphelpers.a libnetsnmpmibs.so.9 > > libnetsnmptrapd.so.9.0.0 > > > libnetsnmphelpers.la <http://libnetsnmphelpers.la> > libnetsnmpmibs.so.9.0.0 > > > libnetsnmphelpers.so libnetsnmp.so > > > > > > here's another little problem, > > > how to uninstall the package? I compile and install it by source > > > code ,not by RPM package.just delete related files and directories? > > > > > > thanks! > > > > > > Rick > > > > > > 2005/10/22, Ryan guo <ryanphat@gmail.com>: > > > > hi,Lee,i think u should reinstall a lower version net-snmp package > and > > retry > > > > it,coz i have not tied it before for that version,may be > net-snmp5.1.2 > > is > > > > more suitable for u,btw,did u find libnetsnmpmibs.so.9 in /usr/lib > or > > > > /usr/lib64 ? > > > > > > > > > > > > > > > > > > > > > > > > On 10/22/05, Lee Rick <rickmaillist@gmail.com> wrote: > > > > > hi,guo, > > > > > thanks for your answer. > > > > > I've really installed the package of net-snmp-5.2.2.pre4 and I've > > > > > performed some test and both the snmpd and snmpget and so on work > > > > > fine. > > > > > > > > > > The example given by the Tutorial of compiling the mib module int= o > > > > > master agent is ok. > > > > > The way of subagent shows error as decribed in my last letter. I > > > > > think it may not the problem of net-snmp, because it shows that > system > > > > > can not load the shared object. > > > > > could you or any other give me some more advice? > > > > > > > > > > Thank you! > > > > > Rick > > > > > > > > > > 2005/10/22, Ryan guo < ryanphat@gmail.com >: > > > > > > hi,lee > > > > > > > > > > > > > > > > > > First,make sure u have installed the net-snmp package on ur > > > > linux > > > > > > system, and if u had do so,look up these .so files such as > > > > libnetsnmpmibs.so > > > > > > as u said at /usr/lib or /usr/lib64 and make sure that the file > u > > want > > > > is at > > > > > > there. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 10/21/05, Lee Rick < rickmaillist@gmail.com> wrote: > > > > > > > > > > > > > > hi, I'm learning about net-snmp. I'm praticing with the > NET-SNMP > > > > Tutorial. > > > > > > > Followed by the sub-agent Demon tutorial step by step, I've > > compiled > > > > > > > the nstAgentSubagentObject.c correctly. Then I run the > subagent as > > > > > > > follows and error occurs. > > > > > > > [root@localhost download]# ./mysubagent > > > > > > > ./mysubagent: error while loading shared libraries: > > > > libnetsnmpmibs.so.9: > > > > > > cannot > > > > > > > open shared object file: No such file or directory > > > > > > > > > > > > > > But I do find the libnetsnmpmibs.so.9 file in directory > > > > /usr/local/lib, > > > > > > > what's the matter? and how to fix it? > > > > > > > > > > > > > > Thanks a lot! > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > > This SF.Net email is sponsored by: > > > > > > > Power Architecture Resource Center: Free content, downloads, > > > > discussions, > > > > > > > and more. > > http://solutions.newsforge.com/ibmarch.tmpl > > > > > > > _______________________________________________ > > > > > > > Net-snmp-users mailing list > > > > > > > Net-snmp-users@lists.sourceforge.net > > > > > > > Please see the following page to unsubscribe or change other > > options: > > > > > > > > > > > > > > > > > > > https://lists.sourceforge.net/lists/...net-snmp-users > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------=_Part_6398_25180514.1130132016906 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline <div>hi,u can remake ur master agent again with make parameter of "--p= refix" ,prefix is used to specifing the install path of make install.<= /div> <div> </div> <div><br><br> </div> <div><span class=3D"gmail_quote">On 10/24/05, <b class=3D"gmail_sendername"= >Rick.Lee</b> <<a href=3D"mailto:rickmaillist@gmail.com">rickmaillis t@gm= ail.com</a>> wrote:</span> <blockquote class=3D"gmail_quote" style=3D"PADDING-LEFT: 1ex; MARGIN: 0px 0= px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">hi,<br>I have copied correspondi= ng lib files to /usr/lib directory and<br>mysubagent works fine! Thank you! <br>do you know how to adjust mysubagent to let it search the libs in<br>/u= sr/local/lib other than /usr/lib?<br><br>Rick<br><br>2005/10/22, Ryan guo &= lt;<a href=3D"mailto:ryanphat@gmail.com">ryanphat@gmail. com</a>>:<br>>= ; hi, u needn't do that and ,just copy such files to /usr/lib an= d /usr/lib64 <br>> and retry it,may be ur subagent search these two directories and d= idn't find<br>> it and arose a error,try it!<br>><br>><br>><br>= ><br>><br>><br>> On 10/22/05, Lee Rick <<a href=3D"mailto:ri= ckmaillist@gmail.com"> rickmaillist@gmail.com</a>> wrote:<br>> > yes, I find it in /usr/l= ocal/lib, ls result is:<br>> > [root@localhost net-snmp-5.2.2.pre4]# = ls /usr/local/lib<br>> > libnetsnmp.a &n= bsp; &nbs p;libnetsnmphelpers.so.9 libnetsnmp.so. 9<br>> > libnetsnmp= agent.a & nbsp; libnetsnmphelpers.s= o.9.0.0 libnetsnmp.so.9.0.0<br>> > <a href=3D"http://libne= tsnmpagent.la">libnetsnmpagent.la</a> &n= bsp; <a href=3D"http://libnetsnmp.la">libnetsnmp.la </a>  = ; libnetsnmptrapd.a<br>> > libnetsnmpagent.so = libnetsnmpmibs .a  = ; < a href=3D"http://libnetsn= mptrapd.la">libnetsnmptrapd.la</a><br>> > libnetsnmpagent.so.9 &= nbsp; <a href=3D"http://libnetsnmpmibs.la"> libnetsnmpmibs.la</a> = libnetsnmptrapd.so<br>> > libnetsnmpagent.so.9.0.0 = libnetsnmpmibs.so &nb sp; &nbs= p; libnetsnmptrapd.so.9<br>> > libnetsnmphelpers.a &= nbsp; libnetsnmpmibs.so.9<br>> libnetsnmptrapd.so.9.0.0 <br>> > <a href=3D"http://libnetsnmphelpers.la">libnetsnmphelpers.la<= /a> libnetsnmpmi bs.so.9.0.0<br>> >= libnetsnmphelpers.so libnetsnmp.so<br>&= gt; ><br>> > here's another little problem,<br>> > &nbs= p; how to uninstall the package? I compile and install it by sou= rce <br>> > code ,not by RPM package.just delete related files and direct= ories?<br>> ><br>> > thanks!<br>> ><br>> > Rick<br>= > ><br>> > 2005/10/22, Ryan guo <<a href=3D"mailto:ryanphat@= gmail.com"> ryanphat@gmail.com</a>>:<br>> > > hi,Lee,i think u should reins= tall a lower version net-snmp package and<br>> retry<br>> > > i= t,coz i have not tied it before for that version,may be net-snmp5.1.2<br> > is<br>> > > more suitable for u,btw,did u find libnetsnmpmibs= ..so.9 in /usr/lib or<br>> > > /usr/lib64 ?<br>> > ><br>&g= t; > ><br>> > ><br>> > ><br>> > ><br>> = > > On 10/22/05, Lee Rick < <a href=3D"mailto:rickmaillist@gmail.com">rickmaillis t@gmail.com</a>> wr= ote:<br>> > > > hi,guo,<br>> > > > thanks for your = answer.<br>> > > > I've really installed the package of net-snm= p-5.2.2.pre4 and I've<br>> > > > performed some test and both the snmpd and= snmpget and so on work<br>> > > > fine.<br>> > > >= <br>> > > > The example given by the Tutorial of compiling the = mib module into <br>> > > > master agent is ok.<br>> > > > The way = of subagent shows error as decribed in my last letter. I<br>> > > = > think it may not the problem of net-snmp, because it shows that system <br>> > > > can not load the shared object.<br>> > > &= gt; could you or any other give me some more advice?<br>> &g= t; > ><br>> > > > Thank you!<br>> > >= ; > Rick<br>> > > > <br>> > > > 2005/10/22, Ryan guo < <a href=3D"mailto:ryanpha= t@gmail.com">ryanphat@gmail.com</a> >:<br>> > > > > hi,le= e<br>> > > > ><br>> > > > ><br>> > >= > > &nbs p; First= ,make sure u have installed the net-snmp package on ur <br>> > > linux<br>> > > > > system, and if u had d= o so,look up these .so files such as<br>> > > libnetsnmpmibs.so<br= >> > > > > as u said at /usr/lib or /usr/lib64 and make sure= that the file u <br>> want<br>> > > is at<br>> > > > > there.<br= >> > > > ><br>> > > > ><br>> > > >= ; ><br>> > > > ><br>> > > > ><br>> >= > > > On 10/21/05, Lee Rick <=20 <a href=3D"mailto:rickmaillist@gmail.com">rickmaillis t@gmail.com</a>> wr= ote:<br>> > > > > ><br>> > > > > > hi, = I'm learning about net-snmp. I'm praticing with the NET-SNMP<br>> > &= gt; Tutorial. <br>> > > > > > Followed by the sub-agent Demon tutorial = step by step, I've<br>> compiled<br>> > > > > > the ns= tAgentSubagentObject.c correctly. Then I run the subagent as<br>> > &= gt; > > > follows and error occurs. <br>> > > > > > [root@localhost download]# ./mysubagent<b= r>> > > > > > ./mysubagent: error while loading shared li= braries:<br>> > > libnetsnmpmibs.so.9:<br>> > > > >= cannot <br>> > > > > > open shared object file: No such file or = directory<br>> > > > > ><br>> > > > > >= But I do find the libnetsnmpmibs.so.9 file in directory<br>> > > = /usr/local/lib, <br>> > > > > > what's the matter? and how to fix it?<br>= > > > > > ><br>> > > > > > Thanks a lot= !<br>> > > > > ><br>> > > > > ><br> > > > > > ><br>> > > ---------------------------= ----------------------------<br>> > > > > > This SF.Net e= mail is sponsored by:<br>> > > > > > Power Architecture R= esource Center: Free content, downloads, <br>> > > discussions,<br>> > > > > > and more.<= br>> <a href=3D"http://solutions.newsforge.com/ibmarch.tmpl">http://solu= tions.newsforge.com/ibmarch.tmpl</a><br>> > > > > > _____= __________________________________________ <br>> > > > > > Net-snmp-users mailing list<br>> > = > > > > <a href=3D"mailto:Net-snmp-users@lists.sourceforge.net"= >Net-snmp-users@lists.sourceforge.net</a><br>> > > > > > = Please see the following page to unsubscribe or change other <br>> options:<br>> > > > > ><br>> > > > &= gt;<br>> > ><br>> <a href=3D"https://lists.sourceforge.net/list= s/listinfo/net-snmp-users">https://lists.sourceforge.net/lists/listinfo/net= -snmp-users </a><br>> > > > > ><br>> > > > ><br>> &= gt; > > ><br>> > > ><br>> > ><br>> > &g= t;<br>> ><br>><br>><br></blockquote></div><br> ------=_Part_6398_25180514.1130132016906-- ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/...net-snmp-users |