Re: subagnet can not find libnetsnmpmibs.so.9

Ryan guo <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
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 <[email protected]> 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 <[email protected]>:
> > 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 <[email protected]> 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://libnetsnmp.la>
> libnetsnmptrapd.a
> > > libnetsnmpagent.so libnetsnmpmibs.a libnetsnmptrapd.la<http://libnetsnmptrapd.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 <[email protected]>:
> > > > 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 <[email protected]> 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 into
> > > > > 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 < [email protected] >:
> > > > > > 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 < [email protected]> 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
> > > > > > > [email protected]
> > > > > > > Please see the following page to unsubscribe or change other
> > options:
> > > > > > >
> > > > > >
> > > >
> > https://lists.sourceforge.net/lists/listinfo/net-snmp-users
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > > >
> > >
> >
> >
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.