?
Solved

error while compile and install snort in rhel5

Posted on 2010-11-09
4
Medium Priority
?
1,152 Views
Last Modified: 2013-11-29
Dear Experts:

Iam having rhel5.5, iam trying to configure snort hence as a requirments

downloaded the libpcap-1.1.1 compiled and installed the same by executing the following command:

./configure --prefix=/opt/snort/snort2.9 ; make && make install
---------
with the above command successfully got installed without any errors, after this did cd to daq-0.2, by executing the command i,e by pointing to the libpcap path like the below :

./configure --with-libpcap-includes=/opt/snort/snort2.9/include --with-libpcap-libraries=/opt/snort/snort2.9/lib


the above compile ends with the following error:

checking for pcap.h... (cached) yes
checking for pcap_lib_version... checking for pcap_lib_version in -lpcap... yes
checking for libpcap version >= "1.0.0"... no

    ERROR!  Libpcap library version >= 1.0.0  not found.
    Get it from http://www.tcpdump.org

-------------------------------------------------

Even though libpcap is installed while installing the daq it is not able to find the libpcap, please help.

0
Comment
Question by:D_wathi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 16

Accepted Solution

by:
medvedd earned 2000 total points
ID: 34093877
After you compiled and installed pcap library, do following as root:

1. In directory /etc/ld.so.conf.d create file snort.conf, consisting of 1 line:

/opt/snort/snort2.9/lib

2. Run ldconfig

Now try to configure daq again
0
 

Author Comment

by:D_wathi
ID: 34094499
Sir , did as per the instructions and then executed the below command from the daq
./configure --with-libpcap-includes=/opt/snort/snort2.9/include --with-libpcap-libraries=/opt/snort/snort2.9/lib
-----------
with this compiled successfully then did make and make install. worked fine


0
 

Author Comment

by:D_wathi
ID: 34094834
Sir , after installing daq and while compile and installing the snort like following

./configure --with-mysql --enable-dynamicplugin
make
make install
-------------------------------------------- ended with the below error ------------------------------

/usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient.a when searchin                                                                             g for -lmysqlclient
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
make[5]: *** [libsf_engine.la] Error 1
make[5]: Leaving directory `/opt/snort/snort-2.9.0.1/src/dynamic-plugins/sf_engi                                                                             ne'
make[4]: *** [install-recursive] Error 1
make[4]: Leaving directory `/opt/snort/snort-2.9.0.1/src/dynamic-plugins/sf_engi                                                                             ne'
make[3]: *** [install] Error 2
make[3]: Leaving directory `/opt/snort/snort-2.9.0.1/src/dynamic-plugins/sf_engi                                                                             ne'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/opt/snort/snort-2.9.0.1/src/dynamic-plugins'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/opt/snort/snort-2.9.0.1/src'
make: *** [install-recursive] Error 1
----------------------
plese suggest me hwo to fix this error

0
 

Author Comment

by:D_wathi
ID: 34095010
Sir, installed snort i,e compiled and did make and make install but finally ended with 2 error iam not sure whether this is okay can ignore or not please suggest me.

for your reference posted below the complete process of make install of snort-2.9.0.1

make install
Making install in src
make[1]: Entering directory `/opt/snort/snort-2.9.0.1/src'
Making install in sfutil
make[2]: Entering directory `/opt/snort/snort-2.9.0.1/src/sfutil'
make[3]: Entering directory `/opt/snort/snort-2.9.0.1/src/sfutil'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/opt/snort/snort-2.9.0.1/src/sfutil'
make[2]: Leaving directory `/opt/snort/snort-2.9.0.1/src/sfutil'
Making install in win32
make[2]: Entering directory `/opt/snort/snort-2.9.0.1/src/win32'
make[3]: Entering directory `/opt/snort/snort-2.9.0.1/src/win32'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/opt/snort/snort-2.9.0.1/src/win32'
make[2]: Leaving directory `/opt/snort/snort-2.9.0.1/src/win32'
Making install in output-plugins
make[2]: Entering directory `/opt/snort/snort-2.9.0.1/src/output-plugins'
make[3]: Entering directory `/opt/snort/snort-2.9.0.1/src/output-plugins'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/opt/snort/snort-2.9.0.1/src/output-plugins'
make[2]: Leaving directory `/opt/snort/snort-2.9.0.1/src/output-plugins'
Making install in detection-plugins
make[2]: Entering directory `/opt/snort/snort-2.9.0.1/src/detection-plugins'
make  install-am
make[3]: Entering directory `/opt/snort/snort-2.9.0.1/src/detection-plugins'
make[4]: Entering directory `/opt/snort/snort-2.9.0.1/src/detection-plugins'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/opt/snort/snort-2.9.0.1/src/detection-plugins'
make[3]: Leaving directory `/opt/snort/snort-2.9.0.1/src/detection-plugins'
make[2]: Leaving directory `/opt/snort/snort-2.9.0.1/src/detection-plugins'
Making install in dynamic-plugins
make[2]: Entering directory `/opt/snort/snort-2.9.0.1/src/dynamic-plugins'
Making install in sf_engine
make[3]: Entering directory `/opt/snort/snort-2.9.0.1/src/dynamic-plugins/sf_eng                                                                             ine'
make  install-recursive
make[4]: Entering directory `/opt/snort/snort-2.9.0.1/src/dynamic-plugins/sf_eng                                                                             ine'
Making install in examples
make[5]: Entering directory `/opt/snort/snort-2.9.0.1/src/dynamic-plugins/sf_eng                                                                             ine/examples'
make[6]: Entering directory `/opt/snort/snort-2.9.0.1/src/dynamic-plugins/sf_eng                                                                             ine/examples'
make[6]: Nothing to be done for `install-exec-am'.
make[6]: Nothing to be done for `install-data-am'.
make[6]: Leaving directory `/opt/snort/snort-2.9.0.1/src/dynamic-plugins/sf_engi                                                                             ne/examples'
make[5]: Leaving directory `/opt/snort/snort-2.9.0.1/src/dynamic-plugins/sf_engi                                                                             ne/examples'
make[5]: Entering directory `/opt/snort/snort-2.9.0.1/src/dynamic-plugins/sf_eng                                                                             ine'
/bin/sh ../../../libtool --tag=CC   --mode=link gcc  -g -O2 -fvisibility=hidden                                                                              -fno-strict-aliasing -Wall -shared -export-dynamic -module  -lpcre -L/usr/local/                                                                             lib -ldnet -L/usr/lib/mysql -o libsf_engine.la -rpath /usr/local/lib/snort_dynam                                                                             icengine bmh.lo sf_snort_detection_engine.lo sf_snort_plugin_api.lo sf_snort_plu                                                                             gin_byte.lo sf_snort_plugin_content.lo sf_snort_plugin_hdropts.lo sf_snort_plugi                                                                             n_loop.lo sf_snort_plugin_pcre.lo sf_snort_plugin_rc4.lo sfhashfcn.lo sfghash.lo                                                                              sfprimetable.lo sf_ip.lo  -lmysqlclient -lz -ldaq_static -lpcre -lpcap -lnsl -l                                                                             m -lm  -ldl -L/usr/local/lib -ldaq_static_modules -lpcap -lsfbpf
libtool: link: gcc -shared  .libs/bmh.o .libs/sf_snort_detection_engine.o .libs/                                                                             sf_snort_plugin_api.o .libs/sf_snort_plugin_byte.o .libs/sf_snort_plugin_content                                                                             .o .libs/sf_snort_plugin_hdropts.o .libs/sf_snort_plugin_loop.o .libs/sf_snort_p                                                                             lugin_pcre.o .libs/sf_snort_plugin_rc4.o .libs/sfhashfcn.o .libs/sfghash.o .libs                                                                             /sfprimetable.o .libs/sf_ip.o   -Wl,-rpath -Wl,/usr/local/lib -Wl,-rpath -Wl,/us                                                                             r/local/lib -L/usr/local/lib /usr/local/lib/libdnet -L/usr/lib/mysql -lmysqlclie                                                                             nt -lz /usr/local/lib/libdaq_static.a -L/opt/snort/snort2.9/lib -lpcre -lnsl -lm                                                                              -ldl /usr/local/lib/libdaq_static_modules.a /usr/local/lib/libsfbpf.so -lpcap                                                                                 -Wl,-soname -Wl,libsf_engine.so.0 -o .libs/libsf_engine.so.0.0.0
/usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient.so when searchi                                                                             ng for -lmysqlclient
/usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient.a when searchin                                                                             g for -lmysqlclient
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
make[5]: *** [libsf_engine.la] Error 1
make[5]: Leaving directory `/opt/snort/snort-2.9.0.1/src/dynamic-plugins/sf_engi                                                                             ne'
make[4]: *** [install-recursive] Error 1
make[4]: Leaving directory `/opt/snort/snort-2.9.0.1/src/dynamic-plugins/sf_engi                                                                             ne'
make[3]: *** [install] Error 2
make[3]: Leaving directory `/opt/snort/snort-2.9.0.1/src/dynamic-plugins/sf_engi                                                                             ne'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/opt/snort/snort-2.9.0.1/src/dynamic-plugins'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/opt/snort/snort-2.9.0.1/src'
make: *** [install-recursive] Error 1
-----------------------------------------------------

Please suggest is it required to fix the above Error 1 or it is okay can be ignored the snort will not have problems with this error.
0

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recovering from what the press called "the largest-ever cyber-attack", IT departments worldwide are discussing ways to defend against this in the future. In this process, many people are looking for immediate actions while, instead, they need to tho…
The well known Cerber ransomware continues to spread this summer through spear phishing email campaigns targeting enterprises. Learn how it easily bypasses traditional defenses - and what you can do to protect your data.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

741 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question