ExifTool Forum

ExifTool => Install Problems => Topic started by: Hangman on July 24, 2024, 09:40:03 AM

Title: ExifTool Installation on M3 Mac
Post by: Hangman on July 24, 2024, 09:40:03 AM
I had no issues installing and running ExifTool on an Intel Mac but having just tried to install it on an M3 Mac it won't run...

I downloaded the Full Perl Package and followed these instructions:

Full Perl Distribution

    Download the Image-ExifTool distribution from the ExifTool home page to your Desktop.
    (The file you download should be named "Image-ExifTool-12.89.tar.gz".)
    Launch the Terminal application from the Utilities folder in your Applications folder.
    In the Terminal window, type the following:

        cd ~/Desktop
        tar -xzf Image-ExifTool-12.89.tar.gz
        cd Image-ExifTool-12.89
        sudo cp -r exiftool lib /usr/local/bin

    (Note: The last step above will require you to enter your password.)

You can now run exiftool by typing "exiftool" in a Terminal window.

My Password was requested during the last step and accepted but if I type exiftool in a terminal window I just get:

zsh: command not found: exiftool
Are there some other steps I need to follow?
Title: Re: ExifTool Installation on M3 Mac
Post by: Phil Harvey on July 24, 2024, 09:49:41 AM
The Mac version uses a flat package as of version 12.88.  Did older versions work for you?

- Phil

Edit: Also...

1. Did the package install say it was successful?

2. After the install, does /usr/local/bin/exiftool exist?

3. Can you run "perl" from the command line?

Are there any other M3 Mac users out there that can test this?


An idea:  Did you run zsh before the install?  If so, you would need to either type "rehash" or to open an new zsh after installing exiftool or else the shell won't find it.
Title: Re: ExifTool Installation on M3 Mac
Post by: Hangman on July 24, 2024, 12:04:09 PM
Hi Phil,

Thanks for your reply...

What is meant by a 'flat package'?

I previously ran ExifTool on an Intel Mac under Monterey and had no issues installing or running it. I've since updated to an M3 Mac running Sonoma which is where I'm having the problem...

1. Did the package install say it was successful? - No

2. After the install, does /usr/local/bin/exiftool exist? - No

3. Can you run "perl" from the command line? - If I type 'perl -v' I see the following:

"This is perl 5, version 34, subversion 1 (v5.34.1) built for darwin-thread-multi-2level
(with 2 registered patches, see perl -V for more detail)"

4. Did you run zsh before the install? - No, just followed the installation instructions

Many thanks

Title: Re: ExifTool Installation on M3 Mac
Post by: Phil Harvey on July 24, 2024, 03:05:07 PM
OK.  So the install failed for some reason. :(  This will be difficult for me to debug since I don't have an M3 Mac or Sonoma.

The older style hierarchical package used up to ExifTool 12.87 apparently is no longer supported by MacOS Sequoia (see this topic (https://exiftool.org/forum/index.php?topic=16166.0)), but should be supported by Sonoma.  Try this 12.87 package (https://exiftool.org/ExifTool-12.87.dmg) to see if it works for you.

- Phil
Title: Re: ExifTool Installation on M3 Mac
Post by: Hangman on July 25, 2024, 03:37:04 AM
Thanks Phil,

The Package install worked without issue so I'm back up and running again...

Many thanks for your help as always...
Title: Re: ExifTool Installation on M3 Mac
Post by: Phil Harvey on July 25, 2024, 05:52:15 AM
Which package install?  What changed?

- Phil
Title: Re: ExifTool Installation on M3 Mac
Post by: Alan Clifford on July 27, 2024, 03:21:51 PM
Quote from: Phil Harvey on July 24, 2024, 03:05:07 PMOK.  So the install failed for some reason. :(  This will be difficult for me to debug since I don't have an M3 Mac or Sonoma.

I recently got an m3 with sonoma if you want me to try stuff.
Title: Re: ExifTool Installation on M3 Mac
Post by: Phil Harvey on July 27, 2024, 07:12:06 PM
@Alan:  Great.  Try installing the 12.92 MacOS package version (https://exiftool.org/ExifTool-12.92.pkg).  It will complain about an unidentified developer, but running this command first should bypass this:

xattr -d com.apple.quarantine ExifTool-12.92.pkg

(as mentioned in the MacOS install instructions (https://exiftool.org/install.html#MacOS)).

After the install, open a Terminal window and run exiftool -ver

If this works and returns "12.92", great.  If it doesn't, please report any install warnings or messages you might have received.

- Phil
Title: Re: ExifTool Installation on M3 Mac
Post by: Alan Clifford on July 28, 2024, 09:26:19 AM
annurca:~ alan$ exiftool -ver
12.92

Title: Re: ExifTool Installation on M3 Mac
Post by: Phil Harvey on July 28, 2024, 12:42:30 PM
That is a relief, thanks.  I'm guessing that Hangman's problem was associated with the Apple quarantine then.

- Phil
Title: Re: ExifTool Installation on M3 Mac
Post by: Alan Clifford on July 28, 2024, 01:58:52 PM
Quote from: Phil Harvey on July 28, 2024, 12:42:30 PMThat is a relief, thanks.  I'm guessing that Hangman's problem was associated with the Apple quarantine then.

- Phil

Couple of observations about xattr -d com.apple.quarantine ExifTool-12.92.pkg

I wasn't sure whether I'd need to be root for that but I tried without.

I assumed I was just passing the name to xattr but it needed to find the file.  I just changed to the directory where I'd stored ExifTool-12.92.pkg (I should have read about xattr first!).

Title: Re: ExifTool Installation on M3 Mac
Post by: wywh on July 28, 2024, 02:36:12 PM
Is the old exiftool .dmg disk image and its mounted .pkg and the new 12.92 .pkg installer the same as the '"flat" package'?

I have used that .dmg and recommended it to other newbies as well. The new 12.92 .pkg works OK in Sonoma 14.5 after the usual ctrl-click > Open (to bypass the security check for applications that haven't a bought a certificate from Apple).

- Matti
Title: Re: ExifTool Installation on M3 Mac
Post by: Phil Harvey on July 28, 2024, 08:08:20 PM
Thanks for the feedback.

The old hierarchical PKG used by 12.87 and earlier was actually a directory containing files, so it was put in a DMG so it could be downloaded as a single file.  The flat PKG used by 12.88 and later is a single file, so the DMG container isn't necessary.

The hierarchical PKG format apparently isn't supported by Sequoia.

- Phil