Never-mind, got it:

1) Unzip    net-snmp-5.7.3.tar.gz

2) sudo apt-get install libperl-dev

3) The INSTALL file will give all details

     a) sudo ./configure --with-perl-modules --enable-ipv6    (just take
all defaults)
     b) sudo make
     c) sudo make install



4) echo export LD_LIBRARY_PATH=/usr/local/lib >> ~/.bashrc


5)  in net-snmp-5.7.3/perl$  do
    sudo perl Makefile.PL
    sudo make
    sudo make install




On Wed, Aug 22, 2018 at 2:51 PM, Simon Chamlian <simon.chaml...@mpbc.ca>
wrote:

> Hi,
>
> I downloaded net-snmp-5.7.3.zip and followed the instructions to install
> it on my Ubuntu machine:
>
>     QUICK INSTRUCTIONS
>     ==================
>
>       1) Run ./configure
>
>       2) make
>
>     and I am getting the following error:
>
>     libtool: link: gcc -shared  -fPIC -DPIC  helpers/.libs/all_helpers.o
> helpers/.libs/baby_steps.o helpers/.libs/bulk_to_next.o
> helpers/.libs/cache_handler.o helpers/.libs/debug_handler.o
> helpers/.libs/instance.o helpers/.libs/mode_end_call.o
> helpers/.libs/multiplexer.o helpers/.libs/null.o helpers/.libs/old_api.o
> helpers/.libs/read_only.o helpers/.libs/row_merge.o helpers/.libs/scalar.o
> helpers/.libs/scalar_group.o helpers/.libs/serialize.o
> helpers/.libs/snmp_get_statistic.o helpers/.libs/stash_cache.o
> helpers/.libs/stash_to_next.o helpers/.libs/table.o
> helpers/.libs/table_array.o helpers/.libs/table_container.o
> helpers/.libs/table_data.o helpers/.libs/table_dataset.o
> helpers/.libs/table_iterator.o helpers/.libs/table_row.o
> helpers/.libs/table_tdata.o helpers/.libs/watcher.o .libs/agent_handler.o
> .libs/agent_index.o .libs/agent_read_config.o .libs/agent_registry.o
> .libs/agent_sysORTable.o .libs/agent_trap.o .libs/kernel.o
> .libs/snmp_agent.o .libs/snmp_vars.o mibgroup/snmpv3/.libs/usmConf.o
> mibgroup/agentx/.libs/master.o mibgroup/agentx/.libs/subagent.o
> mibgroup/utilities/.libs/execute.o mibgroup/utilities/.libs/iquery.o
> mibgroup/mibII/.libs/vacm_conf.o mibgroup/agentx/.libs/protocol.o
> mibgroup/agentx/.libs/client.o mibgroup/agentx/.libs/master_admin.o
> mibgroup/agentx/.libs/agentx_config.o   -Wl,-rpath
> -Wl,/home/jay/Yocto_Builds/net-snmp/net-snmp-5.7.3/snmplib/.libs
> ../snmplib/.libs/libnetsnmp.so -L/usr/local/lib 
> -L/usr/lib/x86_64-linux-gnu/perl/5.22/CORE
> -lperl -ldl -lpthread -lc -lcrypt -lm  -O2 -Wl,-E
> -fstack-protector-strong   -Wl,-soname -Wl,libnetsnmpagent.so.30 -o
> .libs/libnetsnmpagent.so.30.0.3
>
> *    /usr/bin/ld: cannot find -lperl*    collect2: error: ld returned 1
> exit status
>     Makefile:976: recipe for target 'libnetsnmpagent.la' failed
>     make[1]: *** [libnetsnmpagent.la] Error 1
>     make[1]: Leaving directory '/home/jay/Yocto_Builds/net-
> snmp/net-snmp-5.7.3/agent'
>     Makefile:656: recipe for target 'subdirs' failed
>     make: *** [subdirs] Error 1
>
>
> perl is installed on my machine:
>
> $ perl -v
>
> This is perl 5, version 22, subversion 1 (v5.22.1) built for
> x86_64-linux-gnu-thread-multi
> (with 69 registered patches, see perl -V for more detail)
>
> Copyright 1987-2015, Larry Wall
>
> Perl may be copied only under the terms of either the Artistic License or
> the
> GNU General Public License, which may be found in the Perl 5 source kit.
>
> Complete documentation for Perl, including FAQ lists, should be found on
> this system using "man perl" or "perldoc perl".  If you have access to the
> Internet, point your browser at http://www.perl.org/, the Perl Home Page.
>
> $
>
>
>
> Any hints?
>
> Thanks,
> S
>
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
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/listinfo/net-snmp-users

Reply via email to