Subject: | Cannot find rsvg.h during installation on OSX |
Running Mkbootstrap for Image::LibRSVG ()
chmod 644 LibRSVG.bs
/Users/gabor/perl5/perlbrew/perls/perl-5.20.1_WITH_THREADS/bin/perl /Users/gabor/perl5/perlbrew/perls/perl-5.20.1_WITH_THREADS/lib/5.20.1/ExtUtils/xsubpp -typemap /Users/gabor/perl5/perlbrew/perls/perl-5.20.1_WITH_THREADS/lib/5.20.1/ExtUtils/typemap -typemap typemap LibRSVG.xs > LibRSVG.xsc && mv LibRSVG.xsc LibRSVG.c
cc -c -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -O3 -DVERSION=\"0.07\" -DXS_VERSION=\"0.07\" "-I/Users/gabor/perl5/perlbrew/perls/perl-5.20.1_WITH_THREADS/lib/5.20.1/darwin-thread-multi-2level/CORE" LibRSVG.c
In file included from LibRSVG.xs:15:
./ppport.h:227:11: warning: 'PERL_UNUSED_DECL' macro redefined
# define PERL_UNUSED_DECL
^
/Users/gabor/perl5/perlbrew/perls/perl-5.20.1_WITH_THREADS/lib/5.20.1/darwin-thread-multi-2level/CORE/perl.h:302:13: note: previous definition is here
# define PERL_UNUSED_DECL __attribute__unused__
^
LibRSVG.xs:28:10: fatal error: 'librsvg/rsvg.h' file not found
#include "librsvg/rsvg.h"
^
1 warning and 1 error generated.
make: *** [LibRSVG.o] Error 1
While it can be found at /usr/local/Cellar/librsvg/2.36.3_1//include/librsvg-2.0/librsvg/rsvg.h
after installing librsvg using
"brew install librsvg"