LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-08-2023, 02:01 AM   #1
bilal_jan
LQ Newbie
 
Registered: Oct 2023
Posts: 3

Rep: Reputation: 0
Angry 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
 
Old 10-08-2023, 07:35 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,149

Rep: Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264
What error? It says your library is installed and tells you how to link to it.
 
Old 10-08-2023, 01:45 PM   #3
bilal_jan
LQ Newbie
 
Registered: Oct 2023
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by smallpond View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Snort3/PF_RING Install issue on Oracle 8 ntallguy Linux - Software 0 06-02-2023 10:45 PM
Installing PF_RING on CentOS 6 64-bit vip2442 Linux - Security 1 09-22-2011 03:20 AM
ntop v.3.3.10 packets dropped by pf_ring enabled libpcap anastas Linux - Networking 0 03-05-2009 07:45 PM
PF_RING implementation mcnguyen Linux - Newbie 1 06-22-2008 08:26 AM
Building libpcap with pf_ring Machiaveli Linux - Software 1 12-15-2005 05:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration