Build Error: File-LibMagic 1.22 for Perl 5.36.0 on Windows

Looking for help with this package that is failing to build in my project.

Runtime Details

  • ActiveState
  • Language - perl 5.36.0
  • Platform - Windows

Failing Packages

  • File-LibMagic 1.22

Downloading builder for 8aca0516-83b0-51f6-846d-c175076eebea from s3://platform-sources/builder/39c7454640cd5753245694bd4ba512fe8a039934e4ad100d202747a71c4ca7ae/perl-module-builder.tar.gz
Downloading s3://platform-sources/builder/39c7454640cd5753245694bd4ba512fe8a039934e4ad100d202747a71c4ca7ae/perl-module-builder.tar.gz to C:\Users\ContainerAdministrator\AppData\Local\Temp\perl-module-builder.tar.gz…
Validating C:\Users\ContainerAdministrator\AppData\Local\Temp\perl-module-builder.tar.gz against checksum 39c7454640cd5753245694bd4ba512fe8a039934e4ad100d202747a71c4ca7ae…
Builder downloaded and unpacked.
Downloading ingredient 8aca0516-83b0-51f6-846d-c175076eebea from s3://platform-sources/data-acquisition/93639bd076849e93a020fea1507f0a2b3467b8792eb5c306f2aacbbfb4d080d6/File-LibMagic-1.22.tar.gz
Downloading s3://platform-sources/data-acquisition/93639bd076849e93a020fea1507f0a2b3467b8792eb5c306f2aacbbfb4d080d6/File-LibMagic-1.22.tar.gz to C:\Users\ContainerAdministrator\AppData\Local\Temp\File-LibMagic-1.22.tar.gz…
Validating C:\Users\ContainerAdministrator\AppData\Local\Temp\File-LibMagic-1.22.tar.gz against checksum 93639bd076849e93a020fea1507f0a2b3467b8792eb5c306f2aacbbfb4d080d6…
Sources downloaded and unpacked.
No patches required, skipping patching…
Patching handled.
Unpacking dependency @s3://as-builds/production/language/perl/Capture-Tiny/0.48/3/8c8b8ea6-8cd6-5fa6-afb0-4de7e84ab7e5/artifact.tar.gz
Downloading s3://as-builds/production/language/perl/Capture-Tiny/0.48/3/8c8b8ea6-8cd6-5fa6-afb0-4de7e84ab7e5/artifact.tar.gz to C:\cache\8c8b8ea6-8cd6-5fa6-afb0-4de7e84ab7e5\artifact.tar.gz…
Unpacking dependency @s3://as-builds/production/language/perl/Config-AutoConf/0.320/2/f9b9ca18-87b0-55ba-887a-9d28323fbe98/artifact.tar.gz
Downloading s3://as-builds/production/language/perl/Config-AutoConf/0.320/2/f9b9ca18-87b0-55ba-887a-9d28323fbe98/artifact.tar.gz to C:\cache\f9b9ca18-87b0-55ba-887a-9d28323fbe98\artifact.tar.gz…
Unpacking dependency @s3://as-builds/production/language/perl/5.36.0/1/87dd0071-b92b-51ce-90be-d2fc872d484a/artifact.tar.gz
Downloading s3://as-builds/production/language/perl/5.36.0/1/87dd0071-b92b-51ce-90be-d2fc872d484a/artifact.tar.gz to C:\cache\87dd0071-b92b-51ce-90be-d2fc872d484a\artifact.tar.gz…
replacing C:\builds\outputs\87dd0071-b92b-51ce-90be-d2fc872d484a\installdir with C:\builds\deps\8aca0516-83b0-51f6-846d-c175076eebea\installdir in files
lib/Config_heavy.pl
replacing C:\builds\outputs\87dd0071-b92b-51ce-90be-d2fc872d484a\installdir with C:\builds\deps\8aca0516-83b0-51f6-846d-c175076eebea\installdir in files
lib/Config.pm
lib/CORE/config.h
Unpacking dependency @s3://platform-sources/builder/0ee8a5897091a69f647422a6f42289bc7042e228da4c601d59bbd8068cca6e8f/perl-module-lib.tar.gz
Downloading s3://platform-sources/builder/0ee8a5897091a69f647422a6f42289bc7042e228da4c601d59bbd8068cca6e8f/perl-module-lib.tar.gz to C:\cache\44fb7197-3bdf-5a67-ae9e-c17efbba6b05\perl-module-lib.tar.gz…
Dependencies downloaded and unpacked.
Executing builder command C:\builds\builders\8aca0516-83b0-51f6-846d-c175076eebea\build.bat
Building in C:\builds\sources\8aca0516-83b0-51f6-846d-c175076eebea\File-LibMagic-1.22
Running [perl Makefile.PL PREFIX=C:\builds\outputs\8aca0516-83b0-51f6-846d-c175076eebea\installdir\site]…

This module requires the libmagic.so library and magic.h header. See

INSTALL.md for more details on installing these.

perl Makefile.PL PREFIX=C:\builds\outputs\8aca0516-83b0-51f6-846d-c175076eebea\installdir\site failed: ‘perl Makefile.PL PREFIX=C:\builds\outputs\8aca0516-83b0-51f6-846d-c175076eebea\installdir\site’ exited with value 1 at C:\builds\builder-deps\8aca0516-83b0-51f6-846d-c175076eebea\installdir/lib/ActiveState/ModuleBuilder.pm line 447.
Checking for magic.h… Checking for cc… gcc

no

Build complete.
Archiving output…
No files were produced as a result of this build.
Uploading CHECKSUM → s3://as-builds/production/language/perl/File-LibMagic/1.22/4/8aca0516-83b0-51f6-846d-c175076eebea/CHECKSUM
Uploading artifact.tar.gz → s3://as-builds/production/language/perl/File-LibMagic/1.22/4/8aca0516-83b0-51f6-846d-c175076eebea/artifact.tar.gz
Uploading C:\builds\meta\8aca0516-83b0-51f6-846d-c175076eebea\exitcode → s3://as-builds/production/language/perl/File-LibMagic/1.22/4/8aca0516-83b0-51f6-846d-c175076eebea/exitcode

It looks like we’ll have to start building the “magic” c library. I will put this in our backlog of packages we would like to support, it may be a while depending on how difficult the c library is to build. We will reply on this thread when the update is complete.