Subject: | Does not install on OS X |
The problem is that OS X (darwin) has a libarchive.dylib, but no archive.h in /usr/include (or anywhere else that I can find). One solution to this would be to use Alien::Libarchive, which has solved this problem (and other issues on other platforms). I've created a PR here which should make it easy to make this change:
https://github.com/acme/archive-peek-libarchive/pull/2
Building Archive-Peek-Libarchive
cc -I/Users/ollisg/opt/perl/5.23.1/lib/5.23.1/darwin-2level/CORE -DVERSION="0.37" -DXS_VERSION="0.37" -c -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector-strong -O3 -o lib/Archive/Peek/Libarchive.o lib/Archive/Peek/Libarchive.c
lib/Archive/Peek/Libarchive.xs:4:10: fatal error: 'archive.h' file not found
#include <archive.h>
^
1 error generated.
error building lib/Archive/Peek/Libarchive.o from 'lib/Archive/Peek/Libarchive.c' at /Users/ollisg/opt/perl/5.23.1/lib/5.23.1/ExtUtils/CBuilder/Base.pm line 173.