designevo

Logo通過DesignEvo設計製作

2009年1月2日 星期五

webablize 2.01 upgrade 2.20-03

1. decompress package
#cd /Downloads
#tar zxvf webalizer-2.20-03-linuxelf-x86-bin.tgz
# cd /usr/bin
backup old webalize
# mv webalizer webalizer-2.01
copy new version
# cp /Downloads/webalize /usr/bin
test new version
#./webalize -v

if got error like

problem #1
#./webalizer -v
./webalizer: error while loading shared libraries: libbz2.so.1.0: cannot open shared object file: No such file or directory

try this
#locate libbz2
u may be found libbz2.s0.1 in /usr/lib

now create missing file
#cp /usr/lib/libbz2.so.1 /usr/lib/libbz2.so.1.0

problem #2
# ./webalizer -v
./webalizer: error while loading shared libraries: libdb-4.4.so: cannot open shared object file: No such file or directory

try this
#locate libdb-4
u may be found libdb-4.3.so in usr/lib, but no libdb-4.4.so
if we can't found real libdb-4.4.so now try to make one from libdb-4.3.so
# cp -s /lib/libd-4.3.so /lib/db-4.4.so

now fixed our missing file. lets try

# ./webalizer -v
we got result like below
===============================================================
./webalizer: /lib/libdb-4.4.so: no version information available (required by ./webalizer)
Webalizer V2.20-03 (Linux 2.6.18-92.1.17.el5 i686) English
Using logfile /var/log/httpd/access_log (clf)
DNS Lookup (10): Error: Unable to open DNS cache file /var/lib/webalizer/dns_cache.db
Creating output in /var/www/usageHostname for reports is '127.0.0.1'
Reading history file... /var/lib/webalizer/webalizer.hist
Reading previous run data.. /var/lib/webalizer/webalizer.current
Saving current run data... [01/02/2009 16:10:33]
Generating report for January 2009
Saving history information...
Generating summary report
115685 records (88243 ignored) in 4 seconds, 28921/sec
#
===============================================================

note:
libbz2.s0.1.0 is package bzip2 component
libdb4.4.so is package BerkeleyDB component

沒有留言:

資料無價

做資訊的都知道 資料備份 很重要,但當資料因不可抗力或人為失誤弄掉了!  到底會想要花多少錢來救資料? 答案常常是越少越好~  最好是 免費 .... 那誰會要去救 .... 買備份設備就跟買保險一樣,有備無患,但重要的是有沒有買對設備,有備份也要有還原測試驗証,而且最好要一段時...