I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2010-10-14 05:31:42.914801-07 by peet
Compiling 32 bit binary on 64 bit Linux
Hi there,

I have forgotten that there are still 32bit systems out there. My client is running a 32bit linux version and I compile on 64 bit Centos. Is it possible to compile a 32bit version for them on the 64bit Centos pc?

When I file the compiled binary:

file mybinary
mybinary: 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, stripped

When they try to execute it:

./mybinary
-bash: ./mybinary: cannot execute binary file


uname -rm
2.6.18-92.el5PAE i686

Thanks,
Peet
Direct Responses: 12997 | 13007 | Write a response
Posted on 2010-10-14 06:03:22.503607-07 by roderich in response to 12996
Re: Compiling 32 bit binary on 64 bit Linux

In theory you should be able to build for 32bit on a 64bit machine, but it takes a lot of setup :)


Your best bet is setting up a 32bit chroot environment on your machine and install all build tools (gcc, binutils, make etc) there. Also install Perl and all modules you need for you application (and all their build dependencies). Finally install PAR and PAR::Packer and pack your script in this environment.


In place of a 32bit chroot you could also use a 32bit VM - choose what you are already more familiar with. But all of this is about the same amount of work as setting up a real 32bit machine.

Direct Responses: 12998 | 13006 | Write a response
Posted on 2010-10-14 07:09:46.401334-07 by peet in response to 12997
Re: Compiling 32 bit binary on 64 bit Linux
Thank you Roderich, I was hoping for less work, but here we go :)
Direct Responses: 13005 | Write a response
Posted on 2010-10-16 08:40:31.876837-07 by onlinekl in response to 12998
Re: Compiling 32 bit binary on 64 bit Linux
Direct Responses: Write a response
Posted on 2010-10-16 08:41:59.670528-07 by onlinekl in response to 12997
Re: Compiling 32 bit binary on 64 bit Linux
Direct Responses: Write a response
Posted on 2010-10-16 08:43:29.360521-07 by onlinekl in response to 12996
Re: Compiling 32 bit binary on 64 bit Linux
Direct Responses: 13101 | Write a response
Posted on 2010-12-08 07:22:00.385037-08 by nhljersey in response to 13007
Re: Compiling 32 bit binary on 64 bit Linux

Wonderful-again.com is one of the largest NBA,MLB,NHL and NFL.cycling jersey providers in the CHINA. and she focused on providing excellent customer service and delivering high quality products to sports fans everywhere in the world. we have the hotted products including NHL Jersey and NBA Jersey !

herve leger sale
Direct Responses: 13322 | Write a response
Posted on 2011-04-28 02:43:47.121423-07 by nhljersey in response to 13101
Re: Compiling 32 bit binary on 64 bit Linux
Here at Smart Smoker we offer a healthier alternative to smoking: the electronic cigarette. If you've been looking for a way to stayhealthier, and smokein public places without breaking the law (due to the smoking ban) then look no further.
Direct Responses: Write a response