Yep, sry I haven't thought about this possible problem..

probably the best way for you is to do not install the compiled binaries.

So a more correct step sequence:

1) after the untar, launch the ./configure script
2) move into the example folder (like PF_RING/userland/examples)
3) make

now you should have all the examples compiled

hope this helps
-vito



On  05/21/2013 04:28 PM, frwa onto wrote:
> Hi Vito,
>            The problem remember yesterday we have already installed
> using the .rpm method. So if we installed using this method will there
> be any conflicts? Another thing later on we will be editing pfcount and
> inserting the packets into db etc so still also we need to compile that
> is why we using this method to resolve thing. We just left with one last
> step if you notice just this one 
>> /usr/local/lib/libpfring.so: undefined reference to `pcap_compile_nopcap'
>> collect2: ld returned 1 exit status
> 
> 
> On Tue, May 21, 2013 at 10:20 PM, [email protected]
> <mailto:[email protected]> <[email protected]
> <mailto:[email protected]>> wrote:
> 
>     Hello instead of compiling every single file by hands, try the classic
>     method:
> 
>     1) download and untar the source
>     2) jump into the source folder
>     3) launch (as root, if you want to install the binaries into a sys
>     folder)
> 
>     ./configure --prefix=/path/where/install/the/binaries; make; make
>     install
> 
>     pls note that the configure script has many others options, to see them
>     just type:
> 
>     ./configure --help
> 
> 
>     hope this help
>     regards
>     -vito
> 
>     On 05/21/2013 03:19 PM, frwa onto wrote:
>     > Hi,
>     >     I have just installed the latest pf_ring using .rpm method. So I
>     > could not the pfount source code. Then I downloaded the source
>     from this
>     > link http://sourceforge.net/projects/ntop/files/PF_RING/  took
>     this one
>     > PF_RING-5.5.2.tar.gz
>     >
>     
> <http://sourceforge.net/projects/ntop/files/PF_RING/PF_RING-5.5.2.tar.gz/download>
>     > . I faced a series of problem and managed to solve except the last
>     one.
>     >
>     > 1) gcc -o pfcount1 pfcount.c -lpfring
>     > pfcount.c:54:21: error: pfutils.c: No such file or directory
>     >
>     > Fixed it by copying the pfutils.c into the same directory as pfcount.c
>     >
>     > 2)  gcc -o pfcount1 pfcount.c -lpfringIn file included from
>     pfcount.c:54:
>     > pfutils.c:24:27: error: ../lib/config.h: No such file or directory
>     >
>     > Fixed it by copying from the /lib folder the config.h.in
>     <http://config.h.in>
>     > <http://config.h.in> and changed it to config.h
>     >
>     > and also change the location of it in the pfutils.c
>     >
>     > 3)  gcc -o pfcount1 pfcount.c -lpfring
>     > /tmp/ccb4JlQ7.o: In function `main':
>     > pfcount.c:(.text+0x1e24): undefined reference to `clock_gettime'
>     > /usr/local/lib/libpfring.so: undefined reference to
>     `pcap_compile_nopcap'
>     > collect2: ld returned 1 exit status
>     >
>     > Fixed it by gcc -o pfcount1 pfcount.c -lpfring -lrt
>     >
>     > 4) gcc -o pfcount1 pfcount.c -lpfring -lrt
>     > /usr/local/lib/libpfring.so: undefined reference to
>     `pcap_compile_nopcap'
>     > collect2: ld returned 1 exit status
>     >
>     > Could not fix this any help on this please?
>     >
>     >
>     >
>     >
>     >
>     >
>     >
>     > _______________________________________________
>     > Ntop-misc mailing list
>     > [email protected] <mailto:[email protected]>
>     > http://listgateway.unipi.it/mailman/listinfo/ntop-misc
>     >
> 
>     _______________________________________________
>     Ntop-misc mailing list
>     [email protected] <mailto:[email protected]>
>     http://listgateway.unipi.it/mailman/listinfo/ntop-misc
> 
> 
> 
> 
> _______________________________________________
> Ntop-misc mailing list
> [email protected]
> http://listgateway.unipi.it/mailman/listinfo/ntop-misc
> 

_______________________________________________
Ntop-misc mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-misc

Reply via email to