Gagan, Did you try Daniel's suggestion (see below)?
/Tomas Daniel Cid wrote: > Hi Gagan, > > You don't have MySQL in your library path. Try updating /etc/ld.so.conf with > it. > > $ man lfconfig (should give you all th necessary info) > > maybe: > # echo /usr/local/mysql/lib/mysql >> /etc/ld.so.conf > # ldconfig > > Hope it helps... > > > Thanks, > > -- > Daniel B. Cid > dcid ( at ) ossec.net > > On Wed, Feb 27, 2008 at 3:20 AM, <[EMAIL PROTECTED]> wrote: > >> Dear Daniel/Thomas >> >> Thanks for your support & reply. I had implemented your suggestion but >> the things are not working correctly for me :-( >> >> I had added the /mysql/bin in the PATH variables & used the version as >> specified by Daniel. But it didn't worked. >> >> I am reiterating the steps pls do correct me if i am wrong. >> >> 1) Compiled the setdb; using make setdb >> 2) Installed the ossec server. >> 3) When I checked for DB in mysql it doesn't had ossec_db as the >> database( does the complile instruction make the DB or one has to make >> accordingly) >> 4) Made the database with the name ossec_db as it has not been created >> & the tables as specified in the schema. >> 5) Edited the ossec.conf & entered the parameters as specified in the >> website.( I had manually checked for logging of mysql with the host & >> username/password) >> 6) Enabled the database /var/ossec/bin/ossec-control enable database >> 7) When i restarted the ossec services via /var/ossec/bin/ossec- >> control restart It generated the error. >> >> /var/ossec/bin/ossec-dbd: error while loading shared libraries: >> libmysqlclient.so.15: cannot open shared object file: No such file or >> directory >> >> Where I am going wrong ? The PATH variable have /mysql/bin path >> included. >> >> The entire steps I followed are also attached with the mail >> >> [EMAIL PROTECTED] ossec-hids-080123]# cd src/ >> >> [EMAIL PROTECTED] src]# make setdb; >> >> >> Error: PostgreSQL client libraries not installed. >> >> Info: Compiled with MySQL support. >> [EMAIL PROTECTED] src]# cd .. >> [EMAIL PROTECTED] ossec-hids-080123]# ./install.sh >> >> ** Para instalação em português, escolha [br]. >> ** 要使用中文进行安装, 请选择 [cn]. >> ** Fur eine deutsche Installation wohlen Sie [de]. >> ** For installation in English, choose [en]. >> ** Para instalar en Español , eliga [es]. >> ** Pour une installation en français, choisissez [fr] >> ** Per l'installazione in Italiano, scegli [it]. >> ** 日本語でインストールします.選択して下さい.[jp]. >> ** Aby instalować w języku Polskim, wybierz [pl]. >> ** Для инструкций по установке на русском ,введите [ru]. >> ** Za instalaciju na srpskom, izaberi [sr]. >> ** Türkçe kurulum için seçin [tr]. >> (en/br/cn/de/es/fr/it/jp/pl/ru/sr/tr) [en]: >> >> >> OSSEC HIDS 1.4-SNP-080123 Installation Script - http://www.ossec.net >> >> You are about to start the installation process of the OSSEC HIDS. >> You must have a C compiler pre-installed in your system. >> If you have any questions or comments, please send an e-mail >> to [EMAIL PROTECTED] (or [EMAIL PROTECTED]). >> >> - System: Linux localhost.localdomain 2.6.18-1.2798.fc6 >> - User: root >> - Host: localhost.localdomain >> >> >> -- Press ENTER to continue or Ctrl-C to abort. -- >> >> >> - You already have OSSEC installed. Do you want to update it? (y/n): >> n >> >> >> 1- What kind of installation do you want (server, agent, local or >> help)? server >> >> - Server installation chosen. >> >> 2- Setting up the installation environment. >> >> - Choose where to install the OSSEC HIDS [/var/ossec]: >> >> - Installation will be made at /var/ossec . >> >> - The installation directory already exists. Should I delete it? >> (y/n) [y]: y >> >> 3- Configuring the OSSEC HIDS. >> >> 3.1- Do you want e-mail notification? (y/n) [y]: n >> >> --- Email notification disabled. >> >> 3.2- Do you want to run the integrity check daemon? (y/n) [y]: y >> >> - Running syscheck (integrity check daemon). >> >> 3.3- Do you want to run the rootkit detection engine? (y/n) [y]: y >> >> - Running rootcheck (rootkit detection). >> >> 3.4- Active response allows you to execute a specific >> command based on the events received. For example, >> you can block an IP address or disable access for >> a specific user. >> More information at: >> http://www.ossec.net/en/manual.html#active-response >> >> - Do you want to enable active response? (y/n) [y]: y >> >> - Active response enabled. >> >> - By default, we can enable the host-deny and the >> firewall-drop responses. The first one will add >> a host to the /etc/hosts.deny and the second one >> will block the host on iptables (if linux) or on >> ipfilter (if Solaris, FreeBSD or NetBSD). >> - They can be used to stop SSHD brute force scans, >> portscans and some other forms of attacks. You can >> also add them to block on snort events, for example. >> >> - Do you want to enable the firewall-drop response? (y/n) [y]: y >> >> - firewall-drop enabled (local) for levels >= 6 >> >> - Default white list for the active response: >> - x.x.x.x >> - x.x.x.x >> >> - Do you want to add more IPs to the white list? (y/n)? [n]: n >> >> 3.5- Do you want to enable remote syslog (port 514 udp)? (y/n) [y]: >> y >> >> - Remote syslog enabled. >> >> 3.6- Setting the configuration to analyze the following logs: >> -- /var/log/messages >> -- /var/log/secure >> -- /var/log/maillog >> -- /var/log/httpd/error_log (apache log) >> -- /var/log/httpd/access_log (apache log) >> -- /etc/httpd/logs/access_log (apache log) >> -- /etc/httpd/logs/error_log (apache log) >> >> - If you want to monitor any other file, just change >> the ossec.conf and add a new localfile entry. >> Any questions about the configuration can be answered >> by visiting us online at http://www.ossec.net . >> >> >> --- Press ENTER to continue --- >> >> >> >> 5- Installing the system >> - Running the Makefile >> >> *** Making zlib (by Jean-loup Gailly and Mark Adler) *** >> make[1]: Entering directory `/root/Desktop/NewRel/ossec-hids-080123/ >> src/external/zlib-1.2.3' >> gcc -c -g -Wall -I../../ -I../../headers -DDEFAULTDIR=\"/var/ossec >> \" -DARGV0=\"zlib\" -DXML_VAR=\"var\" -DOSSECHIDS *.c >> ar cru libz.a *.o >> ranlib libz.a >> make[1]: Leaving directory `/root/Desktop/NewRel/ossec-hids-080123/src/ >> external/zlib-1.2.3' >> make[1]: Entering directory `/root/Desktop/NewRel/ossec-hids-080123/ >> src/external/zlib-1.2.3' >> cp -pr zlib.h zconf.h ../../headers/ >> cp -pr libz.a ../ >> make[1]: Leaving directory `/root/Desktop/NewRel/ossec-hids-080123/src/ >> external/zlib-1.2.3' >> >> >> >> *** Making os_xml *** >> >> make[1]: Entering directory `/root/Desktop/NewRel/ossec-hids-080123/ >> src/os_xml' >> gcc -DXML_VAR=\"var\" -g -Wall -I../ -I../headers -DDEFAULTDIR=\"/var/ >> ossec\" -DARGV0=\"os_xml\" -DXML_VAR=\"var\" -DOSSECHIDS -c >> os_xml.c os_xml_access.c os_xml_node_access.c os_xml_variables.c >> os_xml_writer.c >> ar cru os_xml.a os_xml.o os_xml_access.o os_xml_node_access.o >> os_xml_variables.o os_xml_writer.o >> ranlib os_xml.a >> make[1]: Leaving directory `/root/Desktop/NewRel/ossec-hids-080123/src/ >> os_xml' >> >> >> *** Making os_regex *** >> >> make[1]: Entering directory `/root/Desktop/NewRel/ossec-hids-080123/ >> src/os_regex' >> gcc -g -Wall -I../ -I../headers -DDEFAULTDIR=\"/var/ossec\" - >> DARGV0=\"os_regex\" -DXML_VAR=\"var\" -DOSSECHIDS -c *.c -Wall >> ar cru os_regex.a *.o >> ranlib os_regex.a >> make[1]: Leaving directory `/root/Desktop/NewRel/ossec-hids-080123/src/ >> os_regex' >> >> >> *** Making os_net *** >> >> make[1]: Entering directory `/root/Desktop/NewRel/ossec-hids-080123/ >> src/os_net' >> gcc -g -Wall -I../ -I../headers -DDEFAULTDIR=\"/var/ossec\" - >> DARGV0=\"os_net\" -DXML_VAR=\"var\" -DOSSECHIDS -c os_net.c >> ar cru os_net.a os_net.o >> ranlib os_net.a >> make[1]: Leaving directory `/root/Desktop/NewRel/ossec-hids-080123/src/ >> os_net' >> >> >> *** Making os_crypto *** >> >> make[1]: Entering directory `/root/Desktop/NewRel/ossec-hids-080123/ >> src/os_crypto' >> make[2]: Entering directory `/root/Desktop/NewRel/ossec-hids-080123/ >> src/os_crypto/blowfish' >> gcc -g -Wall -I../../ -I../../headers -DDEFAULTDIR=\"/var/ossec\" >> -DARGV0=\"blowfish_op\" -DXML_VAR=\"var\" -DOSSECHIDS -c bf_op.c >> bf_skey.c bf_enc.c >> ar cru bf_op.a bf_op.o bf_skey.o bf_enc.o >> ranlib bf_op.a >> make[2]: Leaving directory `/root/Desktop/NewRel/ossec-hids-080123/src/ >> os_crypto/blowfish' >> make[2]: Entering directory `/root/Desktop/NewRel/ossec-hids-080123/ >> src/os_crypto/md5' >> gcc -g -Wall -I../../ -I../../headers -DDEFAULTDIR=\"/var/ossec\" >> -DARGV0=\"md5_op\" -DXML_VAR=\"var\" -DOSSECHIDS -c md5.c md5_op.c >> ar cru md5_op.a md5_op.o md5.o >> ranlib md5_op.a >> make[2]: Leaving directory `/root/Desktop/NewRel/ossec-hids-080123/src/ >> os_crypto/md5' >> make[2]: Entering directory `/root/Desktop/NewRel/ossec-hids-080123/ >> src/os_crypto/sha1' >> gcc -g -Wall -I../../ -I../../headers -DDEFAULTDIR=\"/var/ossec\" >> -DARGV0=\"sha1_op\" -DXML_VAR=\"var\" -DOSSECHIDS -c sha1_op.c >> ar cru sha1_op.a sha1_op.o >> ranlib sha1_op.a >> make[2]: Leaving directory `/root/Desktop/NewRel/ossec-hids-080123/src/ >> os_crypto/sha1' >> make[2]: Entering directory `/root/Desktop/NewRel/ossec-hids-080123/ >> src/os_crypto/md5_sha1' >> gcc -g -Wall -I../../ -I../../headers -DDEFAULTDIR=\"/var/ossec\" >> -DARGV0=\"md5_sha1_op\" -DXML_VAR=\"var\" -DOSSECHIDS -c ../md5/md5.c >> md5_sha1_op.c >> ar cru md5_op.a md5_sha1_op.o ../md5/md5.o >> ranlib md5_op.a >> make[2]: Leaving directory `/root/Desktop/NewRel/ossec-hids-080123/src/ >> os_crypto/md5_sha1' >> make[2]: Entering directory `/root/Desktop/NewRel/ossec-hids-080123/ >> src/os_crypto/shared' >> gcc -g -Wall -I../../ -I../../headers -DDEFAULTDIR=\"/var/ossec\" >> -DARGV0=\"shared\" -DXML_VAR=\"var\" -DOSSECHIDS -c *.c >> ar cru shared.a *.o >> ranlib shared.a >> make[2]: Leaving directory `/root/Desktop/NewRel/ossec-hids-080123/src/ >> os_crypto/shared' >> ar cru os_crypto.a blowfish/bf_op.o blowfish/bf_skey.o blowfish/ >> bf_enc.o md5/md5_op.o md5/md5.o sha1/sha1_op.o md5_sha1/md5_sha1_op.o >> shared/*.o >> ranlib os_crypto.a >> make[1]: Leaving directory `/root/Desktop/NewRel/ossec-hids-080123/src/ >> os_crypto' >> >> >> *** Making shared *** >> >> make[1]: Entering directory `/root/Desktop/NewRel/ossec-hids-080123/ >> src/shared' >> gcc -c -g -Wall -I../ -I../headers -DDEFAULTDIR=\"/var/ossec\" - >> DARGV0=\"shared-libs\" -DXML_VAR=\"var\" -DOSSECHIDS *.c >> ar cru lib_shared.a *.o >> ranlib lib_shared.a >> make[1]: Leaving directory `/root/Desktop/NewRel/ossec-hids-080123/src/ >> shared' >> >> >> *** Making config *** >> >> make[1]: Entering directory `/root/Desktop/NewRel/ossec-hids-080123/ >> src/config' >> gcc -c -g -Wall -I../ -I../headers -DDEFAULTDIR=\"/var/ossec\" - >> DARGV0=\"ossec-config\" -DXML_VAR=\"var\" -DOSSECHIDS *.c >> ar cru lib_config.a *.o >> ranlib lib_config.a >> make[1]: Leaving directory `/root/Desktop/NewRel/ossec-hids-080123/src/ >> config' >> >> >> *** Making os_maild *** >> >> make[1]: Entering directory `/root/Desktop/NewRel/ossec-hids-080123/ >> src/os_maild' >> gcc -g -Wall -I../ -I../headers -DDEFAULTDIR=\"/var/ossec\" - >> DARGV0=\"ossec-maild\" -DXML_VAR=\"var\" -DOSSECHIDS maild.c config.c >> os_maild_client.c sendmail.c mail_list.c ../config/*.c ../shared/ >> lib_shared.a ../os_net/os_net.a ../os_regex/os_regex.a ../os_xml/ >> os_xml.a -o ossec-maild >> make[1]: Leaving directory `/root/Desktop/NewRel/ossec-hids-080123/src/ >> os_maild' >> >> >> *** Making os_dbd *** >> >> make[1]: Entering directory `/root/Desktop/NewRel/ossec-hids-080123/ >> src/os_dbd' >> Compiling DB support with: >> gcc -g -Wall -I../ -I../headers -DDEFAULTDIR=\"/var/ossec\" - >> DARGV0=\"ossec-dbd\" -DXML_VAR=\"var\" -DOSSECHIDS -I/usr/local/mysql/ >> include -mcpu=pentiumpro -L/usr/local/lib -L/usr/local/mysql/lib - >> lmysqlclient -lz -lcrypt -lnsl -lm -lc -lnss_files -lnss_dns -lresolv - >> lc -lnss_files -lnss_dns -lresolv -DDBD -DUMYSQL *.c ../config/*.c ../ >> shared/lib_shared.a ../os_net/os_net.a ../os_regex/os_regex.a ../ >> os_xml/os_xml.a -o ossec-dbd >> `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead. >> make[1]: Leaving directory `/root/Desktop/NewRel/ossec-hids-080123/src/ >> os_dbd' >> >> >> *** Making os_execd *** >> >> make[1]: Entering directory `/root/Desktop/NewRel/ossec-hids-080123/ >> src/os_execd' >> gcc -g -Wall -I../ -I../headers -DDEFAULTDIR=\"/var/ossec\" - >> DARGV0=\"ossec-execd\" -DXML_VAR=\"var\" -DOSSECHIDS execd.c exec.c >> config.c ../shared/lib_shared.a ../os_net/os_net.a ../os_regex/ >> os_regex.a ../os_xml/os_xml.a -o ossec-execd >> gcc -g -Wall -I../ -I../headers -DDEFAULTDIR=\"/var/ossec\" - >> DARGV0=\"ossec-execd\" -DXML_VAR=\"var\" -DOSSECHIDS -c execd.c exec.c >> config.c >> make[1]: Leaving directory `/root/Desktop/NewRel/ossec-hids-080123/src/ >> os_execd' >> >> >> *** Making analysisd *** >> >> make[1]: Entering directory `/root/Desktop/NewRel/ossec-hids-080123/ >> src/analysisd' >> cd ./alerts; make >> make[2]: Entering directory `/root/Desktop/NewRel/ossec-hids-080123/ >> src/analysisd/alerts' >> gcc -I../ -g -Wall -I../../ -I../../headers -DDEFAULTDIR=\"/var/ossec >> \" -DARGV0=\"alerts\" -DXML_VAR=\"var\" -DOSSECHIDS -c mail.c >> log.c exec.c getloglocation.c >> ar cru alerts.a mail.o log.o exec.o getloglocation.o >> ranlib alerts.a >> make[2]: Leaving directory `/root/Desktop/NewRel/ossec-hids-080123/src/ >> analysisd/alerts' >> cd ./decoders; make >> make[2]: Entering directory `/root/Desktop/NewRel/ossec-hids-080123/ >> src/analysisd/decoders' >> cd plugins; make; >> make[3]: Entering directory `/root/Desktop/NewRel/ossec-hids-080123/ >> src/analysisd/decoders/plugins' >> gcc -g -Wall -I../../../ -I../../../headers -DDEFAULTDIR=\"/var/ossec >> \" -DARGV0=\"ossec-analysisd\" -DXML_VAR=\"var\" -DOSSECHIDS - >> I../../ -c *.c >> make[3]: Leaving directory `/root/Desktop/NewRel/ossec-hids-080123/src/ >> analysisd/decoders/plugins' >> gcc -g -Wall -I../../ -I../../headers -DDEFAULTDIR=\"/var/ossec\" >> -DARGV0=\"ossec-analysisd\" -DXML_VAR=\"var\" -DOSSECHIDS -I../ -c *.c >> ar cru decoders.a *.o plugins/*.o >> ranlib decoders.a >> make[2]: Leaving directory `/root/Desktop/NewRel/ossec-hids-080123/src/ >> analysisd/decoders' >> gcc -g -Wall -I../ -I../headers -DDEFAULTDIR=\"/var/ossec\" - >> DARGV0=\"ossec-analysisd\" -DXML_VAR=\"var\" -DOSSECHIDS -I./ >> analysisd.c stats.c rules.c rules_list.c config.c fts.c eventinfo.c >> eventinfo_list.c cleanevent.c active-response.c prelude.c ../config/ >> *.c decoders/decoders.a alerts/alerts.a ../os_xml/os_xml.a ../os_regex/ >> os_regex.a ../os_net/os_net.a ../shared/lib_shared.a ../os_zlib/ >> os_zlib.c ../external/libz.a -o ossec-analysisd >> make[1]: Leaving directory `/root/Desktop/NewRel/ossec-hids-080123/src/ >> analysisd' >> >> >> *** Making logcollector *** >> >> make[1]: Entering directory `/root/Desktop/NewRel/ossec-hids-080123/ >> src/logcollector' >> gcc -g -Wall -I../ -I../headers -DDEFAULTDIR=\"/var/ossec\" - >> DARGV0=\"ossec-logcollector\" -DXML_VAR=\"var\" -DOSSECHIDS -DARGV0= >> \"ossec-logcollector\" *.c ../config/*.c ../shared/lib_shared.a ../ >> os_xml/os_xml.a ../os_regex/os_regex.a ../os_net/os_net.a ../os_crypto/ >> os_crypto.a -o ossec-logcollector >> make[1]: Leaving directory `/root/Desktop/NewRel/ossec-hids-080123/src/ >> logcollector' >> >> >> *** Making remoted *** >> >> make[1]: Entering directory `/root/Desktop/NewRel/ossec-hids-080123/ >> src/remoted' >> gcc -g -Wall -I../ -I../headers -DDEFAULTDIR=\"/var/ossec\" - >> DARGV0=\"ossec-remoted\" -DXML_VAR=\"var\" -DOSSECHIDS *.c ../config/ >> *.c ../os_zlib/os_zlib.c ../external/libz.a ../os_crypto/ >> os_crypto.a ../shared/lib_shared.a ../os_net/os_net.a ../os_xml/ >> os_xml.a ../os_regex/os_regex.a -lpthread -o ossec-remoted >> make[1]: Leaving directory `/root/Desktop/NewRel/ossec-hids-080123/src/ >> remoted' >> >> >> *** Making client-agent *** >> >> make[1]: Entering directory `/root/Desktop/NewRel/ossec-hids-080123/ >> src/client-agent' >> gcc -g -Wall -I../ -I../headers -DDEFAULTDIR=\"/var/ossec\" - >> DARGV0=\"ossec-agentd\" -DXML_VAR=\"var\" -DOSSECHIDS *.c ../config/ >> *.c ../os_zlib/os_zlib.c ../external/libz.a ../os_crypto/ >> os_crypto.a ../shared/lib_shared.a ../os_xml/os_xml.a ../os_regex/ >> os_regex.a ../os_net/os_net.a -lpthread -DCLIENT -o ossec-agentd >> make[1]: Leaving directory `/root/Desktop/NewRel/ossec-hids-080123/src/ >> client-agent' >> >> >> *** Making addagent *** >> >> make[1]: Entering directory `/root/Desktop/NewRel/ossec-hids-080123/ >> src/addagent' >> gcc -g -Wall -I../ -I../headers -DDEFAULTDIR=\"/var/ossec\" - >> DARGV0=\"manage_agents\" -DXML_VAR=\"var\" -DOSSECHIDS *.c ../shared/ >> lib_shared.a ../os_regex/os_regex.a ../os_zlib/os_zlib.c ../external/ >> libz.a ../os_crypto/os_crypto.a -o manage_agents >> make[1]: Leaving directory `/root/Desktop/NewRel/ossec-hids-080123/src/ >> addagent' >> >> >> *** Making util *** >> >> make[1]: Entering directory `/root/Desktop/NewRel/ossec-hids-080123/ >> src/util' >> gcc -g -Wall -I../ -I../headers -DDEFAULTDIR=\"/var/ossec\" - >> DARGV0=\"util\" -DXML_VAR=\"var\" -DOSSECHIDS ../addagent/ >> manage_agents.c ../addagent/manage_keys.c ../addagent/validate.c ../ >> addagent/read_from_user.c ../addagent/b64.c syscheck_update.c ../ >> os_zlib/os_zlib.c ../external/libz.a ../os_crypto/os_crypto.a ../ >> shared/lib_shared.a ../os_regex/os_regex.a -o syscheck_update >> gcc -g -Wall -I../ -I../headers -DDEFAULTDIR=\"/var/ossec\" - >> DARGV0=\"util\" -DXML_VAR=\"var\" -DOSSECHIDS clear_stats.c ../os_zlib/ >> os_zlib.c ../external/libz.a ../os_crypto/os_crypto.a ../shared/ >> lib_shared.a ../os_regex/os_regex.a -o clear_stats >> gcc -g -Wall -I../ -I../headers -DDEFAULTDIR=\"/var/ossec\" - >> DARGV0=\"util\" -DXML_VAR=\"var\" -DOSSECHIDS list_agents.c ../os_zlib/ >> os_zlib.c ../external/libz.a ../os_crypto/os_crypto.a ../shared/ >> lib_shared.a ../os_regex/os_regex.a -o list_agents >> make[1]: Leaving directory `/root/Desktop/NewRel/ossec-hids-080123/src/ >> util' >> >> >> *** Making rootcheck *** >> >> make[1]: Entering directory `/root/Desktop/NewRel/ossec-hids-080123/ >> src/rootcheck' >> gcc -g -Wall -I../ -I../headers -DDEFAULTDIR=\"/var/ossec\" - >> DARGV0=\"ossec-rootcheck\" -DXML_VAR=\"var\" -DOSSECHIDS -c >> check_open_ports.c check_rc_pids.c check_rc_trojans.c run_rk_check.c >> check_rc_dev.c check_rc_ports.c check_rc_policy.c common.c >> common_rcl.c win-common.c unix-process.c check_rc_files.c >> check_rc_readproc.c os_string.c check_rc_if.c check_rc_sys.c >> rootcheck.c config.c -D_GNU_SOURCE >> ar cru rootcheck_lib.a *.o >> ranlib rootcheck_lib.a >> make[1]: Leaving directory `/root/Desktop/NewRel/ossec-hids-080123/src/ >> rootcheck' >> >> >> *** Making syscheckd *** >> >> make[1]: Entering directory `/root/Desktop/NewRel/ossec-hids-080123/ >> src/syscheckd' >> gcc -g -Wall -I../ -I../headers -DDEFAULTDIR=\"/var/ossec\" - >> DARGV0=\"ossec-syscheckd\" -DXML_VAR=\"var\" -DOSSECHIDS syscheck.c >> config.c create_db.c run_check.c ../config/*.c ../rootcheck/ >> rootcheck_lib.a ../shared/lib_shared.a ../os_xml/os_xml.a ../os_regex/ >> os_regex.a ../os_net/os_net.a ../os_crypto/os_crypto.a -o ossec- >> syscheckd >> make[1]: Leaving directory `/root/Desktop/NewRel/ossec-hids-080123/src/ >> syscheckd' >> >> >> *** Making monitord *** >> >> make[1]: Entering directory `/root/Desktop/NewRel/ossec-hids-080123/ >> src/monitord' >> gcc -g -Wall -I../ -I../headers -DDEFAULTDIR=\"/var/ossec\" - >> DARGV0=\"ossec-monitord\" -DXML_VAR=\"var\" -DOSSECHIDS *.c ../shared/ >> lib_shared.a ../os_net/os_net.a ../os_regex/os_regex.a ../os_crypto/ >> os_crypto.a ../os_zlib/os_zlib.c ../external/libz.a -o ossec-monitord >> make[1]: Leaving directory `/root/Desktop/NewRel/ossec-hids-080123/src/ >> monitord' >> make[1]: Entering directory `/root/Desktop/NewRel/ossec-hids-080123/ >> src/os_maild' >> cp -pr ossec-maild ../../bin >> make[1]: Leaving directory `/root/Desktop/NewRel/ossec-hids-080123/src/ >> os_maild' >> make[1]: Entering directory `/root/Desktop/NewRel/ossec-hids-080123/ >> src/os_dbd' >> cp -pr ossec-dbd ../../bin >> make[1]: Leaving directory `/root/Desktop/NewRel/ossec-hids-080123/src/ >> os_dbd' >> make[1]: Entering directory `/root/Desktop/NewRel/ossec-hids-080123/ >> src/os_execd' >> cp -pr ossec-execd ../../bin >> make[1]: Leaving directory `/root/Desktop/NewRel/ossec-hids-080123/src/ >> os_execd' >> make[1]: Entering directory `/root/Desktop/NewRel/ossec-hids-080123/ >> src/analysisd' >> cp -pr ossec-analysisd ../../bin >> make[1]: Leaving directory `/root/Desktop/NewRel/ossec-hids-080123/src/ >> analysisd' >> make[1]: Entering directory `/root/Desktop/NewRel/ossec-hids-080123/ >> src/logcollector' >> cp -pr ossec-logcollector ../../bin >> make[1]: Leaving directory `/root/Desktop/NewRel/ossec-hids-080123/src/ >> logcollector' >> make[1]: Entering directory `/root/Desktop/NewRel/ossec-hids-080123/ >> src/remoted' >> cp -pr ossec-remoted ../../bin >> make[1]: Leaving directory `/root/Desktop/NewRel/ossec-hids-080123/src/ >> remoted' >> make[1]: Entering directory `/root/Desktop/NewRel/ossec-hids-080123/ >> src/client-agent' >> cp -pr ossec-agentd ../../bin >> make[1]: Leaving directory `/root/Desktop/NewRel/ossec-hids-080123/src/ >> client-agent' >> make[1]: Entering directory `/root/Desktop/NewRel/ossec-hids-080123/ >> src/addagent' >> cp -pr manage_agents ../../bin >> cp -pr manage_agents ../../bin >> make[1]: Leaving directory `/root/Desktop/NewRel/ossec-hids-080123/src/ >> addagent' >> make[1]: Entering directory `/root/Desktop/NewRel/ossec-hids-080123/ >> src/util' >> cp -pr syscheck_update clear_stats list_agents ../../bin >> make[1]: Leaving directory `/root/Desktop/NewRel/ossec-hids-080123/src/ >> util' >> make[1]: Entering directory `/root/Desktop/NewRel/ossec-hids-080123/ >> src/rootcheck' >> make[1]: Nothing to be done for `build'. >> make[1]: Leaving directory `/root/Desktop/NewRel/ossec-hids-080123/src/ >> rootcheck' >> make[1]: Entering directory `/root/Desktop/NewRel/ossec-hids-080123/ >> src/syscheckd' >> cp -pr ossec-syscheckd ../../bin >> make[1]: Leaving directory `/root/Desktop/NewRel/ossec-hids-080123/src/ >> syscheckd' >> make[1]: Entering directory `/root/Desktop/NewRel/ossec-hids-080123/ >> src/monitord' >> cp -pr ossec-monitord ../../bin >> make[1]: Leaving directory `/root/Desktop/NewRel/ossec-hids-080123/src/ >> monitord' >> >> >> - System is Redhat Linux. >> - Init script modified to start OSSEC HIDS during boot. >> >> - Configuration finished properly. >> >> - To start OSSEC HIDS: >> /var/ossec/bin/ossec-control start >> >> - To stop OSSEC HIDS: >> /var/ossec/bin/ossec-control stop >> >> - The configuration can be viewed or modified at /var/ossec/etc/ >> ossec.conf >> >> >> Thanks for using the OSSEC HIDS. >> If you have any question, suggestion or if you find any bug, >> contact us at [EMAIL PROTECTED] or using our public maillist at >> [EMAIL PROTECTED] >> ( http://www.ossec.net/main/support/ ). >> >> More information can be found at http://www.ossec.net >> >> --- Press ENTER to finish (maybe more information below). --- >> >> >> >> - In order to connect agent and server, you need to add each agent to >> the server. >> Run the 'manage_agents' to add or remove them: >> >> /var/ossec/bin/manage_agents >> >> More information at: >> http://www.ossec.net/en/manual.html#ma >> >> [EMAIL PROTECTED] ossec-hids-080123]# cd /v >> var/ vmstatext.out >> [EMAIL PROTECTED] ossec-hids-080123]# cd /var/ossec/ >> [EMAIL PROTECTED] ossec]# cd etc/ >> [EMAIL PROTECTED] etc]# vi ossec.conf >> [EMAIL PROTECTED] etc]# /var/ossec/bin/ossec-control enable database >> [EMAIL PROTECTED] etc]# /var/ossec/bin/ossec-control restart >> ossec-monitord not running .. >> ossec-logcollector not running .. >> ossec-remoted not running .. >> ossec-syscheckd not running .. >> ossec-analysisd not running .. >> ossec-maild not running .. >> ossec-execd not running .. >> ossec-dbd not running .. >> OSSEC HIDS v1.4 Stopped >> Starting OSSEC HIDS v1.4 (by Daniel B. Cid)... >> /var/ossec/bin/ossec-dbd: error while loading shared libraries: >> libmysqlclient.so.15: cannot open shared object file: No such file or >> directory >> ossec-dbd: Configuration error. Exiting >> [EMAIL PROTECTED] etc]# echo $PATH >> /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/ >> sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin:/usr/local/mysql/ >> bin/ >> >> >> >> Thanks & Regards >> Gagan >> >> >> On Feb 26, 4:50 am, "Daniel Cid" <[EMAIL PROTECTED]> wrote: >> > You may also try the following version that has some fixes for MySQL: >> > >> > http://www.ossec.net/dcid/?p=122 >> > >> > Thanks, >> > >> > -- >> > Daniel B. Cid >> > dcid ( at ) ossec.net >> > >> > >> > >> >> >>> On Fri, Feb 22, 2008 at 9:32 AM, Tomas Olsson <[EMAIL PROTECTED]> wrote: >>> >> > >> > > Do you have the mysql bin directory in the PATH variable? Otherwise you >> > > will get this error. >> > > /Tomas >> > >> >> >>>> [EMAIL PROTECTED] wrote: >>>> >> > > > Dear Mailing list >> > >> > > > I am trying to install the Ossec server on fedora core 6 box with >> > > > Mysql as DB support. >> > >> > > > The box already has MYSQL installed on it. >> > >> > > > While following the steps as specified in Ossec's website it gives an >> > > > error while executing make setdb . The snapshot is as pasted below >> > >> > > > [EMAIL PROTECTED] src]# make setdb; >> > >> > > > Error: MySQL client libraries not installed. >> > >> > > > Error: PostgreSQL client libraries not installed. >> > >> > > > Error: DB libraries not installed. >> > >> > > > It is giving the above specified error. While I am checking the mysql >> > > > it doesn't contains ossec_db as the database. >> > > > Prior to this I had installed the ossec without db support & it is >> > > > running fine (for more than 40 servers & consoles of windows, linux & >> > > > aix) >> > >> > > > Has anyone received similar errors or where i am going wrong can >> > > > anyone helpout. >> > >> > > > Thanks & regards >> > > > Gagan- Hide quoted text - >> > >> > - Show quoted text - >> >>
