prelude-ids入れてみる その1

prelude-idsなるものがあるらしいので、
自宅Fedora FC3(古)にインストールを試みています。

prelude-idsの詳細は、http://www.prelude-ids.org/を。


■必要なパッケージを確認する
 公式サイトを引用すると
 ------------------------------------------------
 ・Requirements
 
 Installation Requirements
 GnuTLS
 Python
 PCRE
 MySQL
 PostgreSQL
 ------------------------------------------------
実際に入ってるのは。
・GnuTLS
 # rpm -qa |grep gnutls
 gnutls-devel-1.0.20-3.1.1
 gnutls-1.0.20-3.1.1
・Python
 # rpm -qa |grep python
 python-ldap-2.0.1-2
 python-2.3.4-13.1
 python-devel-2.3.4-13.1
・PCRE
 # rpm -qa |grep pcre
 pcre-devel-4.5-3.1.1.fc3
 pcre-4.5-3.1.1.fc3
 他にMySQLなどなど。
■Cheetahを入れる
(prelude-idsインストール方法を書いているサイトの受け売りで)
 # cd /tmp
 # wget http://jaist.dl.sourceforge.net/sourceforge/cheetahtempl
 ate/Cheetah- 1.0.tar.gz 
 # tar xvzf Cheetah-1.0.tar.gz
 # cd Cheetah-1.0
 # python ./setup.py install
 running install
 running build 
 running build_py
 creating build
 creating build/lib.linux-i686-2.3
 creating build/lib.linux-i686-2.3/Cheetah
 :
 :
■共有ライブラリを指定する
 # echo /usr/local/lib > /etc/ld.so.conf.d/local-i386.conf
■Prelude frameworkをインストールする
【libprelude】
 libprelude-latest.tar.gzをwget
 # tar xvzf libprelude-latest.tar.gz
 libprelude-0.9.14/
 :
 :
 # cd libprelude-0.9.14/
・configure をする。

 # ./configure
 checking build system type... i686-pc-linux-gnu
 :
 checking for libgnutls-config... /usr/bin/libgnutls-config
 checking for libgnutls - version >= 1.0.17... no
 *** Could not run libgnutls test program, checking why...
 *** The test program failed to compile or link. See the file config.log for the
 *** exact error that occured. This usually means LIBGNUTLS was incorrectly installed
 *** or that you have moved LIBGNUTLS since it was installed. In the latter case, you
 *** may want to edit the libgnutls-config script: /usr/bin/libgnutls-config
 configure: error: libgnutls is required in order to build libprelude.

 
 ん~なんかlibgnutls でエラーが。
 とりあえずconfig.logをチェック
 configure:24716: result: no
 configure:24757: gcc -std=gnu99 -o conftest -g -O2 -pthread -I
 /usr/include
  conftest.c
 -lz -L/usr/lib -lgnutls -lgcrypt -lgpg-error >&5
 /usr/bin/ld: cannot find -lgcrypt
 collect2: ld returned 1 exit status
 configure:24763: $? = 1 
 -lgcryptが見つからないって言われてる・・・
 なんだかわからないが、libgcrypt-develは入れてないので
 入れておく。
 # yum install libgcrypt-devel 
 :
 Installed: libgcrypt-devel.i386 0:1.2.0-3
 Dependency Installed: libgpg-error-devel.i386 0:1.0-1
 Complete!
 そして再チャレンジ
 # ./configure
 :
 checking for libgnutls-config... /usr/bin/libgnutls-config
 checking for libgnutls - version >= 1.0.17... yes      
 :
 *** Dumping configuration ***
- Generate documentation : no
- Libtool dynamic loader : System
- Perl binding : yes
- Python binding : yes
 やっとすすんだ~あとは淡々と
 $ make
 # make install
 # ldconfig
最後に確認
 # libprelude-config --version
 0.9.14
 つづきはまた今度~ 


コメントを残す

Your email address will not be published.