MySQL Forums
Forum List  »  Perl

Solaris 10 x86 - DBD::mysql - compile issue
Posted by: hayes hayes
Date: July 04, 2011 01:18AM

Hi,

maybe you have an idea what else I can do to install DBD::mysql on my Solaris 10?

####

-bash-3.00# /opt/perl/bin/perl Makefile.PL


PLEASE NOTE:

For 'make test' to run properly, you must ensure that the
database user 'root' can connect to your MySQL server
and has the proper privileges that these tests require such
as 'drop table', 'create table', 'drop procedure', 'create procedure'
as well as others.

mysql> grant all privileges on test.* to 'root'@'localhost' identified by 's3kr1 t';

You can also optionally set the user to run 'make test' with:

perl Makefile.PL --testuser=username

I will use the following settings for compiling and testing:

cflags (mysql_config) = -I/opt/mysql/mysql/include -m32 -KPIC -g -mt -f simple=1 -ftrap=%none -nofstore -xbuiltin=%all -xlibmil -xlibmopt -xtarget=gener ic
embedded (mysql_config) =
libs (mysql_config) = -L/opt/mysql/mysql/lib -lmysqlclient -lthread -lsocket -lnsl -lm -lrt
mysql_config (guessed ) = mysql_config
nocatchstderr (default ) = 0
nofoundrows (default ) = 0
ssl (guessed ) = 0
testdb (default ) = test
testhost (default ) =
testpassword (default ) =
testsocket (default ) =
testuser (guessed ) = root

To change these settings, see 'perl Makefile.PL --help' and
'perldoc INSTALL'.

Argument "6.57_05" isn't numeric in numeric ge (>=) at Makefile.PL line 350, <PI PE> line 138.
Checking if your kit is complete...
Looks good
Using DBI 1.616 (for perl 5.014001 on i86pc-solaris) installed in /opt/perl/lib/ site_perl/5.14.1/i86pc-solaris/auto/DBI/
Writing Makefile for DBD::mysql
Writing MYMETA.yml
-bash-3.00# 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/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod
cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
gcc -c -I/opt/perl/lib/site_perl/5.14.1/i86pc-solaris/auto/DBI -I/opt/mysql/mys ql/include -m32 -KPIC -g -mt -fsimple=1 -ftrap=%none -nofstore -xbuiltin=%all -x libmil -xlibmopt -xtarget=generic -DDBD_MYSQL_INSERT_ID_IS_GOOD -g -fno-strict- aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 - DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_USE_S AFE_PUTENV -O -DVERSION=\"4.019\" -DXS_VERSION=\"4.019\" -fPIC "-I/opt/perl/li b/5.14.1/i86pc-solaris/CORE" dbdimp.c
gcc: nicht erkannte Option »-KPIC«
gcc: nicht erkannte Option »-nofstore«
gcc: Sprache target=generic nicht erkannt
gcc: dbdimp.c: Eingabedateien des Binders unbenutzt, da keine Bindung geschieht
/opt/perl/bin/perl -p -e "s/~DRIVER~/mysql/g" /opt/perl/lib/site_perl/5.14.1/i86 pc-solaris/auto/DBI/Driver.xst > mysql.xsi
/opt/perl/bin/perl /opt/perl/lib/5.14.1/ExtUtils/xsubpp -typemap /opt/perl/lib/ 5.14.1/ExtUtils/typemap mysql.xs > mysql.xsc && mv mysql.xsc mysql.c
Warning: duplicate function definition 'do' detected in mysql.xs, line 242
Warning: duplicate function definition 'rows' detected in mysql.xs, line 749
gcc -c -I/opt/perl/lib/site_perl/5.14.1/i86pc-solaris/auto/DBI -I/opt/mysql/mys ql/include -m32 -KPIC -g -mt -fsimple=1 -ftrap=%none -nofstore -xbuiltin=%all -x libmil -xlibmopt -xtarget=generic -DDBD_MYSQL_INSERT_ID_IS_GOOD -g -fno-strict- aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 - DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_USE_S AFE_PUTENV -O -DVERSION=\"4.019\" -DXS_VERSION=\"4.019\" -fPIC "-I/opt/perl/li b/5.14.1/i86pc-solaris/CORE" mysql.c
gcc: nicht erkannte Option »-KPIC«
gcc: nicht erkannte Option »-nofstore«
gcc: Sprache target=generic nicht erkannt
gcc: mysql.c: Eingabedateien des Binders unbenutzt, da keine Bindung geschieht
Running Mkbootstrap for DBD::mysql ()
chmod 644 mysql.bs
rm -f blib/arch/auto/DBD/mysql/mysql.so
LD_RUN_PATH="/opt/mysql/mysql/lib:/usr/lib" /opt/perl/bin/perl myld gcc -G -L/u sr/local/lib dbdimp.o mysql.o -o blib/arch/auto/DBD/mysql/mysql.so \
-L/opt/mysql/mysql/lib -lmysqlclient -lthread -lsocket -lnsl -lm -lrt \

gcc: dbdimp.o: Datei oder Verzeichnis nicht gefunden
gcc: mysql.o: Datei oder Verzeichnis nicht gefunden
make: *** [blib/arch/auto/DBD/mysql/mysql.so] Fehler 1

-bash-3.00# cat /var/ld/ld.config PP/lib:/usr/lib:/usr/local/lib:/opt/mysql/mysql/lib/-
bash-3.00#

####

Any ideas?

ciao
Hayes

Options: ReplyQuote


Subject
Written By
Posted
Solaris 10 x86 - DBD::mysql - compile issue
July 04, 2011 01:18AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.