swngnmonk has asked for the wisdom of the Perl Monks concerning the following question:
The setup:
This works fine, with CPAN modules using both MakeMaker and Module::Build.
Now the problem:
perl, compiled and installed to /tmp/foo, might get moved to /tmp/bar. No recompilation of perl is possible at this point.
The build script must work now with /tmp/bar/bin/perl to build CPAN modules.
And this is where I'm getting stuck. Pure-perl modules seem to be ok with an updated $PERL5LIB, but modules that require C header files don't want to cooperate. I keep running into problems with modules being unable to find CORE/perl.h.
Adding LIB, PERL_LIB, or PERL_ARCHLIB directives to the call to Makefile.PL doesn't work, and I'm stuck at this point.
Suggestions very much appreciated!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Need help with environment vars and building CPAN modules
by f00li5h (Chaplain) on Nov 05, 2008 at 00:49 UTC | |
by swngnmonk (Pilgrim) on Nov 05, 2008 at 21:18 UTC |