12.96 [Warning: Library version is 12.92]

Started by Alan Clifford, September 08, 2024, 06:48:32 PM

Previous topic - Next topic

Alan Clifford

I was looking at the Perl scripting error thread   https://exiftool.org/forum/index.php?topic=16447.0 but decided to update exiftool first.

I installed the .tar version as I normally do but now get

annurca:~ alan$ exiftool -ver
12.96 [Warning: Library version is 12.92]

I did install 12.92 package version to test the installation, see https://exiftool.org/forum/index.php?topic=16267.0
so maybe there is a bit of a conflict caused by the two installation methods?


Alan Clifford

Hmmm, could this be related?

annurca:temp alan$ exiftool -imagesize TheR\&AOnlineCertificateLevel1AlanClifford.jpg

Undefined subroutine Image::ExifTool::IsPC called at /usr/local/bin/lib/Image/ExifTool.pm line 5316

StarGeek

I can't help with the problem with the install, but you do have an older version still on there. That error indicates that the exiftool files that are found are versions 12.88-12.93. Newer version have the Image::ExifTool::IsPC on line 5365. Github issue where I dug into the history.

Type this Perl command
perl -e 'print "$_\n" for @INC'

This will print out all the directories, in order, that Perl goes through looking for the exiftool files. In one of the earlier directories, you'll find the version 12.92 files. They'll be in the /libs/Files and /libs/image/ subdirectories (or something like that).
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

Alan Clifford

Quote from: StarGeek on September 09, 2024, 08:30:09 PMI can't help with the problem with the install, but you do have an older version still on there. That error indicates that the exiftool files that are found are versions 12.88-12.93. Newer version have the Image::ExifTool::IsPC on line 5365. Github issue where I dug into the history.

Type this Perl command
perl -e 'print "$_\n" for @INC'

This will print out all the directories, in order, that Perl goes through looking for the exiftool files. In one of the earlier directories, you'll find the version 12.92 files. They'll be in the /libs/Files and /libs/image/ subdirectories (or something like that).


annurca:temp alan$ perl -e 'print "$_\n" for @INC'
/Library/Perl/5.34/darwin-thread-multi-2level
/Library/Perl/5.34
/Network/Library/Perl/5.34/darwin-thread-multi-2level
/Network/Library/Perl/5.34
/Library/Perl/Updates/5.34.1/darwin-thread-multi-2level
/Library/Perl/Updates/5.34.1
/System/Library/Perl/5.34/darwin-thread-multi-2level
/System/Library/Perl/5.34
/System/Library/Perl/Extras/5.34/darwin-thread-multi-2level
/System/Library/Perl/Extras/5.34



Phil Harvey

Yes.  The two installs are conflicting.  You should uninstall the old version.  It will be somewhere in your @INC directory list.

- 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 ($).

Lars E.

As my search engine lead me here when searching for
"13.03 [Warning: Library version is 11.14]"
I post my solution here.
On my Mac computer (macos) I had installed an earlier version of exiftool by using the macos installer.

Now I decided to install the latest version by using the make process as described in section https://exiftool.org/install.html#Unix resulting in problems with the error message

Undefined subroutine Image::ExifTool::IsPC called at /usr/local/bin/lib/Image/ExifTool.pm line 4292

exiftool -ver resulted in
"13.03 [Warning: Library version is 11.14]"

Solution (after trying the hints given here, witout success) was found on the website, at https://exiftool.org/install.html#MacOS

QuoteNotes:
Both MacOS installation techniques outlined above place exiftool and its lib directory in /usr/local/bin, while the standard Unix "make install" described below puts "exiftool" in /usr/local/bin and the individual libraries in /Library/Perl/#.#.#, where "#.#.#" is your Perl version. If both sets of libraries exist, /usr/local/bin/lib takes precedence for exiftool, but /Library/Perl/#.#.# is the default for any other Perl scripts.

Renaming /usr/local/bin/lib solved the problem with the outdated library:
sudo mv /usr/local/bin/lib lib_2018_exiftool


NB: My fist post, my apologies if this post would be considered off-topic here.