----- Original Message ----- From: "Andrew DeFaria" <andrew.defa...@tellabs.com>
To: <inline@perl.org>
Sent: Friday, May 27, 2011 7:39 AM
Subject: Inlining 64 bit Perl -> 32 bit libs


(Excuse me if I posted this already - I thought I did but I don't see it here).

Me, too.

I'm using Inline::C to link to static libraries. Some of these libraries are built as 32 bit but our test machines are 64 bit (CentOS VMs actually) and thus the Perl installed there is 64 bit by nature. I've tried installing perl.i386 and it says it installed but /usr/bin/perl still is 64 bit.

Could it have been put into /usr/local/bin (or even somewhere else altogether) instead ?

As is hinted to from http://www.perlmonks.org/?node_id=597448 do I have to build a 32 bit version of Perl for this 64 bit machine by hand or is there a way for 64 bit Perl and Inline::C to play nice and load 32 bit static libs?

I'm sure anything is possible but, afaik, the only practical way of having Perl/Inline::C use 32-bit static libs is to use a 32-bit build of perl with a 32-bit compiler (preferably the 32-bit compiler that built that 32-bit perl).

Cheers,
Rob


Reply via email to