Re: Problem with DBI installation on x86_64-linux

2008-11-05 Thread Raphael Morlec
Hello,

I checked my /lib and /lib64 directories, and they both have a libc.so.6
file, but in fact, on both directories, this file is a link to the same
file, libc-2.4.so.
The x68_64 glibc is probably not installed, but I am not sure of that : I am
new in the company, and the person before me has installed everything on the
computer, and there is no SA, I am my own SA (small company... :-)  )
That is why I am a bit lost in all that. About the x86_64 glibc, I have read
that it is not without risks to modify it, and if I f modify it on my
computer I will also have to modify it on the production server.

At the moment I just succeeded  in installing DBI using a RPM : I had an old
bad DBI rpm which was blocking the installation of the good RPM, I deleted
it when found, then I installed the good one... and it works !

I know that this does not solve my compilation problem, but it allows me to
carry on my work.

Thanks a lot for your answers, I think I now know the source of the problem,
which is half of the solution.

Sincerely,

Raphael MORLEC

2008/11/4 Mike Nhan <[EMAIL PROTECTED]>

> Hi,
>
> Since you are on an x86_64 linux machine, do you have both the glibc i386
> and the glibc x86_64 libraries installed?  There should be a libc.so in both
> /lib and /lib64.  If not one of the 2 is missing and you need to have that
> installed.  Since the /lib/libc.so is not compatible with the compiler, I
> hazzard a guess that the x86_64 glibc is not installed and that the
> /lib/libc.so is the i386 version.  Have your SA install both the
> glibc-x86_64 and glibc-devel-x86_64 packages.  You'll want the x86_64
> version that matches your i386 version if you don't want to upgrade both. I
> think that should fix the compilation issue with the incompatible libc.
>
> Michael
>
>
>
> On Tue, 4 Nov 2008, Raphael Morlec wrote:
>
>  Date: Tue, 4 Nov 2008 11:37:45 +0100
>> From: Raphael Morlec <[EMAIL PROTECTED]>
>> To: Jonathan Leffler <[EMAIL PROTECTED]>, dbi-users@perl.org
>> Subject: Re: Problem with DBI installation on x86_64-linux
>>
>>
>> Thank you for your answer.
>> You must be right when you say that my "crash" is a C compilation failure.
>> The problem is that I am not experienced in C language, and I don't really
>> know how to resolve the compilation error.
>>
>> I looked on the web to find information about the GCC compiler, I
>> downloaded
>> the latest version and read the installation guide, but
>> I would prefer avoiding to reinstall a new version of the compiler if
>> possible, since it would suppose that I also reinstall the compiler on the
>> production server :-/
>>
>> I attached the shell output with the glibc and gcc versions.
>>
>> I also tried to test another module (HTML-Tidy) using C, and I have a
>> compilation failure similar to the DBI compilation failure (the shell
>> output
>> is attached). So you also may be right when you say that I am probably not
>> able to build any module with C.
>>
>> I don't think my libraries are too old, since they came with the linux
>> distribution, which is from 2007.
>> Maybe the problem comes from a wrong path or something ?
>> So I don't know which way I should search now... if you have any clue it
>> would be great !
>>
>> Thanks again for the time you spend on my problem.
>>
>> Raphael
>>
>> 2008/11/4 Jonathan Leffler <[EMAIL PROTECTED]>
>>
>>
>>> On Mon, Nov 3, 2008 at 8:06 AM, Raphael Morlec <[EMAIL PROTECTED]
>>> >wrote:
>>>
>>>  Hello everybody,
>>>>
>>>> I'm trying without success to install DBI for nearly two days now.
>>>>
>>>> I use a x86_64-linux Mandriva 2007 distribution, with perl 5.8.8 (the
>>>> shell 'perl -V' output is attached).
>>>>
>>>> I tried several ways to install DBI :
>>>>
>>>> 1. With the CPAN :
>>>> I tried 'perl -MCPAN -e shell', then 'install DBI'
>>>> CPAN gets the DBI module, writes the makefile, then... crashes !
>>>> I attached the output of the CPAN on the shell (auto_CPAN_crash.txt).
>>>> It crashes when gcc compiling is beginning (near line 376), so I guess
>>>> the problem comes from... gcc compilation.
>>>> I check the C libraries, and I think I have the right libraries :
>>>> gcc-4.1.1-3mdk.x86_64
>>>> libstdc++5-3.3.6-3mdk.x86_64
>>>> libstdc++6-devel-4.1.1-3mdk.x86_64
>>>>
>>>>
>>> I'm not sure how you define 'crash', but to me, a 'crash

