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