Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: NTop: Misc

Error loading libpfring.so

 

 

NTop misc RSS feed   Index | Next | Previous | View Threaded


frwaonto at gmail

Jun 27, 2012, 7:46 AM

Post #1 of 4 (501 views)
Permalink
Error loading libpfring.so

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.


deri at ntop

Jun 27, 2012, 8:04 AM

Post #2 of 4 (478 views)
Permalink
Re: Error loading libpfring.so [In reply to]

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


frwaonto at gmail

Jun 27, 2012, 8:08 AM

Post #3 of 4 (474 views)
Permalink
Re: Error loading libpfring.so [In reply to]

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


deri at ntop

Jun 27, 2012, 8:20 AM

Post #4 of 4 (473 views)
Permalink
Re: Error loading libpfring.so [In reply to]

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

NTop misc RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.