Re: Problem with DBI installation on x86_64-linux

2008-11-04 Thread Mike Nhan

Hi,

Since you are on an x86_64 linux machine, do you have both the glibc i386 
and the glibc x86_64 libraries installed?  There should be a libc.so in 
both /lib and /lib64.  If not one of the 2 is missing and you need to have 
that installed.  Since the /lib/libc.so is not compatible with the 
compiler, I hazzard a guess that the x86_64 glibc is not installed and 
that the /lib/libc.so is the i386 version.  Have your SA install both the 
glibc-x86_64 and glibc-devel-x86_64 packages.  You'll want the x86_64 
version that matches your i386 version if you don't want to upgrade both. 
I think that should fix the compilation issue with the incompatible libc.


Michael



On Tue, 4 Nov 2008, Raphael Morlec wrote:


Date: Tue, 4 Nov 2008 11:37:45 +0100
From: Raphael Morlec <[EMAIL PROTECTED]>
To: Jonathan Leffler <[EMAIL PROTECTED]>, dbi-users@perl.org
Subject: Re: Problem with DBI installation on x86_64-linux

Thank you for your answer.
You must be right when you say that my "crash" is a C compilation failure.
The problem is that I am not experienced in C language, and I don't really
know how to resolve the compilation error.

I looked on the web to find information about the GCC compiler, I downloaded
the latest version and read the installation guide, but
I would prefer avoiding to reinstall a new version of the compiler if
possible, since it would suppose that I also reinstall the compiler on the
production server :-/

I attached the shell output with the glibc and gcc versions.

I also tried to test another module (HTML-Tidy) using C, and I have a
compilation failure similar to the DBI compilation failure (the shell output
is attached). So you also may be right when you say that I am probably not
able to build any module with C.

I don't think my libraries are too old, since they came with the linux
distribution, which is from 2007.
Maybe the problem comes from a wrong path or something ?
So I don't know which way I should search now... if you have any clue it
would be great !

Thanks again for the time you spend on my problem.

Raphael

2008/11/4 Jonathan Leffler <[EMAIL PROTECTED]>



On Mon, Nov 3, 2008 at 8:06 AM, Raphael Morlec <[EMAIL PROTECTED]>wrote:


Hello everybody,

I'm trying without success to install DBI for nearly two days now.

I use a x86_64-linux Mandriva 2007 distribution, with perl 5.8.8 (the
shell 'perl -V' output is attached).

I tried several ways to install DBI :

1. With the CPAN :
I tried 'perl -MCPAN -e shell', then 'install DBI'
CPAN gets the DBI module, writes the makefile, then... crashes !
I attached the output of the CPAN on the shell (auto_CPAN_crash.txt).
It crashes when gcc compiling is beginning (near line 376), so I guess
the problem comes from... gcc compilation.
I check the C libraries, and I think I have the right libraries :
gcc-4.1.1-3mdk.x86_64
libstdc++5-3.3.6-3mdk.x86_64
libstdc++6-devel-4.1.1-3mdk.x86_64



I'm not sure how you define 'crash', but to me, a 'crash' is different from
a compilation failure.

The first sign I see of trouble is:

gcc  -shared -L/usr/local/lib64 DBI.o  -o blib/arch/auto/DBI/DBI.so \
\

/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: cannot find -lc



collect2: ld returned 1 exit status


You probably need to resolve that before going any further.







