Hi Vito,
          I have copied the file from SVN and gone through the README.FIRST
as below.

PF_RING is a Linux kernel module and user-space framework that allows
you to process packets at high-rates while providing you a consistent
API for packet processing applications.

Compilation
-----------
You need to have installed the basic compilation tools and libraries.
On Ubuntu you can do
# apt-get install build-essential bison flex linux-headers-$(uname -r)

At this point you can compile the module
# make

Installation
------------
# sudo su
# cd kernel; make install
# cd ../userland/lib; make install

PF_RING-aware drivers
---------------------
In order to fully exploit PF_RING you need to use PF_RING aware drivers
instead of vanilla ones. You can find these drivers in the drivers/
directory. For exploiting their acceleration you need to play with
the transparent mode as explained
inhttp://www.ntop.org/blog/pf_ring/pf_ring-and-transparent_mode/


If I follow the installation step the I will reinstall the whole
PF_RING which will conflict with my earlier installation. So how am I
going to compile my custom codes then ?




On Tue, May 21, 2013 at 12:37 PM, [email protected] <[email protected]
> wrote:

> Hey frwa
>
> Ok, I tried my self, and due to some problems with the 5.5.2, I would
> suggest you to clone the source code directly from the SVN repository.
> There is a README.FIRST in the root folder that could guide you thought
> out the compilation process
>
> regards
> -vito
>
>
> On 05/21/2013 06:28 PM, frwa onto wrote:
> > Hi Vito,
> >            Tried and got this  make
> > make: *** No targets specified and no makefile found.  Stop.
> >
> >
> >
> > On Tue, May 21, 2013 at 12:10 PM, [email protected]
> > <mailto:[email protected]> <[email protected]
> > <mailto:[email protected]>> wrote:
> >
> >     cd userland/example
> >     make
> >
> >     -vito
> >
> >
> >     On 05/21/2013 05:56 PM, frwa onto wrote:
> >     > Hi Vito,
> >     >            Thank you for your kind help here. The problem in the
> >     > PF_RING-5.5.2 folder there are few configure scripts which one
> >     should I
> >     > launch now ? Is it the one in the /userland/lib/configure?  Ok
> back to
> >     > my original question if I need to modify the pfcount to my usage
> how
> >     > will I compile then ?
> >     >
> >     >
> >     > On Tue, May 21, 2013 at 11:29 PM, [email protected]
> >     <mailto:[email protected]>
> >     > <mailto:[email protected] <mailto:[email protected]>>
> >     <[email protected] <mailto:[email protected]>
> >     > <mailto:[email protected] <mailto:[email protected]>>>
> wrote:
> >     >
> >     >     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]>
> >     >     <mailto:[email protected] <mailto:[email protected]>>
> >     >     > <mailto:[email protected] <mailto:[email protected]>
> >     <mailto:[email protected] <mailto:[email protected]>>>
> >     >     <[email protected] <mailto:[email protected]>
> >     <mailto:[email protected] <mailto:[email protected]>>
> >     >     > <mailto:[email protected] <mailto:[email protected]>
> >     <mailto:[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>
> >     >     >     <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]>
> >     >     <mailto:[email protected]
> >     <mailto:[email protected]>>
> >     >     <mailto:[email protected]
> >     <mailto:[email protected]>
> >     >     <mailto:[email protected]
> >     <mailto:[email protected]>>>
> >     >     >     > http://listgateway.unipi.it/mailman/listinfo/ntop-misc
> >     >     >     >
> >     >     >
> >     >     >     _______________________________________________
> >     >     >     Ntop-misc mailing list
> >     >     >     [email protected]
> >     <mailto:[email protected]>
> >     >     <mailto:[email protected]
> >     <mailto:[email protected]>>
> >     >     <mailto:[email protected]
> >     <mailto:[email protected]>
> >     >     <mailto:[email protected]
> >     <mailto:[email protected]>>>
> >     >     >     http://listgateway.unipi.it/mailman/listinfo/ntop-misc
> >     >     >
> >     >     >
> >     >     >
> >     >     >
> >     >     > _______________________________________________
> >     >     > Ntop-misc mailing list
> >     >     > [email protected]
> >     <mailto:[email protected]>
> >     <mailto:[email protected]
> >     <mailto:[email protected]>>
> >     >     > http://listgateway.unipi.it/mailman/listinfo/ntop-misc
> >     >     >
> >     >
> >     >     _______________________________________________
> >     >     Ntop-misc mailing list
> >     >     [email protected]
> >     <mailto:[email protected]>
> >     <mailto:[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] <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
>
_______________________________________________
Ntop-misc mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-misc

Reply via email to