Perl problem during installation

Started by fakedigitalzoom, October 25, 2024, 02:38:25 PM

Previous topic - Next topic

fakedigitalzoom

I'm trying to install ExifTool by compiling from source on Mint 22. The full text of the error is below. Can anyone please help? I've compiled and installed ExifTool many times before, so I suspect the cause may be that this operating system has some new perl package the installer hasn't accounted for. In case it makes difference, I'm actually using checkinstall (I ran sudo checkinstall) rather than make install.

========================= Installation results ===========================
Manifying 1 pod document
Manifying 34 pod documents
Manifying 34 pod documents
Manifying 32 pod documents
Manifying 33 pod documents
Manifying 32 pod documents
Manifying 32 pod documents
Manifying 1 pod document
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR: Can't create '/usr/local/share/perl/5.38.2/Image'
mkdir /usr/local/share/perl: File exists at /usr/share/perl/5.38/ExtUtils/Install.pm line 470.

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 at -e line 1.
make: *** [Makefile:1586: pure_site_install] Error 17

****  Installation failed. Aborting package creation.

Cleaning up...OK

Bye.

Phil Harvey

I have no idea.  Does "Sudo make install" work?

Note that ExifTool doesn't need to be compiled.  If the make doesn't work you can just copy the files manually.

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

fakedigitalzoom

#2
Yeah, "sudo make install" did work. This is odd. ExifTool has been compatible with checkinstall for many years. I always use checkinstall where possible because it doesn't require me to keep track of the installation folder.

I see that "sudo make uninstall" allows uninstalling ExifTool. Suppose I have an older version of ExifTool that I installed with "sudo make install". Can I uninstall this old ExifTool version by downloading the latest version of ExifTool, then running "sudo make uninstall" from the newer version's extracted tar.gz folder? If I can do this I won't have to worry about saving the original installer.

Edit: I reread what you said earlier. If I'm not mistaken, you were suggesting running ExifTool directly, without even installing it using "sudo make install". I guess I could extract the folder somewhere and just add the folder to the path variable to avoid having to type out the /full/path/to/exiftool each time, but I would have to do this for each new version. Can newer uninstallers overwrite/update older versions if I just run "sudo make install" on the newer version? If so, updating would require less work.

Phil Harvey

I don't know about the uninstaller, but it should work unless it checks version numbers.

I don't know why check install should stop working but I don't think it could be due to an ExifTool change.

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