Re: subagnet can not find libnetsnmpmibs.so.9

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 ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-24-2005
Ryan guo
 
Posts: n/a
Default Re: subagnet can not find libnetsnmpmibs.so.9

------=_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 &quot;--p=
refix&quot; ,prefix is used to specifing the install path of make install.<=
/div>
<div>&nbsp;</div>
<div><br><br>&nbsp;</div>
<div><span class=3D"gmail_quote">On 10/24/05, <b class=3D"gmail_sendername"=
>Rick.Lee</b> &lt;<a href=3D"mailto:rickmaillist@gmail.com">rickmaillis t@gm=

ail.com</a>&gt; 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>&gt;:<br>&gt=
; hi, u needn't do that and&nbsp;&nbsp;,just copy such files to /usr/lib an=
d /usr/lib64
<br>&gt; and retry it,may be ur subagent search these two directories and d=
idn't find<br>&gt; it and arose a error,try it!<br>&gt;<br>&gt;<br>&gt;<br>=
&gt;<br>&gt;<br>&gt;<br>&gt; On 10/22/05, Lee Rick &lt;<a href=3D"mailto:ri=
ckmaillist@gmail.com">
rickmaillist@gmail.com</a>&gt; wrote:<br>&gt; &gt; yes, I find it in /usr/l=
ocal/lib, ls result is:<br>&gt; &gt; [root@localhost net-snmp-5.2.2.pre4]# =
ls /usr/local/lib<br>&gt; &gt; libnetsnmp.a&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;libnetsnmphelpers.so.9
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;libnetsnmp.so. 9<br>&gt; &gt; libnetsnmp=
agent.a&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp; libnetsnmphelpers.s=
o.9.0.0&nbsp;&nbsp;libnetsnmp.so.9.0.0<br>&gt; &gt; <a href=3D"http://libne=
tsnmpagent.la">libnetsnmpagent.la</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp; <a href=3D"http://libnetsnmp.la">libnetsnmp.la
</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp; libnetsnmptrapd.a<br>&gt; &gt; libnetsnmpagent.so&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;libnetsnmpmibs .a&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;< a href=3D"http://libnetsn=
mptrapd.la">libnetsnmptrapd.la</a><br>&gt; &gt; libnetsnmpagent.so.9&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href=3D"http://libnetsnmpmibs.la">
libnetsnmpmibs.la</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;=
&nbsp; libnetsnmptrapd.so<br>&gt; &gt; libnetsnmpagent.so.9.0.0&nbsp;&nbsp;=
libnetsnmpmibs.so&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp;&nbsp;&nbs=
p; libnetsnmptrapd.so.9<br>&gt; &gt; libnetsnmphelpers.a&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp; libnetsnmpmibs.so.9<br>&gt; libnetsnmptrapd.so.9.0.0
<br>&gt; &gt; <a href=3D"http://libnetsnmphelpers.la">libnetsnmphelpers.la<=
/a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;libnetsnmpmi bs.so.9.0.0<br>&gt; &gt;=
libnetsnmphelpers.so&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;libnetsnmp.so<br>&=
gt; &gt;<br>&gt; &gt; here's another little problem,<br>&gt; &gt;&nbsp;&nbs=
p;&nbsp;&nbsp;how to uninstall the package? I compile and install it by sou=
rce
<br>&gt; &gt; code ,not by RPM package.just delete related files and direct=
ories?<br>&gt; &gt;<br>&gt; &gt; thanks!<br>&gt; &gt;<br>&gt; &gt; Rick<br>=
&gt; &gt;<br>&gt; &gt; 2005/10/22, Ryan guo &lt;<a href=3D"mailto:ryanphat@=
gmail.com">
ryanphat@gmail.com</a>&gt;:<br>&gt; &gt; &gt; hi,Lee,i think u should reins=
tall a lower version net-snmp package and<br>&gt; retry<br>&gt; &gt; &gt; i=
t,coz i have not tied it before for that version,may be net-snmp5.1.2<br>
&gt; is<br>&gt; &gt; &gt; more suitable for u,btw,did u find libnetsnmpmibs=
..so.9 in /usr/lib or<br>&gt; &gt; &gt; /usr/lib64 ?<br>&gt; &gt; &gt;<br>&g=
t; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; =
&gt; &gt; On 10/22/05, Lee Rick &lt;
<a href=3D"mailto:rickmaillist@gmail.com">rickmaillis t@gmail.com</a>&gt; wr=
ote:<br>&gt; &gt; &gt; &gt; hi,guo,<br>&gt; &gt; &gt; &gt; thanks for your =
answer.<br>&gt; &gt; &gt; &gt; I've really installed the package of net-snm=
p-5.2.2.pre4
and I've<br>&gt; &gt; &gt; &gt; performed some test and both the snmpd and=
snmpget and so on work<br>&gt; &gt; &gt; &gt; fine.<br>&gt; &gt; &gt; &gt;=
<br>&gt; &gt; &gt; &gt; The example given by the Tutorial of compiling the =
mib module into
<br>&gt; &gt; &gt; &gt; master agent is ok.<br>&gt; &gt; &gt; &gt; The way =
of subagent shows error as decribed in my last letter. I<br>&gt; &gt; &gt; =
&gt; think it may not the problem of net-snmp, because it shows that system
<br>&gt; &gt; &gt; &gt; can not load the shared object.<br>&gt; &gt; &gt; &=
gt;&nbsp;&nbsp; could you or any other give me some more advice?<br>&gt; &g=
t; &gt; &gt;<br>&gt; &gt; &gt; &gt;&nbsp;&nbsp; Thank you!<br>&gt; &gt; &gt=
; &gt; Rick<br>&gt; &gt; &gt; &gt;
<br>&gt; &gt; &gt; &gt; 2005/10/22, Ryan guo &lt; <a href=3D"mailto:ryanpha=
t@gmail.com">ryanphat@gmail.com</a> &gt;:<br>&gt; &gt; &gt; &gt; &gt; hi,le=
e<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt;=
&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;First=
,make sure u have installed the net-snmp package on ur
<br>&gt; &gt; &gt; linux<br>&gt; &gt; &gt; &gt; &gt; system, and if u had d=
o so,look up these .so files such as<br>&gt; &gt; &gt; libnetsnmpmibs.so<br=
>&gt; &gt; &gt; &gt; &gt; as u said at /usr/lib or /usr/lib64 and make sure=

