Issues w/ home brew

Started by RexBlock, December 13, 2024, 03:06:05 PM

Previous topic - Next topic

RexBlock

Home brew (the MacOS package manager) has some issues with picking up the wrong version of exiftool.

I recently upgraded to Sequoia and rebuilt all of my home-brew packages, including exiftool, and when I came around to running exiftool, I got --

/opt/homebrew/bin/exiftool: /usr/bin/perl5.30: bad interpreter: No such file or directory
I uninstalled exiftool and reinstalled it, and got the same thing. Checking the executable, I see the shebang is coded as

#!/usr/bin/perl5.30
which is odd, since perl 5.30 hasn't been current for several years (version history here). Also, coding a specific version of perl or anything in the shebang is very bad practice unless there are some specific reasons that specific version is required.

I edited the file to

#!/usr/bin/perl
and it ran fine. I took a look at the exiftool tar ball provided here and it specifies

#!/usr/bin/env perl
which is much more reasonable. Obviously this is a problem for the home brew team and the maintainers of the exiftool page over there. My only intent is to raise awareness of it here. And also to ask if there is any specific reason I should be using perl 5.30.

Thanks!

Phil Harvey

ExifTool is fine with any version of Perl 5.004 or later.  I don't know why brew should be tampering with the shebang.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

exif-homebrew-whatever

Same issue here,

Reinstalling/Upgrading showed that I had 12.6 installed
Upgrading exiftool
  12.60 -> 13.10

Issue no longer occurs, I also noticed that the shebang in `/opt/homebrew/bin/exiftool` changed from `#!/usr/bin/perl5.30` to `#!/usr/bin/perl5.34`