List:MySQL and Perl« Previous MessageNext Message »
From:Jochen Wiedmann Date:December 29 2003 11:51am
Subject:Re: Installing DBD::mysql fails in Solaris
View as plain text  
Leos Tovarek wrote:

> LD_RUN_PATH="/lib" /usr/bin/perl myld cc  -G dbdimp.o  mysql.o  -o
> blib/arch/auto/DBD/mysql/mysql.so   -L/usr/local/mysql/lib -lmysqlclient -lposix4 -lcrypt
> -lgen -lsocket -lnsl -lm   
> ld: fatal: file dbdimp.o: wrong ELF class: ELFCLASS64
> ld: fatal: File processing errors. No output written to
> blib/arch/auto/DBD/mysql/mysql.so

You are obviously mixing 32 bit and 64 bit binaries. For example, your
MySQL may be compiled for 64 bit and Perl for 32 bit or vice versa. This
problem typically happens when using precompiled binaries, for example
from www.mysql.com.

The suggested solution is to compile everything for yourself (at least
the MySQL client libraries, see the --without-server option of configure,
the Perl interpreter, and the drivers) and with the same settings.


Jochen
Thread
Installing DBD::mysql fails in SolarisLeos Tovarek29 Dec
  • Re: Installing DBD::mysql fails in SolarisJochen Wiedmann29 Dec
    • Re: Installing DBD::mysql fails in SolarisLeos Tovarek30 Dec