2. By downloading sources from CPAN :
Error is almost the same : I get the DBI-1.607.tar.gz file.
( http://search.cpan.org/CPAN/authors/id/T/TI/TIMB/DBI-1.607.tar.gz )
Then I build the makefile with 'perl Makefile.PL'
Then I do 'make'.
Then... crash.
It seems to crash at the same moment than with CPAN automatic installation
(shell output attached => manual_CPAN_crash.txt)



Same failure.




RPM information deleted


DBI::Shell is not DBI.
And DBI 1.54 is quite a bit older than the current releases.


Thanks for including the information about versions, etc.  It helps.

I note that Perl was built with a pre-release of the C compiler:

 Compiler:
cc='gcc', ccflags ='-fno-strict-aliasing -pipe 
-Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',



optimize='-O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions',
cppflags='-fno-strict-aliasing -pipe -Wdeclaration-after-statement 
-I/usr/local/include -I/usr/include/gdbm'
ccversion='', gccversion='4.1.1 20060724 (prerelease) (4.1.1-3mdk)', 
gccosandvers=''



I doubt that has anything to do with the issue. though.  You need to ensure
that you can find an appropriate C library.
Have you managed to build any other C modules in Perl?  Somehow, I doubt
it.


--
Jonathan Leffler <[EMAIL PROTECTED]>  #include 
Guardian of DBD::Informix - v2008.0513 - http://dbi.perl.org
"Blessed are w

Re: Problem with DBI installation on x86_64-linux

2008-11-04 Thread Raphael Morlec
Thank you for your answer.
You must be right when you say that my "crash" is a C compilation failure.
The problem is that I am not experienced in C language, and I don't really
know how to resolve the compilation error.

I looked on the web to find information about the GCC compiler, I downloaded
the latest version and read the installation guide, but
I would prefer avoiding to reinstall a new version of the compiler if
possible, since it would suppose that I also reinstall the compiler on the
production server :-/

I attached the shell output with the glibc and gcc versions.

I also tried to test another module (HTML-Tidy) using C, and I have a
compilation failure similar to the DBI compilation failure (the shell output
is attached). So you also may be right when you say that I am probably not
able to build any module with C.

I don't think my libraries are too old, since they came with the linux
distribution, which is from 2007.
Maybe the problem comes from a wrong path or something ?
So I don't know which way I should search now... if you have any clue it
would be great !

Thanks again for the time you spend on my problem.

Raphael

2008/11/4 Jonathan Leffler <[EMAIL PROTECTED]>

>
> On Mon, Nov 3, 2008 at 8:06 AM, Raphael Morlec <[EMAIL PROTECTED]>wrote:
>
>> Hello everybody,
>>
>> I'm trying without success to install DBI for nearly two days now.
>>
>> I use a x86_64-linux Mandriva 2007 distribution, with perl 5.8.8 (the
>> shell 'perl -V' output is attached).
>>
>> I tried several ways to install DBI :
>>
>> 1. With the CPAN :
>> I tried 'perl -MCPAN -e shell', then 'install DBI'
>> CPAN gets the DBI module, writes the makefile, then... crashes !
>> I attached the output of the CPAN on the shell (auto_CPAN_crash.txt).
>> It crashes when gcc compiling is beginning (near line 376), so I guess
>> the problem comes from... gcc compilation.
>> I check the C libraries, and I think I have the right libraries :
>> gcc-4.1.1-3mdk.x86_64
>> libstdc++5-3.3.6-3mdk.x86_64
>> libstdc++6-devel-4.1.1-3mdk.x86_64
>>
>
> I'm not sure how you define 'crash', but to me, a 'crash' is different from
> a compilation failure.
>
> The first sign I see of trouble is:
>
> gcc  -shared -L/usr/local/lib64 DBI.o  -o blib/arch/auto/DBI/DBI.so \
> \
>
> /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
> /usr/bin/ld: cannot find -lc
>
>
>
> collect2: ld returned 1 exit status
>
>
> You probably need to resolve that before going any further.
>
>
>
>
>
>>
>> 2. By downloading sources from CPAN :
>> Error is almost the same : I get the DBI-1.607.tar.gz file.
>> ( http://search.cpan.org/CPAN/authors/id/T/TI/TIMB/DBI-1.607.tar.gz )
>> Then I build the makefile with 'perl Makefile.PL'
>> Then I do 'make'.
>> Then... crash.
>> It seems to crash at the same moment than with CPAN automatic installation
>> (shell output attached => manual_CPAN_crash.txt)
>
>
> Same failure.
>
>
>
> > RPM information deleted
>
> DBI::Shell is not DBI.
> And DBI 1.54 is quite a bit older than the current releases.
>
>
> Thanks for including the information about versions, etc.  It helps.
>
> I note that Perl was built with a pre-release of the C compiler:
>
>  Compiler:
> cc='gcc', ccflags ='-fno-strict-aliasing -pipe 
> -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE 
> -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
>
>
>
> optimize='-O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions',
> cppflags='-fno-strict-aliasing -pipe -Wdeclaration-after-statement 
> -I/usr/local/include -I/usr/include/gdbm'
> ccversion='', gccversion='4.1.1 20060724 (prerelease) (4.1.1-3mdk)', 
> gccosandvers=''
>
>
>
> I doubt that has anything to do with the issue. though.  You need to ensure
> that you can find an appropriate C library.
> Have you managed to build any other C modules in Perl?  Somehow, I doubt
> it.
>
>
> --
> Jonathan Leffler <[EMAIL PROTECTED]>  #include 
> Guardian of DBD::Informix - v2008.0513 - http://dbi.perl.org
> "Blessed are we who can laugh at ourselves, for we shall never cease to be
> amused."
>
[EMAIL PROTECTED] lib]# gcc -v
Using built-in specs.
Target: x86_64-mandriva-linux-gnu
Configured with: ../configure --prefix=/usr --libexecdir=/usr/lib 
--with-slibdir=/lib64 --mandir=/usr/share/man --infodir=/usr/share/info 
--enable-shared --enable-threads=posix --enable-checking=release 
--enable-languages=c,c++,ada,fortran,objc,obj-c++,java 
--host=x86_64-mandriva-linux-gnu --with-cpu=generic --with-system-zlib 
--enable-long-long --enable-__cxa_atexit --enable-clocale=gnu 
--disable-libunwind-exceptions --enable-java-awt=gtk 
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --enable-gtk-cairo 
--enable-ssp --disable-libssp
Thread model: posix
gcc version 4.1.1 20060724 (prerelease) (4.1.1-3mdk)
[EMAIL PROTECTED] lib]# ll /lib/libc.*
lrwxrwxrwx 1 root root 11 avr  3  2007 /lib/libc.so.6 -> libc-2.4.so*
[EMAIL PROTECTED] lib]# /lib/libc.so.6
GNU C Library development release

Re: Problem with DBI installation on x86_64-linux

2008-11-03 Thread Jonathan Leffler
On Mon, Nov 3, 2008 at 8:06 AM, Raphael Morlec <[EMAIL PROTECTED]>wrote:

> Hello everybody,
>
> I'm trying without success to install DBI for nearly two days now.
>
> I use a x86_64-linux Mandriva 2007 distribution, with perl 5.8.8 (the shell
> 'perl -V' output is attached).
>
> I tried several ways to install DBI :
>
> 1. With the CPAN :
> I tried 'perl -MCPAN -e shell', then 'install DBI'
> CPAN gets the DBI module, writes the makefile, then... crashes !
> I attached the output of the CPAN on the shell (auto_CPAN_crash.txt).
> It crashes when gcc compiling is beginning (near line 376), so I guess
> the problem comes from... gcc compilation.
> I check the C libraries, and I think I have the right libraries :
> gcc-4.1.1-3mdk.x86_64
> libstdc++5-3.3.6-3mdk.x86_64
> libstdc++6-devel-4.1.1-3mdk.x86_64
>

I'm not sure how you define 'crash', but to me, a 'crash' is different from
a compilation failure.

The first sign I see of trouble is:

gcc  -shared -L/usr/local/lib64 DBI.o  -o blib/arch/auto/DBI/DBI.so \
\

/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status


You probably need to resolve that before going any further.





