LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problem in installing PF_Ring. Make Install giving error. (https://www.linuxquestions.org/questions/linux-newbie-8/problem-in-installing-pf_ring-make-install-giving-error-4175729668/)

bilal_jan 10-08-2023 02:01 AM

Problem in installing PF_Ring. Make Install giving error.
 
As a part of SNORT, I am trying to install PF_Ring on my Ubuntu LTS 20.04, I am following this guide https://www.ntop.org/guides/pf_ring/...ml#compilation

Every thing went fine except when I issue $make install, I am getting this error.

Quote:

Libraries have been installed in:
/usr/local/lib/daq

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the 'LD_RUN_PATH' environment variable
during linking
- use the '-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to '/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
make[1]: Nothing to be done for 'install-data-am'.
make[1]: Leaving directory '/home/denes/Desktop/PF_RING/userland/snort/pfring-daq-module'
I tried many fixes like the one mentioned here https://ehetherington.github.io/libt...ll-as-lib.html but wasnt able to fix it.
Can someone guide me about how to fix that

smallpond 10-08-2023 07:35 AM

What error? It says your library is installed and tells you how to link to it.

bilal_jan 10-08-2023 01:45 PM

Quote:

Originally Posted by smallpond (Post 6457625)
What error? It says your library is installed and tells you how to link to it.

Thanks for the reply.

When i issue $make install, all I get is following output. This is not what make install gives you.


Quote:

make[1]: Entering directory '/home/denes/Desktop/PF_RING/userland/snort/pfring-daq-module'
/usr/bin/mkdir -p '/usr/local/lib/daq'
/bin/bash ./libtool --mode=install /usr/bin/install -c daq_pfring.la '/usr/local/lib/daq'
libtool: install: /usr/bin/install -c .libs/daq_pfring.so /usr/local/lib/daq/daq_pfring.so
libtool: install: /usr/bin/install -c .libs/daq_pfring.lai /usr/local/lib/daq/daq_pfring.la
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/sbin" ldconfig -n /usr/local/lib/daq
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/lib/daq

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the 'LD_RUN_PATH' environment variable
during linking
- use the '-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to '/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
make[1]: Nothing to be done for 'install-data-am'.
make[1]: Leaving directory '/home/denes/Desktop/PF_RING/userland/snort/pfring-daq-module'
Since I am trying to run SNORT using PF_Ring, when I issue $sudo snort --daq-dir=/usr/local/lib/daq --daq pfring --daq-mode passive -i wlp4s0b1 -v -e, i get this error

Quote:

Running in packet dump mode

--== Initializing Snort ==--
Initializing Output Plugins!
pfring DAQ configured to passive.
ERROR: Can't initialize DAQ pfring (-1) -
Fatal Error, Quitting..
Can you guide me what linking I am missing.


All times are GMT -5. The time now is 01:41 PM.