Problem installing DBD::mysql on Solaris 8

Problem installing DBD::mysql on Solaris 8

am 27.01.2004 20:41:22 von red orbit

Hi,

I am getting the following error while installing perl
DBI module via cpan. I tried compliling the source
code also, still the same error. Pls help.

gcc -c
-I/usr/local/lib/perl5/site_perl/5.8.3/sun4-solaris/auto/DBI
-I/usr/local/mysql/include -m64 -fno-strict-aliasing
-I/usr/local/include -I/opt/GNU/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O
-DVERSION=\"2.9003\" -DXS_VERSION=\"2.9003\" -fPIC
"-I/usr/local/lib/perl5/5.8.3/sun4-solaris/CORE"
dbdimp.c
/usr/local/bin/perl -p -e "s/~DRIVER~/mysql/g"
/usr/local/lib/perl5/site_perl/5.8.3/sun4-solaris/auto/DBI/D river.xst
> mysql.xsi
/usr/local/bin/perl
/usr/local/lib/perl5/5.8.3/ExtUtils/xsubpp -typemap
/usr/local/lib/perl5/5.8.3/ExtUtils/typemap mysql.xs
> mysql.xsc && mv mysql.xsc mysql.c
Warning: duplicate function definition 'do' detected
in mysql.xs, line 192
Warning: duplicate function definition 'rows' detected
in mysql.xs, line 290
gcc -c
-I/usr/local/lib/perl5/site_perl/5.8.3/sun4-solaris/auto/DBI
-I/usr/local/mysql/include -m64 -fno-strict-aliasing
-I/usr/local/include -I/opt/GNU/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O
-DVERSION=\"2.9003\" -DXS_VERSION=\"2.9003\" -fPIC
"-I/usr/local/lib/perl5/5.8.3/sun4-solaris/CORE"
mysql.c
Running Mkbootstrap for DBD::mysql ()
chmod 644 mysql.bs
rm -f blib/arch/auto/DBD/mysql/mysql.so
LD_RUN_PATH="/usr/lib" /usr/local/bin/perl myld gcc
-G -L/usr/local/lib -L/opt/GNU/lib dbdimp.o mysql.o
-o blib/arch/auto/DBD/mysql/mysql.so
-L/usr/local/mysql/lib -lmysqlclient -lposix4 -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.socollect2: ld
returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target
`blib/arch/auto/DBD/mysql/mysql.so'
/usr/ccs/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems
impossible
Running install for module DBD::mysql
Running make for R/RU/RUDY/DBD-mysql-2.9003.tar.gz
Is already unwrapped into directory
/export/home/bhini/.cpan/build/DBD-mysql-2.9003
Has already been processed within this session
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems
impossible
Bundle summary: The following items in bundle
Bundle::DBD::mysql had
installation problems:
Mysql DBD::mysql

cpan>


Thanks.

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org

Re: Problem installing DBD::mysql on Solaris 8

am 27.01.2004 20:53:04 von Rudy Lippan

On Tue, 27 Jan 2004, red orbit wrote:

> Hi,
>
> I am getting the following error while installing perl
> DBI module via cpan. I tried compliling the source
> code also, still the same error. Pls help.

> ld: fatal: file dbdimp.o: wrong ELF class: ELFCLASS64
> ld: fatal: File processing errors. No output written
> to blib/arch/auto/DBD/mysql/mysql.socollect2: ld
> returned 1 exit status

Sounds like you have a 32 bit perl and you are using a 64 bit mysql client
library. Either recompile your mysql client library as 32 bits or
recompile perl to be 64 bits.

Rudy



--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org

Re: Problem installing DBD::mysql on Solaris 8

am 27.01.2004 20:53:04 von Rudy Lippan

On Tue, 27 Jan 2004, red orbit wrote:

> Hi,
>
> I am getting the following error while installing perl
> DBI module via cpan. I tried compliling the source
> code also, still the same error. Pls help.

> ld: fatal: file dbdimp.o: wrong ELF class: ELFCLASS64
> ld: fatal: File processing errors. No output written
> to blib/arch/auto/DBD/mysql/mysql.socollect2: ld
> returned 1 exit status

Sounds like you have a 32 bit perl and you are using a 64 bit mysql client
library. Either recompile your mysql client library as 32 bits or
recompile perl to be 64 bits.

Rudy



--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org

Re: Problem installing DBD::mysql on Solaris 8

am 27.01.2004 21:34:42 von Celeste Suliin Burris

You had better make sure which version (32 or 64 bit) your Solaris is and
compile accordingly. I suspect you have downloaded pre-compiled packages for
Perl, MySQL and/or gcc

The command to check Solaris for which version is

isainfo -v
If you have only 32 bit Solaris installed, you will see:
32-bit sparc applications

else, you will see

64-bit sparcv9 applications
32-bit sparc applications

> From: Rudy Lippan
> Date: Tue, 27 Jan 2004 14:53:04 -0500 (EST)
> To: red orbit
> Cc: perl@lists.mysql.com
> Subject: Re: Problem installing DBD::mysql on Solaris 8
>
> On Tue, 27 Jan 2004, red orbit wrote:
>
>> Hi,
>>
>> I am getting the following error while installing perl
>> DBI module via cpan. I tried compliling the source
>> code also, still the same error. Pls help.
>
>> ld: fatal: file dbdimp.o: wrong ELF class: ELFCLASS64
>> ld: fatal: File processing errors. No output written
>> to blib/arch/auto/DBD/mysql/mysql.socollect2: ld
>> returned 1 exit status
>
> Sounds like you have a 32 bit perl and you are using a 64 bit mysql client
> library. Either recompile your mysql client library as 32 bits or
> recompile perl to be 64 bits.
>
> Rudy
>
>
>
> --
> MySQL Perl Mailing List
> For list archives: http://lists.mysql.com/perl
> To unsubscribe: http://lists.mysql.com/perl?unsub=csburris@ci.tacoma.wa.us
>


--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org

Re: Problem installing DBD::mysql on Solaris 8

am 27.01.2004 21:34:42 von Celeste Suliin Burris

You had better make sure which version (32 or 64 bit) your Solaris is and
compile accordingly. I suspect you have downloaded pre-compiled packages for
Perl, MySQL and/or gcc

The command to check Solaris for which version is

isainfo -v
If you have only 32 bit Solaris installed, you will see:
32-bit sparc applications

else, you will see

64-bit sparcv9 applications
32-bit sparc applications

> From: Rudy Lippan
> Date: Tue, 27 Jan 2004 14:53:04 -0500 (EST)
> To: red orbit
> Cc: perl@lists.mysql.com
> Subject: Re: Problem installing DBD::mysql on Solaris 8
>
> On Tue, 27 Jan 2004, red orbit wrote:
>
>> Hi,
>>
>> I am getting the following error while installing perl
>> DBI module via cpan. I tried compliling the source
>> code also, still the same error. Pls help.
>
>> ld: fatal: file dbdimp.o: wrong ELF class: ELFCLASS64
>> ld: fatal: File processing errors. No output written
>> to blib/arch/auto/DBD/mysql/mysql.socollect2: ld
>> returned 1 exit status
>
> Sounds like you have a 32 bit perl and you are using a 64 bit mysql client
> library. Either recompile your mysql client library as 32 bits or
> recompile perl to be 64 bits.
>
> Rudy
>
>
>
> --
> MySQL Perl Mailing List
> For list archives: http://lists.mysql.com/perl
> To unsubscribe: http://lists.mysql.com/perl?unsub=csburris@ci.tacoma.wa.us
>


--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org