[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /emul /lib32 /lib64



On Fri, Jun 30, 2006 at 01:31:16PM +0100, nx13441a wrote:
> In office i have a box dual xeon 64 bits 
> (linux-image-2.6.17-1-em64t-p4-smp) and another box pentium 4 D 64 bits 
> (linux-image-2.6.17-1-em64t-p4).
> The dual xeon is a base Debian Sid system with sendmail and the p4d have 
> x, gnome, kde, etc (Debian Sid).
> In both i use the amd64 net-inst etch cd, and then upgrade to Sid.
> Why in the p4d i have /emul /lib32 and /lib64?
> I think with the /emul and /lib32 i can run 32bits software, so i try this:
> 
> #include <iostream>
> using namespace std;
> int main() {
>        cout << "32 bits cout test\n";
>        return 0;
> }
> 
> But the binary created in one 32bits box don't run in both 64bits boxes.
> 
> Some ligth here please.
> Thanks in advance.

To run a 32bit program, you need the required libraries.  'ldd program'
should tell you if there are some it can't find.  I suspect you may not
have the 32bit libstdc++ installed.

Len Sorensen



Reply to: