View previous topic :: View next topic |
Author |
Message |
unplug n00b
Joined: 28 Jul 2004 Posts: 19
|
Posted: Fri Sep 03, 2004 7:18 am Post subject: How do I know I am running 64 instead of 32 |
|
|
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 |
|
|
doerrfleischfee n00b
Joined: 11 Sep 2002 Posts: 27 Location: Bayreuth, Germany
|
Posted: Fri Sep 03, 2004 8:01 am Post subject: |
|
|
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 |
|
|
Config Retired Dev
Joined: 25 May 2003 Posts: 187 Location: Zurich, Switzerland
|
Posted: Fri Sep 03, 2004 9:55 am Post subject: |
|
|
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 |
|
|
Tsonn Guru
Joined: 03 Jun 2004 Posts: 550
|
Posted: Fri Sep 03, 2004 11:02 am Post subject: |
|
|
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 |
|
|
|
|
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
|
|