求助 DBD:mysql 安装中make test大量报错(问题已经解决)
flying_dog
|
1#
flying_dog 发表于 2008-09-10 22:40
求助 DBD:mysql 安装中make test大量报错(问题已经解决)DBD::mysql 比较傻去找/usr/lib下的libmysqlclient.so.15 所有必须给他做个link 指向msyql下lib/myql/libmysqlclient.so.15.0.0 或者你直接把mysql目下的lib/myql/的文件靠到/usr/lib cannot open shared object file: Too many levels of symbolic links at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm 是应为/usr/lib目录下没有 libmysqlclient.so.15这个文件 ERROR: install_driver(mysql) failed: Can't load '/tmp/install_tmp/DBD-mysql-4.008/blib/arch/auto/DBD/mysql/mysql.so' for module DBD::mysql: libmysqlclient.so.15: cannot open shared object file: Too many levels of symbolic links at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230 是因为我对libmysqlclient.so.15link文件 又做了一次link DBD:mysql 安装中make test大量报错,兄弟们 帮帮忙啊!! 环境:DBD-mysql-4.008 mysql-5.0.45源码安装于/usr/local/mysql perl-5.8.5-36 rhel4.6安装时装 #perl Makefile.PL --libs="-L/usr/local/mysql/lib/mysql -lmysqlclient -lz" --cflags=-I/usr/local/mysql/include/mysql --testhost=localhost --testuser=root --mysql_config=/usr/local/mysql/bin/mysql_config #make #make test 出错了 PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00base....................String found where operator expected at t/00base.t line 20, near "BAIL_OUT "Unable to load DBI"" (Do you need to predeclare BAIL_OUT?) String found where operator expected at t/00base.t line 21, near "BAIL_OUT "Unable to load DBD::mysql"" (Do you need to predeclare BAIL_OUT?) syntax error at t/00base.t line 20, near "BAIL_OUT "Unable to load DBI"" syntax error at t/00base.t line 21, near "BAIL_OUT "Unable to load DBD::mysql"" BEGIN not safe after errors--compilation aborted at t/00base.t line 22. # Looks like your test died before it could output anything. t/00base....................dubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 1-6 Failed 6/6 tests, 0.00% okay t/10connect.................Use of uninitialized value in concatenation (.) or string at t/10connect.t line 20. skipped all skipped: ERROR: Can't continue test t/20createdrop..............Use of uninitialized value in concatenation (.) or string at t/20createdrop.t line 19. skipped all skipped: ERROR: . Can't continue test t/25lockunlock..............Use of uninitialized value in concatenation (.) or string at t/25lockunlock.t line 23. skipped all skipped: Can't connect to database ERROR: . Can't continue test t/29warnings................skipped all skipped: ERROR: install_driver(mysql) failed: Can't load '/tmp/install_tmp/DBD-mysql-4.008/blib/arch/auto/DBD/mysql/mysql.so' for module DBD::mysql: libmysqlclient.so.15: cannot open shared object file: Too many levels of symbolic links at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230. t/30insertfetch.............Use of uninitialized value in concatenation (.) or string at t/30insertfetch.t line 18. skipped all skipped: ERROR: . Can't continue test t/31insertid................Use of uninitialized value in concatenation (.) or string at t/31insertid.t line 18. skipped all skipped: ERROR: . Can't continue test t/32insert_error............skipped all skipped: ERROR: install_driver(mysql) failed: Can't load '/tmp/install_tmp/DBD-mysql-4.008/blib/arch/auto/DBD/mysql/mysql.so' for module DBD::mysql: libmysqlclient.so.15: cannot open shared object file: Too many levels of symbolic links at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230. t/35limit...................skipped all skipped: ERROR: install_driver(mysql) failed: Can't load '/tmp/install_tmp/DBD-mysql-4.008/blib/arch/auto/DBD/mysql/mysql.so' for module DBD::mysql: libmysqlclient.so.15: cannot open shared object file: Too many levels of symbolic links at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230. t/35prepare.................Use of uninitialized value in concatenation (.) or string at t/35prepare.t line 20. skipped all skipped: Can't connect to database ERROR: . Can't continue test t/40bindparam...............Use of uninitialized value in concatenation (.) or string at t/40bindparam.t line 18. skipped all skipped: ERROR: . Can't continue test t/40bindparam2..............Use of uninitialized value in concatenation (.) or string at t/40bindparam2.t line 23. skipped all skipped: ERROR: . Can't continue test t/40blobs...................Can't call method "get_info" on an undefined value at t/40blobs.t line 37. # Looks like your test died before it could output anything. t/40blobs...................dubious Test returned status 255 (wstat 65280, 0xff00) t/40catalog.................Use of uninitialized value in concatenation (.) or string at t/40catalog.t line 23. skipped all skipped: ERROR: . Can't continue test t/40keyinfo.................Use of uninitialized value in concatenation (.) or string at t/40keyinfo.t line 17. skipped all skipped: ERROR: . Can't continue test t/40listfields..............Use of uninitialized value in concatenation (.) or string at t/40listfields.t line 30. skipped all skipped: ERROR: . Can't continue test t/40nulls...................Use of uninitialized value in concatenation (.) or string at t/40nulls.t line 21. skipped all skipped: ERROR: . Can't continue test t/40numrows.................Use of uninitialized value in concatenation (.) or string at t/40numrows.t line 21. skipped all skipped: ERROR: . Can't continue test t/40server_prepare..........skipped all skipped: ERROR: install_driver(mysql) failed: Can't load '/tmp/install_tmp/DBD-mysql-4.008/blib/arch/auto/DBD/mysql/mysql.so' for module DBD::mysql: libmysqlclient.so.15: cannot open shared object file: Too many levels of symbolic links at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230. t/40server_prepare_error....skipped all skipped: ERROR: install_driver(mysql) failed: Can't load '/tmp/install_tmp/DBD-mysql-4.008/blib/arch/auto/DBD/mysql/mysql.so' for module DBD::mysql: libmysqlclient.so.15: cannot open shared object file: Too many levels of symbolic links at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230. t/40types...................Use of uninitialized value in concatenation (.) or string at t/40types.t line 19. skipped all skipped: ERROR: . Can't continue test t/41bindparam...............Use of uninitialized value in concatenation (.) or string at t/41bindparam.t line 16. skipped all skipped: ERROR: . Can't continue test t/41blobs_prepare...........Use of uninitialized value in concatenation (.) or string at t/41blobs_prepare.t line 28. skipped all skipped: ERROR: . Can't continue test t/42bindparam...............skipped all skipped: ERROR: install_driver(mysql) failed: Can't load '/tmp/install_tmp/DBD-mysql-4.008/blib/arch/auto/DBD/mysql/mysql.so' for module DBD::mysql: libmysqlclient.so.15: cannot open shared object file: Too many levels of symbolic links at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230. t/50chopblanks..............Use of uninitialized value in concatenation (.) or string at t/50chopblanks.t line 22. skipped all skipped: ERROR: . Can't continue test t/50commit..................Use of uninitialized value in concatenation (.) or string at t/50commit.t line 20. skipped all skipped: ERROR: . Can't continue test t/55utf8....................skipped all skipped: ERROR: install_driver(mysql) failed: Can't load '/tmp/install_tmp/DBD-mysql-4.008/blib/arch/auto/DBD/mysql/mysql.so' for module DBD::mysql: libmysqlclient.so.15: cannot open shared object file: Too many levels of symbolic links at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230. t/60leaks...................skipped all skipped: Skip $ENV{SLOW_TESTS} is not set t/65types...................skipped all skipped: ERROR: install_driver(mysql) failed: Can't load '/tmp/install_tmp/DBD-mysql-4.008/blib/arch/auto/DBD/mysql/mysql.so' for module DBD::mysql: libmysqlclient.so.15: cannot open shared object file: Too many levels of symbolic links at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230. t/70takeimp.................skipped all skipped: Can't obtain driver handle ERROR: install_driver(mysql) failed: Can't load '/tmp/install_tmp/DBD-mysql-4.008/blib/arch/auto/DBD/mysql/mysql.so' for module DBD::mysql: libmysqlclient.so.15: cannot open shared object file: Too many levels of symbolic links at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230. t/71impdata.................skipped all skipped: install_driver(mysql) failed: Can't load '/tmp/install_tmp/DBD-mysql-4.008/blib/arch/auto/DBD/mysql/mysql.so' for module DBD::mysql: libmysqlclient.so.15: cannot open shared object file: Too many levels of symbolic links at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230. t/75supported_sql...........Use of uninitialized value in concatenation (.) or string at t/75supported_sql.t line 18. skipped all skipped: ERROR: . Can't continue test t/76multi_statement.........skipped all skipped: ERROR: install_driver(mysql) failed: Can't load '/tmp/install_tmp/DBD-mysql-4.008/blib/arch/auto/DBD/mysql/mysql.so' for module DBD::mysql: libmysqlclient.so.15: cannot open shared object file: Too many levels of symbolic links at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230. t/80procs...................Use of uninitialized value in concatenation (.) or string at t/80procs.t line 18. skipped all skipped: ERROR: . Can't continue test Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/00base.t 2 512 6 12 200.00% 1-6 t/40blobs.t 255 65280 ?? ?? % ?? 32 tests skipped. Failed 2/34 test scripts, 94.12% okay. 6/6 subtests failed, 0.00% okay. make: *** [test_dynamic] Error 255 |