
deri at ntop
Jun 27, 2012, 8:20 AM
Post #4 of 4
(473 views)
Permalink
|
Frwa, also make sure that you have /usr/local/lib in your library path. Typically do (as root) 1. create a file like this deri [at] i 201> cat /etc/ld.so.conf.d/libc.conf # libc default configuration /usr/local/lib 2. run ldconfig 3. run your app Luca On Jun 27, 2012, at 5:08 PM, frwa onto wrote: > Dear Luca, > How to link that I dont find any details of it in the pf_ring guide on the linking process? i only find this > cd <PF_RING PATH>/userland/lib > $ ./configure > $ make > $ sudo make install > Your help will be much appreciated and why is this linking needed? Thank you. > > Regards, > Frwa. > > On Wed, Jun 27, 2012 at 11:04 PM, Luca Deri <deri [at] ntop> wrote: > Frwa, > you need to link against libpfring.a (not .so) > > Luca > > On Jun 27, 2012, at 4:46 PM, frwa onto wrote: > >> Dear All, >> We have successfully install pf_ring then we did this. >> cd userland/lib >> ./configure --disable-bpf >> make >> make install >> Next we could run ./pfcount and generate results. But below we tried our codes >> gcc -o pfV3Exe $(mysql_config --cflags) pfV3.c $(mysql_config --libs) -lpfring >> pfV3.c:24:1: warning: "_GNU_SOURCE" redefined >> <command-line>: warning: this is the location of the previous definition >> [root [at] ites examples]# ./pfV3Exe >> ./pfV3Exe: error while loading shared libraries: libpfring.so: cannot open shared object file: No such file or directory >> [root [at] ites examples]# find / -name libpfring.so >> /usr/local/lib/libpfring.so >> /home/test1/PF_RING-5.4.3/userland/lib/libpfring.so >> >> Why is it not able to link when the libraries are all there? How to link it up? >> >> >> Regards, >> Frwa. >> >> >> _______________________________________________ >> Ntop-misc mailing list >> Ntop-misc [at] listgateway >> http://listgateway.unipi.it/mailman/listinfo/ntop-misc > > > _______________________________________________ > Ntop-misc mailing list > Ntop-misc [at] listgateway > http://listgateway.unipi.it/mailman/listinfo/ntop-misc > > > _______________________________________________ > Ntop-misc mailing list > Ntop-misc [at] listgateway > http://listgateway.unipi.it/mailman/listinfo/ntop-misc
|