Subject: | Can't install on OS X 10.10.5: ld: library not found for -lgcc_s.10.4 |
OS X 10.10.5
perl 5.22.0
cpanm Mac::SystemDirectory
$ cpanm Mac::SystemDirectory
--> Working on Mac::SystemDirectory
Fetching http://www.cpan.org/authors/id/C/CH/CHANSEN/Mac-SystemDirectory-0.06.tar.gz ... OK
Configuring Mac-SystemDirectory-0.06 ... OK
Building and testing Mac-SystemDirectory-0.06 ... FAIL
! Installing Mac::SystemDirectory failed. See /Users/jhannah/.cpanm/build.log for details.
$ cat /Users/jhannah/.cpanm/build.log
cpanm (App::cpanminus) 1.5017 on perl 5.022000 built for darwin-2level
Work directory is /Users/jhannah/.cpanm/work/1442578529.57766
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 Mac::SystemDirectory on cpanmetadb ...
--> Working on Mac::SystemDirectory
Fetching http://www.cpan.org/authors/id/C/CH/CHANSEN/Mac-SystemDirectory-0.06.tar.gz
-> OK
Unpacking Mac-SystemDirectory-0.06.tar.gz
Entering Mac-SystemDirectory-0.06
Checking configure dependencies from META.yml
Checking if you have ExtUtils::MakeMaker 6.42 ... Yes (7.04_01)
Configuring Mac-SystemDirectory-0.06
Running Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Mac::SystemDirectory
Writing MYMETA.yml and MYMETA.json
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have Test::More 0.86 ... Yes (1.001014)
Checking if you have ExtUtils::MakeMaker 6.42 ... Yes (7.04_01)
Building and testing Mac-SystemDirectory-0.06
cp lib/Mac/SystemDirectory.pm blib/lib/Mac/SystemDirectory.pm
Running Mkbootstrap for Mac::SystemDirectory ()
chmod 644 "SystemDirectory.bs"
"/Users/jhannah/perl5/perlbrew/perls/perl-5.22.0/bin/perl" "-Iinc" "/Users/jhannah/perl5/perlbrew/perls/perl-5.22.0/lib/5.22.0/ExtUtils/xsubpp" -typemap "/Users/jhannah/perl5/perlbrew/perls/perl-5.22.0/lib/5.22.0/ExtUtils/typemap" SystemDirectory.xs > SystemDirectory.xsc && mv SystemDirectory.xsc SystemDirectory.c
cc -c -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -O3 -DVERSION=\"0.06\" -DXS_VERSION=\"0.06\" "-I/Users/jhannah/perl5/perlbrew/perls/perl-5.22.0/lib/5.22.0/darwin-2level/CORE" -ObjC -DHAS_BOOL SystemDirectory.c
SystemDirectory.xs:8:8: warning: extra tokens at end of #endif directive [-Wextra-tokens]
#endif Move
^
//
SystemDirectory.xs:12:8: warning: extra tokens at end of #endif directive [-Wextra-tokens]
#endif I_POLL
^
//
SystemDirectory.xs:92:12: warning: enumeration values 'NSAutosavedInformationDirectory', 'NSApplicationScriptsDirectory', and 'NSTrashDirectory' not handled in switch [-Wswitch]
switch(directory) {
^
3 warnings generated.
rm -f blib/arch/auto/Mac/SystemDirectory/SystemDirectory.bundle
env MACOSX_DEPLOYMENT_TARGET=10.3 cc -bundle -undefined dynamic_lookup -L/usr/local/lib -fstack-protector-strong -lobjc -framework CoreFoundation -framework Foundation SystemDirectory.o -o blib/arch/auto/Mac/SystemDirectory/SystemDirectory.bundle \
\
ld: library not found for -lgcc_s.10.4
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [blib/arch/auto/Mac/SystemDirectory/SystemDirectory.bundle] Error 1
-> FAIL Installing Mac::SystemDirectory failed. See /Users/jhannah/.cpanm/build.log for details.