Solved

error while compile and install snort in rhel5

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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Big data transfers via information superhighways require special attention and protection. Learn more about the IT-regulations of the country where your server is located. Analyze cloud providers and their encryption systems for safe data transit. S…
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…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

747 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now