Webalizer unable to find libdb-4.4.so
Just downloaded binary version of Webalizer but for some reason it is giving me an error about libdb-4.4.so not being available.
Code:
[root@uat webalizer]# ./webalizer -c webalizer.conf I have downloaded and installed this RPM. It extracted the following files: /usr/lib/libdb-4.8.so /usr/lib/libdb_cxx-4.8.so I then ran the following: ln -s /usr/lib/libdb-4.8.so /usr/lib/libdb-4.4.so Note how silly this is? Questions I have now: 1) How can I trust that this RPM package is good? My CentOs Yum didn't find it from the standard CentOs depos. 2) It's a 4.8, not 4.4. Where can I find 4.4? 3) The version I had before installing this RPM is 4.3. My box has the following files: /usr/lib/libdb-4.3.so -> ../../lib/libdb-4.3.so /usr/lib/libdb_cxx-4.3.so Note the libdb-4.3.so is actually under /lib/libdb-4.3.so? Any idea why this is here? 4) The fact that I've installed the RPM directly rather than using Yum means my Yum isn't aware of this. How do I fix this? |
I wouldn't do such thing especially on my production servers. Now even I have faced these issues but most of the time it happened that the library file was already there in my system and I just had to add the path variable.
I have written an article on the same in case it helps. make sure you check your distro before running any commands Error while loading shared libraries Also in case it is not in your machine, there might be a possibility that this library file is loaded using some other rpm file. In Red Hat you can check using Code:
# yum whatprovides */libdb-4.4.so |
Hi thanks. Yes I know what you meant in your article about the LD_LIBRARY_PATH but don't think it's the issue here. One of the points I was trying to make was there appears to be no libdb-4.4.so available anywhere. Now if you use the following I'm unable to find anything.
Code:
yum whatprovides */libdb-4.4.so |
Quote:
it is never a good idea on the older CentOS 5 ( guessing this from first post ) to grab some random "prebuilt" program from some random site the current: "webalizer-2.23-08-src.tgz" http://www.webalizer.org/download.html |
Hi I downloaded from the same page except I downloaded the binary version under the link named as "Linux ELF - Intel x86".
|
Quote:
if it is a 64 bit OS ,that 32 bit program will need to have the 32 bit compatibility software installed on the 64 bit OS. i would build the source code that way it is built FOR YOUR system it looks like is should build with no problems Code:
su - ----- WITHOUT GeoIP support ------ Code:
cd /to/the/webalizer/src/folder using "vi" or"nano" or if a gui is being used "gedit" or "emacs" Bit i never used webalizer, i prefer " AWStats " with geoip support see: http://www.lifelinux.com/how-to-inst...zer-on-centos/ |
Quote:
|
The 32 bit compt software is the second 32 bit operating system ( well *.so's mostly "/usr/lib") that lets 32 bit programs run on a 64 bit OS
you will have to install a 32 bit libdb4.4 or build the source code the 32 bit compatibality software is like Microsofts compatibality mode on XP that let you run win95,98 16 bit code on the 32 bit XP |
Sorry you are referring to the 32-bit OS version, or a piece of software I'd install on my 64-bit OS?
|
all ( well almost all ) the 64 bit x86_64.rpm's in the 64 bit centos have i686.rpm's
the 686 rpms ARE the 32 bit versions run a yum search and have a look Code:
su - you will see i686 ( or i586 or i386) and x86_64 versions but it might just be best to build webalizer from the source code |
Strange.... I'm not able to list contents of the package.
Code:
[root@uat bin]# yum info libdb-4_8.i386 |
back to the first post
you have 4.8 installed and the prebuilt needs 4.4 a VERY old version the prebuilt was built using that old version if you build the current source for webalizer you will be using the 4.8 version you have installed |
I understand that bit. But any idea why following isn't returning anything?
Code:
repoquery -lq libdb-4_8.i386 |
because you installed a random version of "The Berkeley DB database library" from some random site
and did not use the centos repos on my install of ScientificLinuc 6.4 ( i still do not know WHAT version of centos you are using ??? ) on sl6.4 it is "db4" Code:
su - Code:
yum info db4.x86_64 |
Okay this is what happened.
1) I tried searching for the lib using the following but wasn't able to find anything. Code:
yum info libdb Code:
repoquery -lq libdb-4_8.i386 It appears we can conclude with the following? 1) I used the wrong package name. It should be db4 rather than libdb or berkeley. 2) The latest package for db4 is still only going to give libdb-4.3.so but not libdb-4.4.so required by Webalizer. I'm using CentOS release 5.5 (Final). Package installed on my system now. Code:
[root@uat ~]# yum info db4 Code:
[root@uat ~]# repoquery -lq db4.i386 | grep libdb |
All times are GMT -5. The time now is 12:43 AM. |