Subject: | Installation fails on OSX |
After 'brew install imlib2':
cpanm (App::cpanminus) 1.6937 on perl 5.022000 built for darwin-thread-multi-2level
Work directory is /Users/gabor/.cpanm/work/1442476668.18530
You have make /usr/bin/make
You have LWP 6.13
You have /usr/bin/tar: bsdtar 2.8.3 - libarchive 2.8.3
You have /usr/bin/unzip
Searching Image::Imlib2 on cpanmetadb ...
--> Working on Image::Imlib2
Fetching http://www.cpan.org/authors/id/L/LB/LBROCARD/Image-Imlib2-2.03.tar.gz
-> OK
Unpacking Image-Imlib2-2.03.tar.gz
Entering Image-Imlib2-2.03
Checking configure dependencies from META.yml
Checking if you have Module::Build 0.35 ... Yes (0.4212)
Checking if you have Module::Build 0.36 ... Yes (0.4212)
Configuring Image-Imlib2-2.03
Running Build.PL
Found imlib2 1.4.6
Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Image-Imlib2' version '2.03'
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have ExtUtils::CBuilder 0 ... Yes (0.280221)
Checking if you have Test::More 0.01 ... Yes (1.001014)
Checking if you have Module::Build 0.20 ... Yes (0.4212)
Building and testing Image-Imlib2-2.03
Building Image-Imlib2
cc -I./lib/Image -I/Users/gabor/perl5/perlbrew/perls/perl-5.22.0_WITH_THREADS/lib/5.22.0/darwin-thread-multi-2level/CORE -DVERSION="2.03" -DXS_VERSION="2.03" -DX_DISPLAY_MISSING -I/usr/local/Cellar/imlib2/1.4.6_1/include -c -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -O3 -o lib/Image/Imlib2.o lib/Image/Imlib2.c
In file included from lib/Image/Imlib2.xs:5:
./lib/Image/ppport.h:43:38: warning: '/*' within block comment [-Wcomment]
perl -x ppport.h *.c *.h *.xs foo/*.c [etc]
^
1 warning generated.
ExtUtils::Mkbootstrap::Mkbootstrap('blib/arch/auto/Image/Imlib2/Imlib2.bs')
env MACOSX_DEPLOYMENT_TARGET=10.3 cc -bundle -undefined dynamic_lookup -L/usr/local/lib -fstack-protector-strong -o blib/arch/auto/Image/Imlib2/Imlib2.bundle lib/Image/Imlib2.o -L/usr/local/Cellar/imlib2/1.4.6_1/lib -lImlib2 @my_libs@
clang: error: no such file or directory: '@my_libs@'
error building blib/arch/auto/Image/Imlib2/Imlib2.bundle from lib/Image/Imlib2.o at /Users/gabor/perl5/perlbrew/perls/perl-5.22.0_WITH_THREADS/lib/5.22.0/ExtUtils/CBuilder/Base.pm line 320.