Solved

error while compile and install snort in rhel5

Posted on 2010-11-09
4
1,143 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 500 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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

The next five years are sure to bring developments that are just astonishing, and we will continue to try to find the balance between connectivity and security. Here are five major technological developments from the last five years and some predict…
Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

730 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