Subject: | cannot build on stock Fedora 21 |
Date: | Sat, 3 Oct 2015 03:14:32 -0500 |
To: | bug-File-LibMagic [...] rt.cpan.org |
From: | Trevor Cordes <trevor [...] tecnopolis.ca> |
I cannot build File::LibMagic v1.15 on my fairly stock Fedora 21 systems
(32 or 64 bit).
in cpan:
Checking for magic.h... no
This module requires the libmagic.so library and magic.h header. See
INSTALL.md for more details on installing these.
Manually:
perl Makefile.PL
Checking for magic.h... no
This module requires the libmagic.so library and magic.h header. See
perl Makefile.PL --include /usr/include/linux
Checking for magic.h... yes
Checking for magic_open in -lmagic... no
This module requires the libmagic.so library and magic.h header. See
perl Makefile.PL --lib /usr/lib --include /usr/include/linux
Checking for magic.h... yes
Checking for magic_open in -lmagic... no
This module requires the libmagic.so library and magic.h header. See
find /usr/lib | grep libmagic
/usr/lib/libmagic.so.1.0.0
/usr/lib/libmagic.so.1
strings /usr/lib/libmagic.so.1.0.0 |grep magic_open
magic_open
As you can see, I have the .h and .so files installed from stock Fedora 21
packages. And the library has the required function.
I have no idea how to make it "see" what it is looking for.
It would be really nice if this module would compile out of the box on
popular linux distros.
This bug might be same/similar to 85095, but that one seems stalled.
File-LibMagic-1.15.tar.gz
#perl --version
This is perl 5, version 18, subversion 4 (v5.18.4) built for
i386-linux-thread-multi
Linux 4.1.6-100.fc21.i686+PAE #1 SMP Mon Aug 17 22:43:44 UTC 2015 i686 i686 i386 GNU/Linux
Thanks!