- 论坛徽章:
- 0
|
查install.html
2)
If Perl was compiled with gcc or egcs, but MySQL was compiled with another compiler or on another system, an error message like this is very likely when running ``Make test'':
t/00base............install_driver(mysql) failed: Can't load
'../blib/arch/auto/DBD/mysql/mysql.so' for module DBD::mysql:
../blib/arch/auto/DBD/mysql/mysql.so: undefined symbol: _umoddi3
at /usr/local/perl-5.005/lib/5.005/i586-linux-thread/DynaLoader.pm
line 168.
This means, that your linker doesn't include libgcc.a. You have the following options:
The solution is telling the linker to use libgcc. Run
gcc --print-libgcc-file
to determine the exact location of libgcc.a or for older versions of gcc
gcc -v
to determine the directory. If you know the directory, add a
-L<directory> -lgcc
to the list of C compiler flags. Configuration. Linker flags.
---------------------------
$gcc-print-libgcc-file
/usr/lib/gcc/i386-redhat-linux/4.1.1/libgcc.a
$perl Makefile.PL --libs="-L/usr/local/mysql/lib/mysql " --cflags=-I/usr/local/mysql/include/mysql --testhost=127.0.0.1 --mysql_config=/usr/local/mysql/bin/mysql_config
如何指定libgcc.a??????? |
|