Re: cannot run in Ubuntu 10.04

Abraham Varricatt <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Thank you for the hint!

Turns out that the library files were installed in "/usr/local/lib" on
Ubuntu. So, running the following command solved the issue for me,

export LD_LIBRARY_PATH=/usr/local/lib

Also, to keep it consistent across reboots, I added it to my ".bashrc" file.

Resuming experiments,
Abraham Varricatt


On Thu, Sep 2, 2010 at 12:52 PM, rakesh zingade <[email protected]> wrote:
> May the library path is not set.
>
> try executing following command
>
> # ldd `which snmpget`
>
> you will see the linked libraries.. if found any library not found message
> at linking try to search that library on your system...
>
> If you found these libraries e.g. libnetsnmp.so.20 under
> /usr/local/lib/net-snmp/ then use this path to set LD_LIBRARY_PATH env var &
> then try executing the same command...
>
> On Thu, Sep 2, 2010 at 12:41 PM, Abraham Varricatt
> <[email protected]> wrote:
>>
>> I'm getting errors like this,
>> > snmptranslate .1.3.6.1.2.1.1.3.0
>> snmptranslate: error while loading shared libraries: libnetsnmp.so.20:
>> cannot open shared object file: No such file or directory
>> > snmpget --help
>> snmpget: error while loading shared libraries: libnetsnmp.so.20:
>> cannot open shared object file: No such file or directory
>>
>> I installed net-snmp-5.5 on a fresh Ubuntu (10.04) system running in
>> VirtualBox. Here are the steps I used (from the INSTALL file)
>>
>> ./configure
>> make
>> sudo make install
>>
>> When running "make" the first time, it gave an error. Something like -
>> "/usr/bin/ld: cannot find -lperl". I installed the libperl libraries
>> and "make" succeeded. But I wonder, shouldn't that dependency be
>> caught in "./configure" ?
>>
>> A bit off-subject, but which tutorials should I follow ? There seems
>> to be a wiki on the sourceforge page as well as some badly linked HTML
>> pages.
>>
>> Learning about SNMP,
>> Abraham Varricatt
>>
>>
>> ------------------------------------------------------------------------------
>> This SF.net Dev2Dev email is sponsored by:
>>
>> Show off your parallel programming skills.
>> Enter the Intel(R) Threading Challenge 2010.
>> http://p.sf.net/sfu/intel-thread-sfd
>> _______________________________________________
>> 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
>
>
>
> --
> Rakesh P. Zingade
> +919420626099
>

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
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.