[BSD] perl, mysql 5.5

Kovács András andras at posta.ws
2011. Feb. 24., Cs, 09:01:45 CET


Sziasztok!
FBSD 8.1-R, mail szervert szeretnék telepíteni. MySQL 5.5, sqlgrey,
amavisd-new sikeresen települt ports-ból. Most 5.12-es perl van, ugyanezt a
helyzet 5.10-es verzióval is. 8.2-R is ugyanez a hiba. Más verziós
mysql-lel nem próbáltam.

Mysql csak mysqld_safe & paranccsal indul (ilyenkor azonban tökéletesen
megy). Log:
110224  8:54:56 [Note] /usr/local/libexec/mysqld: Normal shutdown

110224  8:54:56 [Note] Event Scheduler: Purging the queue. 0 events
110224  8:54:56  InnoDB: Starting shutdown...
110224  8:54:56  InnoDB: Shutdown completed; log sequence number 1778548
110224  8:54:56 [Note] /usr/local/libexec/mysqld: Shutdown complete

110224 08:54:56 mysqld_safe mysqld from pid file
/var/db/mysql/bmeg.local.pid ended
110224 08:54:56 mysqld_safe Starting mysqld daemon with databases from
/var/db/mysql
110224  8:54:56 [ERROR] Can't find messagefile
'/usr/local/share/mysql/errmsg.sys'
110224  8:54:56 InnoDB: The InnoDB memory heap is disabled
110224  8:54:56 InnoDB: Mutexes and rw_locks use GCC atomic builtins
110224  8:54:56 InnoDB: Compressed tables use zlib 1.2.3
110224  8:54:56 InnoDB: Initializing buffer pool, size = 128.0M
110224  8:54:56 InnoDB: Completed initialization of buffer pool
110224  8:54:56 InnoDB: highest supported file format is Barracuda.
110224  8:54:57  InnoDB: Waiting for the background threads to start
110224  8:54:58 InnoDB: 1.1.5 started; log sequence number 1778548
110224  8:54:58 [ERROR] Aborting

110224  8:54:58  InnoDB: Starting shutdown...
110224  8:54:58  InnoDB: Shutdown completed; log sequence number 1778548
110224  8:54:58 [Note]
110224 08:54:58 mysqld_safe mysqld from pid file
/var/db/mysql/bmeg.local.pid ended

ls -l /usr/local/share/mysql/errmsg.sys
-rw-r--r--  1 mysql  wheel  42670 Feb 16 23:15
/usr/local/share/mysql/errmsg.sys

-----8<-----

sqlgrey nem tud kapcsolódni a mysql-hez, valami DBD-mysql perl modul
hiánya miatt (szintén telepítve):
Feb 24 08:46:53 bmeg sqlgrey: fatal: Can't locate loadable object for
module DBD::mysql in @INC (@INC contains:
/usr/local/lib/perl5/5.12.3/BSDPAN
/usr/local/lib/perl5/site_perl/5.12.3/mach
/usr/local/lib/perl5/site_perl/5.12.3 /usr/local/lib/perl5/5.12.3/mach
/usr/local/lib/perl5/5.12.3 .) at (eval 14) line 3
Feb 24 08:46:53 bmeg sqlgrey: fatal: Can't locate loadable object for
module DBD::mysql in @INC (@INC contains:
/usr/local/lib/perl5/5.12.3/BSDPAN
/usr/local/lib/perl5/site_perl/5.12.3/mach
/usr/local/lib/perl5/site_perl/5.12.3 /usr/local/lib/perl5/5.12.3/mach
/usr/local/lib/perl5/5.12.3 .) at (eval 14) line 3 Compilation failed in
require at (eval 14) line 3.
Feb 24 08:46:53 bmeg sqlgrey: fatal: install_driver(mysql) failed: Can't
locate loadable object for module DBD::mysql in @INC (@INC contains:
/usr/local/lib/perl5/5.12.3/BSDPAN
/usr/local/lib/perl5/site_perl/5.12.3/mach
/usr/local/lib/perl5/site_perl/5.12.3 /usr/local/lib/perl5/5.12.3/mach
/usr/local/lib/perl5/5.12.3 .) at (eval 14) line 3 Compilation failed in
require at (eval 14) line 3. Perhaps a module that DBD::mysql requires
hasn't been fully installed  at /usr/local/sbin/sqlgrey line 814

ls -l /usr/local/lib/perl5/site_perl/5.12.3/mach/DBD/mysql
total 78
-r--r--r--  1 root  wheel  16031 Apr 12  2010 GetInfo.pm
-r-xr-xr-x  1 root  wheel  22221 Apr 12  2010 INSTALL.pod

-----8<-----

amavisd-new szintén perl-re panaszkodik.
/usr/local/etc/rc.d/amavisd start
Starting amavisd.
Problem in Amavis::DB or Amavis::DB::SNMP code: Can't locate loadable
object for module BerkeleyDB in @INC (@INC contains:
/usr/local/lib/perl5/5.12.3/BSDPAN
/usr/local/lib/perl5/site_perl/5.12.3/mach
/usr/local/lib/perl5/site_perl/5.12.3 /usr/local/lib/perl5/5.12.3/mach
/usr/local/lib/perl5/5.12.3) at (eval 88) line 19
Compilation failed in require at (eval 88) line 19.
BEGIN failed--compilation aborted at (eval 88) line 19.
Undefined subroutine &BerkeleyDB::Term::close_everything called at
/usr/local/lib/perl5/site_perl/5.12.3/mach/BerkeleyDB.pm line 1880.
END failed--call queue aborted at /usr/local/sbin/amavisd line 13714.

ls -l /usr/local/lib/perl5/site_perl/5.12.3/mach/BerkeleyDB/
total 4
-r--r--r--  1 root  wheel  88 Aug 14  1999 Btree.pm
-r--r--r--  1 root  wheel  87 Aug 14  1999 Hash.pm

Igyekeztem kuglizni, de nem találtam általam használható megoldást.

Maga a levelezés mysql safe móddal, sqlgrey és amavisd nélkül tökéletesen
működik.

Köszi a segítséget!



További információk a(z) BSD levelezőlistáról