in reply to Installing File::LibMagic with Strawberry Perl

You will need to compile the libraries for your system. This is mostly a C task, and if you have no experience compiling C libraries, this will be some learning experience for you. As the build scripts seem to be built using autoconf, there is little hope of getting the automatism to work on Windows, so you will have to do the configuration and compilation yourself, manually.

After you've successfully configured and compiled the library, you then have to point the Makefile.PL in File::LibMagic to the headers of the library and that should be it.

Personally, I would look at other libraries that determine the magic type of files, for example File::MimeInfo::Magic or File::MMagic.

  • Comment on Re: Installing File::LibMagic with Strawberry Perl

Replies are listed 'Best First'.
Re^2: Installing File::LibMagic with Strawberry Perl
by jbodoni (Monk) on Jun 29, 2015 at 14:52 UTC

    Thanks for your reply!

    CGI::Application relies on this module, which started me down this rabbit hole.

      I'm pretty sure it doesn't, can you point me to where you're seeing this please?

      Update: It doesn't.

        I beg your pardon for my confusion, I've been installing things left and right in an attempt to get this working.

        Having read in the cgi-app wiki that CGI::Application has been replaced by Titanium, I was trying to install Titanium - which requires File::LibMagic:

        Titanium requires CGI-Application-Server, which requires HTTP::Server::Simple::Static, which requires File::LibMagic.