osx - How to force the INC and LIB path defaults for CPAN builds (cpanm+perlbrew) -
background
working os x , using macports additional utilities , libraries. macports installing /opt/local. default perl in macports 5.12, specifying higher version break many ports, i'm using own 5.16 perl installed perlbrew.
so, have libraries in default /usr/lib (provided apple) want linking xs based perl modules macports provided libs , includes @ /opt/local.
now question, when installing modules cpanm (into perlbrew's perl tree), here way how specify globally default search path libraries , includes cpanm (to modules build process) search /opt/local/{lib|include} @ first?
afaik cpanm havent switches this, maybe, env variables? or simpler solution edit every makefile.pl?
install half manually. run cpanm --look some::dist , supply appropriate inc , libs or --include_dirs , --extra_compiler_flags build tool on command line configure, finish off build, test, install steps , close subshell.
alternatively, if need automate this, use full-featured cpan client instead of cpanm. example, run cpan shell , configure makepl_arg , mbuildpl_arg. supplied subsequent installations (instead of one, above).
Comments
Post a Comment