that the file u
<br>&gt; want<br>&gt; &gt; &gt; is at<br>&gt; &gt; &gt; &gt; &gt; there.<br=
>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt=

; &gt;<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt;=
&gt; &gt; &gt; On 10/21/05, Lee Rick &lt;=20
<a href=3D"mailto:rickmaillist@gmail.com">rickmaillis t@gmail.com</a>&gt; wr=
ote:<br>&gt; &gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; &gt; hi, =
I'm learning about net-snmp. I'm praticing with the NET-SNMP<br>&gt; &gt; &=
gt; Tutorial.
<br>&gt; &gt; &gt; &gt; &gt; &gt; Followed by the sub-agent Demon tutorial =
step by step, I've<br>&gt; compiled<br>&gt; &gt; &gt; &gt; &gt; &gt; the ns=
tAgentSubagentObject.c correctly. Then I run the subagent as<br>&gt; &gt; &=
gt; &gt; &gt; &gt; follows and error occurs.
<br>&gt; &gt; &gt; &gt; &gt; &gt; [root@localhost download]# ./mysubagent<b=
r>&gt; &gt; &gt; &gt; &gt; &gt; ./mysubagent: error while loading shared li=
braries:<br>&gt; &gt; &gt; libnetsnmpmibs.so.9:<br>&gt; &gt; &gt; &gt; &gt;=
cannot
<br>&gt; &gt; &gt; &gt; &gt; &gt; open shared object file: No such file or =
directory<br>&gt; &gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; &gt;=
But I do find the libnetsnmpmibs.so.9 file in directory<br>&gt; &gt; &gt; =
/usr/local/lib,
<br>&gt; &gt; &gt; &gt; &gt; &gt; what's the matter? and how to fix it?<br>=
&gt; &gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; &gt; Thanks a lot=
!<br>&gt; &gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; ---------------------------=
----------------------------<br>&gt; &gt; &gt; &gt; &gt; &gt; This SF.Net e=
mail is sponsored by:<br>&gt; &gt; &gt; &gt; &gt; &gt; Power Architecture R=
esource Center: Free content, downloads,
<br>&gt; &gt; &gt; discussions,<br>&gt; &gt; &gt; &gt; &gt; &gt; and more.<=
br>&gt; <a href=3D"http://solutions.newsforge.com/ibmarch.tmpl">http://solu=
tions.newsforge.com/ibmarch.tmpl</a><br>&gt; &gt; &gt; &gt; &gt; &gt; _____=
__________________________________________
<br>&gt; &gt; &gt; &gt; &gt; &gt; Net-snmp-users mailing list<br>&gt; &gt; =
&gt; &gt; &gt; &gt; <a href=3D"mailto:Net-snmp-users@lists.sourceforge.net"=
>Net-snmp-users@lists.sourceforge.net</a><br>&gt; &gt; &gt; &gt; &gt; &gt; =

Please see the following page to unsubscribe or change other
<br>&gt; options:<br>&gt; &gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &=
gt;<br>&gt; &gt; &gt;<br>&gt; <a href=3D"https://lists.sourceforge.net/list=
s/listinfo/net-snmp-users">https://lists.sourceforge.net/lists/listinfo/net=
-snmp-users
</a><br>&gt; &gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &=
gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &g=
t;<br>&gt; &gt;<br>&gt;<br>&gt;<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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:05 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0