Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Installing File::LibMagic with Strawberry Perl

by Corion (Patriarch)
on Jun 26, 2015 at 19:33 UTC ( [id://1132215]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1132215]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (7)
As of 2024-04-25 08:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found