Specify CPPFLAGS when building with CPAN -
i have cpan module attempting build. requires compiling small c program. don't have root on system, have complete parallel source tree in $home/local/src installed @ $home/local/lib , $home/local/include, etc.
how pass cppflags=-i$home/local/include ldflags=-l$home/local/lib cpan module built?
you can pass cppflags , ldflags cpan module build process setting these environment variables. had luck local tidy , tidyp install after setting these, in bash).
steps:
installed tidy , tidyp prefix $home/local export cppflags=-i$home/local/include export ldflags=-l$home/local/lib export ld_library_path=$home/lib cpan cpan> install html::tidy
i added ld_library_path setting above -ltidyp
picked correctly html::tidy install.
Comments
Post a Comment