>
> 2. By downloading sources from CPAN :
> Error is almost the same : I get the DBI-1.607.tar.gz file.
> ( http://search.cpan.org/CPAN/authors/id/T/TI/TIMB/DBI-1.607.tar.gz )
> Then I build the makefile with 'perl Makefile.PL'
> Then I do 'make'.
> Then... crash.
> It seems to crash at the same moment than with CPAN automatic installation
> (shell output attached => manual_CPAN_crash.txt)


Same failure.



> RPM information deleted

DBI::Shell is not DBI.
And DBI 1.54 is quite a bit older than the current releases.


Thanks for including the information about versions, etc.  It helps.

I note that Perl was built with a pre-release of the C compiler:

 Compiler:
cc='gcc', ccflags ='-fno-strict-aliasing -pipe
-Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
optimize='-O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions',
cppflags='-fno-strict-aliasing -pipe -Wdeclaration-after-statement
-I/usr/local/include -I/usr/include/gdbm'
ccversion='', gccversion='4.1.1 20060724 (prerelease)
(4.1.1-3mdk)', gccosandvers=''


I doubt that has anything to do with the issue. though.  You need to ensure
that you can find an appropriate C library.
Have you managed to build any other C modules in Perl?  Somehow, I doubt it.


-- 
Jonathan Leffler <[EMAIL PROTECTED]>  #include 
Guardian of DBD::Informix - v2008.0513 - http://dbi.perl.org
"Blessed are we who can laugh at ourselves, for we shall never cease to be
amused."


Problem with DBI installation on x86_64-linux

2008-11-03 Thread Raphael Morlec
Hello everybody,

I'm trying without success to install DBI for nearly two days now.

I use a x86_64-linux Mandriva 2007 distribution, with perl 5.8.8 (the shell
'perl -V' output is attached).

I tried several ways to install DBI :

1. With the CPAN :
I tried 'perl -MCPAN -e shell', then 'install DBI'
CPAN gets the DBI module, writes the makefile, then... crashes !
I attached the output of the CPAN on the shell (auto_CPAN_crash.txt).
It crashes when gcc compiling is beginning (near line 376), so I guess
the problem comes from... gcc compilation.
I check the C libraries, and I think I have the right libraries :
gcc-4.1.1-3mdk.x86_64
libstdc++5-3.3.6-3mdk.x86_64
libstdc++6-devel-4.1.1-3mdk.x86_64

2. By downloading sources from CPAN :
Error is almost the same : I get the DBI-1.607.tar.gz file.
( http://search.cpan.org/CPAN/authors/id/T/TI/TIMB/DBI-1.607.tar.gz )
Then I build the makefile with 'perl Makefile.PL'
Then I do 'make'.
Then... crash.
It seems to crash at the same moment than with CPAN automatic installation
(shell output attached => manual_CPAN_crash.txt)

3. With RPM package :
I get the RPM package (I'm not sure that this is the good one) :
ftp://ftp.ac-toulouse.fr/Mandriva/Mandrivalinux/media/contrib/perl-DBI-Shell-11.93-3mdv2007.0.noarch.rpm
but DBI still not working.
I also tried this one :
ftp://fr2.rpmfind.net/linux/Mandriva/official/2007.1/x86_64//media/main/release/perl-DBI-1.54-1mdv2007.1.x86_64.rpm
I also tried the latest DBI version but it seem to need perl 5.10.
Still no DBI :-(

After all that I still have :
Can't locate DBI.pm in @INC etc.etc.
(shell output attached => cant_locate_dbi.txt)

So I don't really know where I should search now,
I just think there is a problem with the C compilation and the 64bits-linux,
but I'm not sure of that...

I would be glad if anyone could be able to help me.

Thanks a lot !

Raphael MORLEC
[EMAIL PROTECTED] ~]$ su
Mot de passe:
[EMAIL PROTECTED] morlec]# perl -MCPAN -e shell
CPAN: File::HomeDir loaded ok (v0.64)

cpan shell -- CPAN exploration and modules installation (v1.9205)
ReadLine support enabled

cpan[1]> install DBI
CPAN: Storable loaded ok (v2.15)
Going to read /root/.cpan/Metadata
  Database was generated on Sat, 25 Oct 2008 22:26:52 GMT
CPAN: LWP::UserAgent loaded ok (v2.033)
CPAN: Time::HiRes loaded ok (v1.86)
Fetching with LWP:
  ftp://ftp.oleane.net/pub/CPAN/authors/01mailrc.txt.gz
CPAN: YAML loaded ok (v0.62)
Going to read /root/.cpan/sources/authors/01mailrc.txt.gz
CPAN: Compress::Zlib loaded ok (v2.004)
DONE
Fetching with LWP:
  ftp://ftp.oleane.net/pub/CPAN/modules/02packages.details.txt.gz
Going to read /root/.cpan/sources/modules/02packages.details.txt.gz
  Database was generated on Wed, 29 Oct 2008 23:26:51 GMT
..
  New CPAN.pm version (v1.9301) available.
  [Currently running version is v1.9205]
  You might want to try
install CPAN
reload cpan
  to both upgrade CPAN.pm and run the new version without leaving
  the current session.


..DONE
Fetching with LWP:
  ftp://ftp.oleane.net/pub/CPAN/modules/03modlist.data.gz
Going to read /root/.cpan/sources/modules/03modlist.data.gz
DONE
Going to write /root/.cpan/Metadata
Running install for module 'DBI'
Running make for T/TI/TIMB/DBI-1.607.tar.gz
CPAN: Digest::SHA loaded ok (v5.44)
Checksum for /root/.cpan/sources/authors/id/T/TI/TIMB/DBI-1.607.tar.gz ok
Scanning cache /root/.cpan/build for sizes
DONE
DEL(1/11): /root/.cpan/build/DBI-1.607-xgsejv
DEL(2/11): /root/.cpan/build/bioperl-db-0.1-iEyuy5
DEL(3/11): /root/.cpan/build/bioperl-db-0.1-iEyuy5.yml
DEL(4/11): /root/.cpan/build/UNIVERSAL-moniker-0.08-UTKTqK.yml
DEL(5/11): /root/.cpan/build/UNIVERSAL-moniker-0.08-UTKTqK
DEL(6/11): /root/.cpan/build/Class-Accessor-0.31-PzHSlL.yml
DEL(7/11): /root/.cpan/build/Class-Accessor-0.31-PzHSlL
DEL(8/11): /root/.cpan/build/Class-Trigger-0.13-f7xdjl.yml
DEL(9/11): /root/.cpan/build/Class-Trigger-0.13-f7xdjl
DEL(10/11): /root/.cpan/build/Clone-0.29-5Aju0A.yml
DEL(11/11): /root/.cpan/build/Clone-0.29-5Aju0A
DBI-1.607/
DBI-1.607/Changes
DBI-1.607/dbd_xsh.h
DBI-1.607/DBI.pm
DBI-1.607/DBI.xs
DBI-1.607/dbi_sql.h
DBI-1.607/dbilogstrip.PL
DBI-1.607/dbipport.h
DBI-1.607/dbiprof.PL
DBI-1.607/dbiproxy.PL
DBI-1.607/dbivport.h
DBI-1.607/DBIXS.h
DBI-1.607/dbixs_rev.h
DBI-1.607/dbixs_rev.pl
DBI-1.607/Driver.xst
DBI-1.607/Driver_xst.h
DBI-1.607/ex/
DBI-1.607/ex/perl_dbi_nulls_test.pl
DBI-1.607/ex/profile.pl
DBI-1.607/lib/
DBI-1.607/lib/Bundle/
DBI-1.607/lib/Bundle/DBI.pm
DBI-1.607/lib/DBD/
DBI-1.607/lib/DBD/DBM.pm
DBI-1.607/lib/DBD/ExampleP.pm
DBI-1.607/lib/DBD/File.pm
DBI-1.607/lib/DBD/Gofer/
DBI-1.607/lib/DBD/Gofer/Policy/
DBI-1.607/lib/DBD/Gofer/Policy/Base.pm
DBI-1.607/lib/DBD/Gofer/Policy/classic.pm
DBI-