[ncl-install] Status of NCL under MacOS 10.6 (64-bit)
Daniel Packman
pack at ucar.edu
Fri Nov 13 10:45:08 MST 2009
On Nov 13, 2009, at Nov 13 9:42 AM, Mary Haley wrote:
> You can run "file" on any one of the *.o or executable files, and it
> will say something like this if it is 32-bit:
>
> file error.o
> error.o: Mach-O object i386
>
> and something like this if it is 64-bit:
>
> sheridan[362] file error.o
> error.o: Mach-O 64-bit object x86_64
>
> This doesn't seem to work for the library archive, the "libxxxx.a"
> file.
For a regular archive library (libfoo.a), you can extract an object file
from it:
ar t libfoo.a # to list the contents of the file
ar x libfoo.a bar.o # to extract the object file bar.o
file bar.o # to find the arch of the object
Shared object libraries (libfoo.so) should reveal their
architecture directly from the file command.
More information about the ncl-install
mailing list