in reply to Re^3: Installing File::LibMagic with Strawberry Perl
in thread Installing File::LibMagic with Strawberry Perl

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.

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

Replies are listed 'Best First'.
Re^5: Installing File::LibMagic with Strawberry Perl
by syphilis (Archbishop) on Jul 01, 2015 at 00:15 UTC
    ... which requires File::LibMagic

    The libmagic library does build fine for native Windows in the msys shell using Strawberry's gcc compiler.
    Install libgnurx (using same toolset) first. I used github source for both libmagic and libgnurx.

    File-LibMagic-1.12 is far from trivial to build, but I've managed to hack up a version (without messing with any of the module's perl or XS code) that allows the build to succeed.
    Unfortunately it fails the t/oo-api.t test script.
    Perhaps this is a result of my hacks, though I don't think so.
    Quite possibly it's just a poorly ported test script ... or maybe the whole module is poorly ported to Windows. (I don't know.)
    At least File-LibMagic is available to Windows - it's just a question of how serviceable it is ... and how serviceable it needs to be for Titanium.
    In view of marto's latest update, the OP might be better off just going back to CGI::Application.

    If more info is required of me, just speak up.
    I'll post ppm packages for File-LibMagic-1.12 at my ppm repo when I get them built (hopefully tonight).

    Cheers,
    Rob

      Thank you!

      If you haven't already done so, please don't trouble yourself on my account. This project was taken over by our Ruby development team.

Re^5: Installing File::LibMagic with Strawberry Perl
by marto (Cardinal) on Jun 30, 2015 at 13:26 UTC

    Many thanks for the clarification.

    Update: For clarity I don't think the wiki is saying that CGI::Applicaiton has been replaced by Titanium.