Oracle 5.0 Reference Manual page 211

Table of Contents

Advertisement

• Modify the
options used to compile
-L
libmysqlclient.so.
• On Linux, you can add the path name of the directory where
/etc/ld.so.conf
Add the path name of the directory where
environment variable. Some systems use
Note that you may also need to modify the
find. For example, if the linker cannot find
L/usr/lib, change the
If you get the following errors from DBD::mysql, you are probably using
compiled with gcc):
/usr/bin/perl: can't resolve symbol '__moddi3'
/usr/bin/perl: can't resolve symbol '__divdi3'
Add
-L/usr/lib/gcc-lib/... -lgcc
(check the output from
specify the path name of the directory where
Another cause of this problem may be that Perl and MySQL are not both compiled with gcc. In this
case, you can solve the mismatch by compiling both with gcc.
You may see the following error from
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:
uncompress at /usr/lib/perl5/5.00503/i586-linux/DynaLoader.pm line 169.
This means that you need to include the
changing the following line in the file lib/DBD/mysql/Install.pm:
$sysliblist .= " -lm";
Change that line to:
$sysliblist .= " -lm -lz";
After this, you must run
If you want to install DBI on SCO, you have to edit the
Note that the following assumes
OLD:
CC = cc
CCCDLFLAGS = -KPIC -W1,-Bexport
CCDLFLAGS = -wl,-Bexport
LD = ld
LDDLFLAGS = -G -L/usr/local/lib
LDFLAGS = -belf -L/usr/local/lib
LD = ld
OPTIMISE = -Od
OLD:
CCCFLAGS = -belf -dy -w0 -U M_XENIX -DPERL_SCO5 -I/usr/local/include
NEW:
CCFLAGS = -U M_XENIX -DPERL_SCO5 -I/usr/local/include
These changes are necessary because the Perl dynaloader does not load the
were compiled with
icc
Problems Using the Perl
DBD::mysql
file.
LD_LIBRARY_PATH
-L
libc
option to
-L
-L/lib
to the link command when the
for
when you compile the Perl client). The
make
mysql.so
libgcc.a
DBD::mysql
compression library on the link line. That can be done by
-lz
and then proceed with the installation from the beginning.
make realclean
2.95.2 or newer:
gcc
NEW:
CC = gcc
CCCDLFLAGS = -fpic
CCDLFLAGS =
LD = gcc -G -fpic
LDDLFLAGS = -L/usr/local/lib
LDFLAGS = -L/usr/local/lib
LD = gcc -G -fpic
OPTIMISE = -O1
or cc.
191
Interface
DBI/DBD
to reflect the actual location of
libmysqlclient.so
libmysqlclient.so
instead.
options if there are other libraries that the linker fails to
because it is in
/lib
or add
to the existing link command.
-L/lib
is located on your system.
when you run the tests:
in
DBI-xxx
Makefile
is located to the
is located to the
LD_RUN_PATH
and the link command specifies
(or using an old binary
gcc
library gets built
mysql.so
option should
-L
and each subdirectory.
modules if they
DBI
-

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents