Finding out whether 32 or 64 bit version is installed

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
User avatar
whugemann
Posts: 289
Joined: 2011-03-28T07:11:31-07:00
Authentication code: 8675308
Location: Münster, Germany 52°N,7.6°E

Finding out whether 32 or 64 bit version is installed

Post by whugemann »

I have asked this before in some other thread and didn't get an answer:
Is there any way to find out whether the IM version installed on an 64 bit system is 32 or 64 bit?

I often get asked about IM problems by colleagues from other cities, working with Windows batch files I wrote. It would help the diagnosis if I could get as much information as possible. A simple call with the -version option does however give no information on this, and the -verbose option does not seem to be available for -version.
Wolfgang Hugemann
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Re: Finding out whether 32 or 64 bit version is installed

Post by glennrp »

I don't know how to do it on Windows, but on Linux you could look at
the output of "ldd" to see if it gives you a hint:
  • glenn.rp> ldd /home/glennrp/im/q16/bin/q16convert
    [snip]
    /lib64/ld-linux-x86-64.so.2 (0x00007fb3c3f2f000)
    glenn.rp>

    [glennrp@studio ~]$ ldd /usr/local/bin/convert
    [snip]
    /lib/ld-linux.so.2 (0x0091c000)
    [glennrp@studio ~]$

    [glennrp@magick ~] ldd /usr/local/bin/convert
    [snip]
    libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x0000003897200000)
    [glennnrp@magick ~]
I don't know how reliable this method is, but it seems that
glenn.rp and magick have 64-bit builds and studio doesn't.

Glenn
Post Reply