Re: How to determine if running on a 32 or 64 bits kernel ?



On Thu, 14 Feb 2008 14:13:17 -0500 Joe Beanfish <joe@xxxxxxxxxx> wrote:

| I know much of the Linux community things everything should be
| recompiled on every system it runs on, but suppose for a moment that
| someone wants to distribute a program in binary form. A good install
| program for that package would want to check the system architecture
| and install the binary (x86, x86_64, ia64, etc...) best suited to
| the environment where it will run.

That sounds like "uname -a" or "uname -m" is what you want. You want to
select the right binary, or verify it is the best choice even when it does
run in a lesser way.

So what binary would you choose for a 64-bit kernel with a 32-bit runtime?
I think a 64-bit program will have some issues in that. You're probably
already testing the runtime environment. But if they are mixed like that,
what is your choice?

--
|---------------------------------------/----------------------------------|
| Phil Howard KA9WGN (ka9wgn.ham.org) / Do not send to the address below |
| first name lower case at ipal.net / spamtrap-2008-02-14-1610@xxxxxxxx |
|------------------------------------/-------------------------------------|
.



Relevant Pages