LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 03-31-2004, 07:54 PM   #1
noknow
LQ Newbie
 
Registered: Mar 2004
Posts: 8

Rep: Reputation: 0
stupid q: how to determine version 64-bit or 32-bit?


Running Redhat 9 (Shrike)

I can't tell if I'm running 64-bit or 32-bit. I was not the installer.

uname -a shows:

Linux <hostname> 2.4.20-20.9smp #1 SMP Mon Aug 18 11:32:15 EDT 2003 i686 i686 i386 GNU/Linux

cat /etc/redhat-release shows:
Red Hat Linux release 9 (Shrike)

cat /proc/version shows:
Linux version 2.4.20-20.9smp (bhcompile@stripples.devel.redhat.com) (gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)) #1 SMP Mon Aug 18 11:32:15 EDT 2003
 
Old 03-31-2004, 07:58 PM   #2
vincebs
Member
 
Registered: Oct 2003
Location: Mississauga, ON
Distribution: Ubuntu 9.04
Posts: 494

Rep: Reputation: 30
I've always thought that the OS uses the same number of bits as the processor, so if you're using a 64-bit processor then your OS is 64-bit, and if you're using a 32-bit processor (like most of us), then your OS is 32-bit. Isn't it?
 
Old 03-31-2004, 07:59 PM   #3
noknow
LQ Newbie
 
Registered: Mar 2004
Posts: 8

Original Poster
Rep: Reputation: 0
dunno.

I thought you could run 32-bit on 64-bit architecture.
 
Old 03-31-2004, 08:01 PM   #4
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
Your running a 32bit symmetrical multiprocessor kernel. The give away is "i686 i686 i386" bit. If your running a 64bit system then you'd get one of the 64bit arch's.

i.e. sparc64, ia64, etc...
 
Old 03-31-2004, 08:02 PM   #5
noknow
LQ Newbie
 
Registered: Mar 2004
Posts: 8

Original Poster
Rep: Reputation: 0
that is very helpful!

Now how would you know that - isn't there a way to get a more direct response from the system??

My knowledge of solaris and aix keeps getting in the way
 
Old 03-31-2004, 08:08 PM   #6
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
uname -m

Should give you the machine that the kernel thinks its running on.
 
Old 03-31-2004, 08:12 PM   #7
noknow
LQ Newbie
 
Registered: Mar 2004
Posts: 8

Original Poster
Rep: Reputation: 0
I did uname -m as well...

it only says "i686"

All this made me want to assume that it is 32-bit...but it is not a definite answer, unless you know what you know, you know?
 
Old 03-31-2004, 08:14 PM   #8
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
i686 is definatley 32 bit.

Athlons, PentiumII, PentiumIII, Celerons, etc...

What hardware have you got?
 
Old 03-31-2004, 08:17 PM   #9
noknow
LQ Newbie
 
Registered: Mar 2004
Posts: 8

Original Poster
Rep: Reputation: 0
IBM eSeries x335 pizza box
 
Old 03-31-2004, 08:20 PM   #10
noknow
LQ Newbie
 
Registered: Mar 2004
Posts: 8

Original Poster
Rep: Reputation: 0
oh by the way...

if I do a "readelf -h" on a ELF executable and this line says:

"Class: ELF64"

Doesn't that mean it is a 64-bit executable?

And if so, the fact that it doesn't run possibly be due to the fact that I'm trying to run it on a 32-bit system?

Hmmm...gee.

Thanks a ton for your help!
 
Old 03-31-2004, 08:24 PM   #11
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
Are you sure thats not an xSeries? Intel Xeon?
 
Old 03-31-2004, 08:29 PM   #12
noknow
LQ Newbie
 
Registered: Mar 2004
Posts: 8

Original Poster
Rep: Reputation: 0
oh yeah sorry I mistyped that.

xSeries x335...
yes it is intel xeon
 
Old 03-31-2004, 08:33 PM   #13
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
Then i686 is the right type of kernel. The file should be ELF32, so you are right, that program won't run on your machine.
 
Old 03-31-2004, 09:03 PM   #14
noknow
LQ Newbie
 
Registered: Mar 2004
Posts: 8

Original Poster
Rep: Reputation: 0
Very cool.

Thanks again for your help.
 
Old 08-05-2008, 09:10 AM   #15
reine
LQ Newbie
 
Registered: Jun 2008
Location: Nantes-France
Distribution: ubuntu hardy on a HP Pavillion N5442 P3 933MHz 621.7MiB +ADSL i love debian too (deb rulez!)
Posts: 18

Rep: Reputation: 0
Smile 64 or32 in that box?

in some cases (no pun intended!), my question could be irrelevant but, why don't you open that box?, could be a nice physical and psychic experience!. Reine.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How does the 64 bit version handle interacting with 32 bit programs? purelithium Mandriva 1 11-13-2005 05:16 PM
Kinda stupid question - slackware & 64-bit processors mmarkvillanueva Slackware 14 10-26-2005 01:48 AM
Which version of 32 bit redhat will install on IBM xSeries 366 (64 bit)? Hello123 Linux - Hardware 2 09-14-2005 05:50 AM
how to determine if system is 32 bit or 64 bit? bkevind Linux - Newbie 3 03-16-2005 04:01 PM
Graphic Card that Supports displaying 8-bit and 24-bit images simultaneously yrraja Linux - Hardware 2 04-30-2003 06:41 AM


All times are GMT -5. The time now is 08:13 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration