I believe the problem is huge
So, so far, I have installed successfully DBI.
But, I'm trying to install DBD, and the pain begins
.
I've tried to install many distributions with many ways of compilation.
I'm posting the last compilation, and the following errors.
# perl Makefile.PL --libs="-L/usr/local/mysql/lib/mysql -L/usr/local/lib -lmysqlclient -lz -lposix4 -lgen -lsocket -lnsl -lm" --cflags=-I/usr/local/mysql/include/mysql/
I will use the following settings for compiling and testing:
cflags (User's choice) = -I/usr/local/mysql/include/mysql/
embedded (mysql_config ) =
libs (User's choice) = -L/usr/local/mysql/lib/mysql -L/usr/local/lib -lmysqlclient -lz -lposix4 -lgen -lsocket -lnsl -lm
mysql_config (guessed ) = mysql_config
nocatchstderr (default ) = 0
nofoundrows (default ) = 0
ps-protocol (default ) = 1
ssl (guessed ) = 0
testdb (default ) = test
testhost (default ) =
testpassword (default ) =
testsocket (default ) =
testuser (default ) =
To change these settings, see 'perl Makefile.PL --help' and
'perldoc INSTALL'.
Note (probably harmless): No library found for -lmysqlclient
Using DBI 1.48 (for perl 5.008005 on sun4-solaris) installed in /usr/local/lib/perl5/site_perl/5.8.5/sun4-solaris/auto/DBI/
Writing Makefile for DBD::mysql
So far one "harmless" warning.
but,
#make
cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm
cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm
cp lib/Mysql.pm blib/lib/Mysql.pm
cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod
cp lib/Mysql/Statement.pm blib/lib/Mysql/Statement.pm
cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
gcc -c -I/usr/local/lib/perl5/site_perl/5.8.5/sun4-solaris/auto/DBI/ -I/usr/local/mysql/include/mysql/ -DDBD_MYSQL_INSERT_ID_IS_GOOD -g -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"3.0002_1\" -DXS_VERSION=\"3.0002_1\" -fPIC "-I/usr/local/lib/perl5/5.8.5/sun4-solaris/CORE" dbdimp.c
/usr/local/bin/perl -p -e "s/~DRIVER~/mysql/g" /usr/local/lib/perl5/site_perl/5.8.5/sun4-solaris/auto/DBI//Driver.xst > mysql.xsi
/usr/local/bin/perl /usr/local/lib/perl5/5.8.5/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.8.5/ExtUtils/typemap mysql.xs > mysql.xsc && mv mysql.xsc mysql.c
Warning: duplicate function definition 'do' detected in mysql.xs, line 224
Warning: duplicate function definition 'rows' detected in mysql.xs, line 557
................
................
................
ld: fatal: relocation error: R_SPARC_32: file dbdimp.o: symbol <unknown>: offset 0xef17a60b is non-aligned
ld: fatal: relocation error: R_SPARC_32: file mysql.o: symbol <unknown>: offset 0xef17a62b is non-aligned
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/DBD/mysql/mysql.so] Error 1
Also I want to mention that, I searched for libmysqlclient libraries, and I found something in :
# ls -l /usr/local/mysql/lib/mysql/
total 3284
-rw-r--r-- 1 root other 19704 Aug 3 09:21 libdbug.a
-rw-r--r-- 1 root other 34416 Aug 3 09:23 libheap.a
-rw-r--r-- 1 root other 12972 Aug 3 09:22 libmerge.a
-rw-r--r-- 1 root other 302668 Aug 3 09:22 libmyisam.a
-rw-r--r-- 1 root other 22900 Aug 3 09:23 libmyisammrg.a
-rwxr-xr-x 1 root other 811 Aug 3 09:20 libmysqlclient.la
-rw-r--r-- 1 root other 344780 Aug 8 14:46 libmysqlclient.old
-rw-r--r-- 1 root other 353096 Aug 3 09:20 libmysqlclient_r.a
-rwxr-xr-x 1 root other 855 Aug 3 09:20 libmysqlclient_r.la
-rw-r--r-- 1 root other 123876 Aug 3 09:21 libmystrings.a
-rw-r--r-- 1 root other 256980 Aug 3 09:21 libmysys.a
-rw-r--r-- 1 root other 116508 Aug 3 09:22 libnisam.a
-rw-r--r-- 1 root other 5212 Aug 3 09:23 libvio.a
Happiness
Thanks again.