clamav を0.96にバージョンアップ(アップデート) Linux ソースから


clamav を0.96にバージョンアップ(アップデート) Linux ソースから

f:id:taramonera:20100901101851p:image

新しいバージョンをダウンロード

#cd /usr/local/src

#wget http://downloads.sourceforge.net/project/clamav/clamav/0.96/clamav-0.96.tar.gz

#tar xvfz clamav-0.96.tar.gz

#cd clamav-0.96

前のバージョンをコンパイルしたときのコンフィグを確認

#less ../clamav-0.xx/config.log

とくにオプションなど無かったので、そのまま

#./configure

#make

#make install

新しいバージョンの設定ファイルに置き換える

#cd /usr/local/etc

#mv clamd.conf clamd.conf.old

#mv freshclam.conf freshclam.conf.old

#cp /usr/local/src/clamav-0.96/etc/clamd.conf .

#cp /usr/local/src/clamav-0.96/etc/freshclam.conf .

#vi clamd.conf

設定を適宜変更

Example
↓変更
#Example
#LocalSocket /tmp/clamd.socket
↓変更
LocalSocket /tmp/clamd.socket
#MaxThreads 20
↓変更
MaxThreads 20
#追記
User qscand

#vi freshclam.conf

Example
↓変更
#Example
#LogSyslog yes
↓変更
LogSyslog yes
#DNSDatabaseInfo current.cvd.clamav.net
↓変更
DNSDatabaseInfo current.cvd.clamav.net
#DatabaseMirror db.XY.clamav.net
↓変更
DatabaseMirror db.jp.clamav.net

#/etc/init.d/clamd start

としたら下記のエラー

Starting clamd: LibClamAV Warning: **************************************************
LibClamAV Warning: ***  The virus database is older than 7 days!  ***
LibClamAV Warning: ***   Please update it as soon as possible.    ***
LibClamAV Warning: **************************************************
LibClamAV Error: cli_cvdload: Corrupted CVD header
LibClamAV Error: Can't load /usr/local/share/clamav/daily.cvd: Malformed database
ERROR: Malformed database
[FAILED]

データ更新が必要だった。

#freshclam

#/etc/init.d/clamd start

無事起動

  • このエントリーをはてなブックマークに追加

コメントをどうぞ

メールアドレスが公開されることはありません。