http://qs1969.pair.com?node_id=658649


in reply to Compiling perl on 64 bit system

Last time I compiled Perl for a 64 bit machine I had real problems that arose from the fact I initially tried to build a 64bit version with a 32 bit version of gcc. Are you sure that the files created by your gcc are 64bit?

I tested by creating hello.c, compiling it and runing the file command on the result.

I found that having a 64 bit version of gcc which created 64bit executables by default made all the issues go away.

Replies are listed 'Best First'.
Re^2: Compiling perl on 64 bit system
by rlb3 (Deacon) on Dec 31, 2007 at 17:37 UTC

    Sorry I was out on vacation last week...

    This is what I get after running file on a test binary:

    test: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU +/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2. +6.9, not stripped