Fwd: about gcc -o snmpdemoapp ... -lsnmp
"Clement Hsu" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Dear Dave: It displays followings message: -rw-r--r-- 1 root root 1736746 11月 28 10:10 /usr/local/lib/libnetsnmp.a -rw-r--r-- 1 root root 736246 11月 28 10:10 /usr/local/lib/libnetsnmpagent.a -rwxr-xr-x 1 root root 852 11月 28 10:10 /usr/local/lib/libnetsnmpagent.la lrwxrwxrwx 1 root root 25 11月 28 10:10 /usr/local/lib/libnetsnmpagent.so - > libnetsnmpagent.so.15.0.0 lrwxrwxrwx 1 root root 25 11月 28 10:10 /usr/local/lib/libnetsnmpagent.so.1 5 -> libnetsnmpagent.so.15.0.0 -rwxr-xr-x 1 root root 547304 11月 28 10:10 /usr/local/lib/libnetsnmpagent.so.1 5.0.0 -rw-r--r-- 1 root root 669192 11月 28 10:10 /usr/local/lib/libnetsnmphelpers.a -rwxr-xr-x 1 root root 866 11月 28 10:10 /usr/local/lib/libnetsnmphelpers.la lrwxrwxrwx 1 root root 27 11月 28 10:10 /usr/local/lib/libnetsnmphelpers.so -> libnetsnmphelpers.so.15.0.0 lrwxrwxrwx 1 root root 27 11月 28 10:10 /usr/local/lib/libnetsnmphelpers.so .15 -> libnetsnmphelpers.so.15.0.0 -rwxr-xr-x 1 root root 434020 11月 28 10:10 /usr/local/lib/libnetsnmphelpers.so .15.0.0 -rwxr-xr-x 1 root root 817 11月 28 10:10 /usr/local/lib/libnetsnmp.la -rw-r--r-- 1 root root 4065958 11月 28 10:10 /usr/local/lib/libnetsnmpmibs.a -rwxr-xr-x 1 root root 845 11月 28 10:10 /usr/local/lib/libnetsnmpmibs.la lrwxrwxrwx 1 root root 24 11月 28 10:10 /usr/local/lib/libnetsnmpmibs.so -> libnetsnmpmibs.so.15.0.0 lrwxrwxrwx 1 root root 24 11月 28 10:10 /usr/local/lib/libnetsnmpmibs.so.15 -> libnetsnmpmibs.so.15.0.0 -rwxr-xr-x 1 root root 2689701 11月 28 10:10 /usr/local/lib/libnetsnmpmibs.so.15 .0.0 lrwxrwxrwx 1 root root 20 11月 28 10:10 /usr/local/lib/libnetsnmp.so -> lib netsnmp.so.15.0.0 lrwxrwxrwx 1 root root 20 11月 28 10:10 /usr/local/lib/libnetsnmp.so.15 -> libnetsnmp.so.15.0.0 -rwxr-xr-x 1 root root 1309792 11月 28 10:10 /usr/local/lib/libnetsnmp.so.15.0.0 -rw-r--r-- 1 root root 101620 11月 28 10:11 /usr/local/lib/libnetsnmptrapd.a -rwxr-xr-x 1 root root 852 11月 28 10:11 /usr/local/lib/libnetsnmptrapd.la lrwxrwxrwx 1 root root 25 11月 28 10:11 /usr/local/lib/libnetsnmptrapd.so - > libnetsnmptrapd.so.15.0.0 lrwxrwxrwx 1 root root 25 11月 28 10:11 /usr/local/lib/libnetsnmptrapd.so.1 5 -> libnetsnmptrapd.so.15.0.0 -rwxr-xr-x 1 root root 85442 11月 28 10:11 /usr/local/lib/libnetsnmptrapd.so.1 5.0.0 Thank you , Dave Best Regards, Clement Hsu ---------- Forwarded message ---------- From: Dave Shield <[email protected]> Date: 2006/11/30 下午 10:20 Subject: Re: about gcc -o snmpdemoapp ... -lsnmp To: Clement Hsu <[email protected]> Cc: net-snmp-users <[email protected]> On 30/11/06, Clement Hsu <[email protected]> wrote: > After I execute the following instructions: > > gcc snmpdemoapp.c -o snmpdemoapp -L/usr/local/lib -lnetsnmp -lcrypto -lm Good - so we're making progress. You have at least managed to compile the program. > # ./snmpdemoapp > > ./snmpdemoapp: error while loading shared libraries: libnetsnmp.so.15: > cannot open shared object file: No such file or directory What does ls -l /usr/local/lib/libnetsnmp* display? Dave ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ 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