Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How do I know I am running 64 instead of 32
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
unplug
n00b
n00b


Joined: 28 Jul 2004
Posts: 19

PostPosted: Fri Sep 03, 2004 7:18 am    Post subject: How do I know I am running 64 instead of 32 Reply with quote

I have:
CHOST="x86_64-pc-linux_gnu"
in /etc/make.conf
How do I know the vi packages are running in amd64 when I use "emerge vi" (for example)
Back to top
View user's profile Send private message
doerrfleischfee
n00b
n00b


Joined: 11 Sep 2002
Posts: 27
Location: Bayreuth, Germany

PostPosted: Fri Sep 03, 2004 8:01 am    Post subject: Reply with quote

try
Code:

$ file /usr/bin/vim
/usr/bin/vim: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.4.0, dynamically linked (uses shared libs), stripped

:)
Back to top
View user's profile Send private message
Config
Retired Dev
Retired Dev


Joined: 25 May 2003
Posts: 187
Location: Zurich, Switzerland

PostPosted: Fri Sep 03, 2004 9:55 am    Post subject: Reply with quote

Hmm... that's not the best way.... try uname, which tells you what you're running _now_:
Code:
uname -a
Linux Metis 2.6.7-gentoo-r7 #2 Fri Jul 2 18:42:33 CEST 2004 x86_64 AMD Athlon(tm) 64 Processor 3000+ AuthenticAMD GNU/Linux


Edit... A little more easy: uname -m ;)
_________________
Config - caught by a chronic disease called tuxmania....
Back to top
View user's profile Send private message
Tsonn
Guru
Guru


Joined: 03 Jun 2004
Posts: 550

PostPosted: Fri Sep 03, 2004 11:02 am    Post subject: Reply with quote

But you can be running a 64-bit kernel and still run 32-bit applications:

Code:

uname -m
x86_64

file /usr/bin/emacs
/usr/bin/emacs: sticky ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.4.0, dynamically linked (uses shared libs), stripped

file /opt/opera/lib/opera/7.54-20040803.1/opera
/opt/opera/lib/opera/7.54-20040803.1/opera: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.0.0, dynamically linked (uses shared libs), stripped


That said, anything you compile using emerge will be compiled 64-bit; only binary packages or compiles done using -m32 will be 32-bit.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum