ExifTool Forum

ExifTool => Install Problems => Topic started by: Stan Wickham on July 12, 2019, 07:54:13 AM

Title: How to set up R 'exifr' package with Strawberry Perl (Use gmake!!!)
Post by: Stan Wickham on July 12, 2019, 07:54:13 AM
Initial setup of Perl and exiftool for use with the R 'exifr' package took many hours (reading forums) when setup should have taken minutes.

Mistakes were made when I :


How to Configure System for R exifr Using Strawberry Perl on Windows 10

I will soon find out if I can rely on the built-for-Perl, Image::ExifTool derived [exiftool on the command line and in R, or
if I will need to return 'exiftool.pl' and '\lib' to the Path. Now on to actually learning to use exiftool.
Title: Re: How to set up R 'exifr' package with Strawberry Perl (Use gmake!!!)
Post by: Phil Harvey on July 12, 2019, 07:57:58 AM
Note that it is not necessary to build ExifTool, so the entire "make" process may be skipped as long as you unpack the distribution and place "exiftool" and its "lib" directory together somewhere in the path.

- Phil
Title: Re: How to set up R 'exifr' package with Strawberry Perl (Use gmake!!!)
Post by: obetz on July 13, 2019, 04:59:18 AM
There are several issues:

The whole process described by Stan is way too complicated. You can't expect a normal user to do that!

C:\Windows is not a suitable place to install ExifTool (or any other non-Windows component). Stan: Can you tell me who suggested to use c:\windows?

Just unpacking ExifTool together with a Perl distribution doesn't need to be sufficient since it rather likely lacks Perl modules. For example, Win32::FindFile is usually not contained. And due to a long known unfixed error in the Win32::FindFile tests, installation will fail if you are in a DST time zone.

I don't know whether exifr runs with the packed exiftool.exe, otherwise this would be another candidate to use the Windows package I prepared (ExifTool with a specifically wrapped Strawberry Perl).

Oliver
Title: Re: How to set up R 'exifr' package with Strawberry Perl (Use gmake!!!)
Post by: Stan Wickham on July 15, 2019, 07:28:06 PM
Some brief followup on my initial post:

13. Failure of attempt to build the 'Image::ExifTool' module using make command.

where make returned C:\Rtools\bin\make.exe. I had a version of make, but not the version that mattered here.


An important note for R users (especially if your Perl install uses 'make.exe'):
Title: Re: How to set up R 'exifr' package with Strawberry Perl (Use gmake!!!)
Post by: Stan Wickham on July 15, 2019, 07:56:26 PM
@obetz
I followed instructions on the Install page to place 'exiftool.pl' and associated '\lib' in "C:\WINDOWS" directory (or any other directory in your PATH)".

I had initially tried a combination of Strawberry Perl and 'exiftool.exe' in "C:\WINDOWS". (The R package 'exifr' requires Perl and exiftool). I now wonder if I did something incorrectly then. I am tempted to temporarily disable


C:\Perl\Strawberry\perl\site\bin\exiftool
C:\Perl\Strawberry\perl\site\bin\exiftool.bat


which resulted from my successful gmake-based build and copy 'exiftool.exe' to "C:\RTOOLS", which is in PATH.

Does 'exiftool.exe' include all of the Optional Dependencies noted in README? I tried to install "POSIX::strptime", which failed. I later found this (https://stackoverflow.com/questions/43195604/unable-to-install-perl-cpan-module-posixstrptime/43209147), which explained the install failure and recommended 'strptime' funtionality in "Time::Piece" and other modules.
Title: Re: How to set up R 'exifr' package with Strawberry Perl (Use gmake!!!)
Post by: Phil Harvey on July 15, 2019, 09:43:09 PM
Quote from: Stan Wickham on July 15, 2019, 07:56:26 PM
Does 'exiftool.exe' include all of the Optional Dependencies noted in README?

The distributed 'exiftool(-k).exe' does. You can do "exiftool -ver -v" for details.

- Phil
Title: Re: How to set up R 'exifr' package with Strawberry Perl (Use gmake!!!)
Post by: obetz on July 16, 2019, 02:42:29 AM
Quote from: Stan Wickham on July 15, 2019, 07:56:26 PM
@obetz
I followed instructions on the Install page to place 'exiftool.pl' and associated '\lib' in "C:\WINDOWS" directory (or any other directory in your PATH)".

This part of the installation instructions should be reworded.

If a user already has a dedicated "portable stuff"directory, this might be a good place for the standalone ExifTool.exe.

Otherwise he should create a directory for exiftool.exe and add it to the path.

Quote from: Stan Wickham on July 15, 2019, 07:56:26 PM

I had initially tried a combination of Strawberry Perl and 'exiftool.exe' in "C:\WINDOWS". (The R package 'exifr' requires Perl and exiftool). I now wonder if I did something incorrectly then.

indeed: The standalone exiftool.exe contains Perl and is not intended to be used with an installed Perl.

Quote from: Stan Wickham on July 15, 2019, 07:56:26 PM
I am tempted to temporarily disable


C:\Perl\Strawberry\perl\site\bin\exiftool
C:\Perl\Strawberry\perl\site\bin\exiftool.bat


which resulted from my successful gmake-based build and copy 'exiftool.exe' to "C:\RTOOLS", which is in PATH.

Again: exiftool.exe is an alternative to an installed Perl, not a companion. And it doesn't seem to be the right thing for exifr.

I suggest to get in contact with the exifr author to ask him for better instructions.

Oliver