Subject: | File::LibMagic doesn't build on Ubuntu 14.04LTS |
Date: | Wed, 17 Dec 2014 19:40:32 +0000 |
To: | "bug-File-LibMagic [...] rt.cpan.org" <bug-File-LibMagic [...] rt.cpan.org> |
From: | "Peterson, Nick" <nrpeter [...] sandia.gov> |
?I created a new Ubuntu 14.04LTS VM, installed cpanm (issue also happens with cpan).
Verifying we've got libmagic-dev installed as the docs say
root@ubuntu:/tmp# apt-get install libmagic-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libmagic-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 33 not upgraded.
Try to install File::LibMagic
root@ubuntu:/tmp# cpanm install File::LibMagic
install is up to date. (0.01)
--> Working on File::LibMagic
Fetching http://www.cpan.org/authors/id/D/DR/DROLSKY/File-LibMagic-1.07.tar.gz ... OK
Configuring File-LibMagic-1.07 ... OK
Building and testing File-LibMagic-1.07 ... FAIL
! Installing File::LibMagic failed. See /root/.cpanm/work/1418845000.8569/build.log for details. Retry with --force to force install it.
Contents of build.log
cpanm (App::cpanminus) 1.7001 on perl 5.018002 built for x86_64-linux-gnu-thread-multi
Work directory is /root/.cpanm/work/1418845000.8569
You have make /usr/bin/make
You have LWP 6.05
You have /bin/tar: tar (GNU tar) 1.27.1
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by John Gilmore and Jay Fenlason.
Searching install on cpanmetadb ...
install is up to date. (0.01)
Searching File::LibMagic on cpanmetadb ...
--> Working on File::LibMagic
Fetching http://www.cpan.org/authors/id/D/DR/DROLSKY/File-LibMagic-1.07.tar.gz
-> OK
Unpacking File-LibMagic-1.07.tar.gz
Entering File-LibMagic-1.07
Checking configure dependencies from META.json
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.66)
Configuring File-LibMagic-1.07
Running Makefile.PL
Checking for magic.h... yes
Checking for magic_open in -lmagic... yes
Checking for magic_version in -lmagic... WARNING: OBJECT takes a string/number not a ARRAY reference.
Please inform the author.
yes
Checking if your kit is complete...
Looks good
Writing Makefile for File::LibMagic
Writing MYMETA.yml and MYMETA.json
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have strict 0 ... Yes (1.07)
Checking if you have warnings 0 ... Yes (1.18)
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.66)
Checking if you have IPC::Open3 0 ... Yes (1.13)
Checking if you have XSLoader 0 ... Yes (0.16)
Checking if you have Exporter 0 ... Yes (5.68)
Checking if you have Test::More 0.88 ... Yes (1.001009)
Checking if you have lib 0 ... Yes (0.63)
Checking if you have File::Spec 0 ... Yes (3.40)
Checking if you have base 0 ... Yes (2.18)
Checking if you have Carp 0 ... Yes (1.29)
Checking if you have IO::Handle 0 ... Yes (1.34)
Building and testing File-LibMagic-1.07
cp lib/File/LibMagic.xs blib/lib/File/LibMagic.xs
cp lib/File/typemap blib/lib/File/typemap
cp lib/File/LibMagic.pm blib/lib/File/LibMagic.pm
Running Mkbootstrap for File::LibMagic ()
chmod 644 LibMagic.bs
rm -f blib/arch/auto/File/LibMagic/LibMagic.so
cc -shared -L/usr/local/lib -fstack-protector LibMagic.o -o blib/arch/auto/File/LibMagic/LibMagic.so \
-lmagic \
cc: error: LibMagic.o: No such file or directory
make: *** [blib/arch/auto/File/LibMagic/LibMagic.so] Error 1
-> FAIL Installing File::LibMagic failed. See /root/.cpanm/work/1418845000.8569/build.log for details. Retry with --force to force install it.