ExifTool Forum

ExifTool => Install Problems => Topic started by: Alan Clifford on September 08, 2024, 06:48:32 PM

Title: 12.96 [Warning: Library version is 12.92]
Post by: Alan Clifford on September 08, 2024, 06:48:32 PM
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?

Title: Re: 12.96 [Warning: Library version is 12.92]
Post by: Alan Clifford on September 09, 2024, 07:16:21 PM
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
Title: Re: 12.96 [Warning: Library version is 12.92]
Post by: StarGeek on September 09, 2024, 08:30:09 PM
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 (https://github.com/exiftool/exiftool/issues/277#issuecomment-2334074785) 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).
Title: Re: 12.96 [Warning: Library version is 12.92]
Post by: Alan Clifford on September 11, 2024, 02:59:14 PM
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 (https://github.com/exiftool/exiftool/issues/277#issuecomment-2334074785) 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


Title: Re: 12.96 [Warning: Library version is 12.92]
Post by: Phil Harvey on September 14, 2024, 10:11:30 AM
Yes.  The two installs are conflicting.  You should uninstall the old version.  It will be somewhere in your @INC directory list.

- Phil
Title: Re: 12.96 [Warning: Library version is 12.92]
Post by: Lars E. on November 23, 2024, 12:11:30 AM
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 (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 (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.