You are not logged in.
I updated my system this morning which included a new version of libdb. I also have amavisd-new installed from AUR using the yaourt package manager.
This is the error I get when I try to restart amavisd-new:
Problem in Amavis::DB or Amavis::DB::SNMP code: Can't load '/usr/lib/perl5/vendor_perl/auto/BerkeleyDB/BerkeleyDB.so' for module BerkeleyDB: libdb-4.6.so: cannot open shared object file: No such file or directory at /usr/lib/perl5/core_perl/XSLoader.pm line 64.
at (eval 78) line 19
Compilation failed in require at (eval 78) line 19.
BEGIN failed--compilation aborted at (eval 78) line 19.
Undefined subroutine &BerkeleyDB::Term::close_everything called at /usr/lib/perl5/vendor_perl/BerkeleyDB.pm line 1733.
END failed--call queue aborted at /usr/sbin/amavisd line 12630.
I have tried to re-install amavisd-new from the AUR which made no difference. Looking around it seems all the files it complain about does exist thus I am not entirely sure what the problem is?
It looks like perl is looking for db.h and found one for db 4.6 even tho the db.h in /usr/include has version 4.7.25 as its version nr.
Last edited by Tinuva (2008-07-18 11:13:47)
Offline
Temporary fix:
# ln -s /usr/lib/libdb-4.7.so /usr/lib/libdb-4.6.so
Offline
Temporary fix:
# ln -s /usr/lib/libdb-4.7.so /usr/lib/libdb-4.6.so
This is a very bad solution that will cause you more problems down the line.
Did you get the updated perl package when you did the update? Perhaps you need to wait for your mirror to sync.
Offline
Same problem with different program (poedit).
[kotyz@amargit ~]$ poedit
poedit: error while loading shared libraries: libdb-4.6.so: cannot open shared object file: No such file or directory
Offline
File a bug report to get poedit rebuilt to fix this
Offline
Recompile the Perl-Berkeley module.
cd /var/abs/community/lib/perl-berkeleydb
makepkg
sudo pacman -U perl-berkeleydb-0.34-1-x86_64.pkg.tar.gz
Offline
Recompile the Perl-Berkeley module.
cd /var/abs/community/lib/perl-berkeleydb makepkg sudo pacman -U perl-berkeleydb-0.34-1-x86_64.pkg.tar.gz
That worked.
Offline
Interesting, I actually did that, for some reason it didnt work. As for linking /usr/lib/libdb-4.7.so /usr/lib/libdb-4.6.so, it does cause more problems than I needed so I didn;t follow that.
What I did do in the end was to disable berkeleydb in amavisd-new's config and make only use of the memory cache. Works better that way anyways since these servers have a huge amount of hdd io already. The bayes db for spamd is also running on mysql now instead.
Thank you for all the replies. I think about a day after I got the berkeleydb update, I got the new update for perl-berkeleydb to fix the problem I had.
Offline