ld: library not found for -lgcc_s.10.4(Mojave編)

今回の原因はMacOS XのバージョンをMojaveに上げたから。 結論からいうと、perlを再インストールし直してください。