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

Re: dumb question about installing project looking glass in amd64....



On Friday 30 May 2008, Michael Fothergill wrote:

> what would be a simple command I could run to check whether it was the
> amd64 deb files that were installed rather than the i386 ones?

1.  Run file on one of the binary files it installed, and see whether it 
says "32-bit" or "64-bit".

Trivial example (using /bin/cat, which is installed everywhere):

64_bit_box $ file /bin/cat
/bin/cat: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), for GNU/Linux 
2.6.8, dynamically linked (uses shared libs), stripped
32_bit_box $ file /bin/cat
/bin/cat: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for 
GNU/Linux 2.2.0, dynamically linked (uses shared libs), stripped

2. Run ldd on one of the binary files it installed, and count the hex digits.

64_bit_box $ ldd /bin/cat
        linux-vdso.so.1 =>  (0x00007fff357fe000)
        libc.so.6 => /lib/libc.so.6 (0x00002acd75500000)
        /lib64/ld-linux-x86-64.so.2 (0x00002acd752e4000)
32_bit_box $ ldd /bin/cat
  libc.so.6 => /lib/libc.so.6 (0x4001c000)
  /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

On the 64-bit box we see 16 digits.  On the 32-bit box, only 8 digits.  If you 
get a "not found" anywhere, that could well be your problem.

If you haven't actually installed it, run ar -x on the .deb file, unpack the 
data.tar.gz that gets created, and look in the "bin" folder that gets created 
for the files in question.

-- 
AJS


Reply to: