ExifTool Forum

ExifTool => Developers => Topic started by: obetz on May 22, 2019, 02:08:29 AM

Title: Non-portable configuration in the Windows distribution
Post by: obetz on May 22, 2019, 02:08:29 AM
Hi Phil,

pp adds installation specific configuration files from your Perl installation: Config.pm and Config_heafy.pl contain absolute paths to C:\Perl\. (many) and C:\MinGW\i686-w64-mingw32\... (several).

I don't know much when and where these entries are used, only one:

Perl tries to run $Config{sitelib}/sitecustomize.pl at startup, that's currently  "C:\Perl\site\lib\sitecustomize.pl".

Not many users will have such a script, but it shouldn't be used by ExifTool Windows.

Oliver
Title: Re: Non-portable configuration in the Windows distribution
Post by: Phil Harvey on June 07, 2019, 07:13:47 AM
Thanks for this note.

- Phil
Title: Re: Non-portable configuration in the Windows distribution
Post by: obetz on August 11, 2019, 11:41:23 AM
Quote from: obetz on May 22, 2019, 02:08:29 AM
Perl tries to run $Config{sitelib}/sitecustomize.pl at startup, that's currently  "C:\Perl\site\lib\sitecustomize.pl".

this was wrong, ExifTool's Perl does not try to run C:\Perl\site\lib\sitecustomize.pl on startup.

https://perldoc.perl.org/perlrun.html writes: "The value of $Config{sitelib} is also determined in C code and not read from Config.pm , which is not loaded."

Sorry for the wrong information.

Oliver