[Chicago-talk] Testing a module installation

Jay Strauss me at heyjay.com
Sat Jan 24 16:57:49 PST 2009

> Two answers: one slightly unixy, one very unixy.
> 1) Build a new perl with -Dprefix= and install it, then make sure to
> use /path/to/that/perl -MCPAN -e shell to install your module. That perl's
> compiled-in @INC will have paths under the prefix, so it won't see anything
> that you might have installed through your "system perl". However if you're
> doing any XS, it may well pull libraries from your system library path, so
> the test is a bit less than perfect.
> 2) Short of a fresh install in a VM, there's a fresh install in a chroot. I
> know that Debian, Redhat, and FreeBSD all have tools to make this quite
> simple, and I'm sure that other systems do as well. Debian's build procedures
> for their package repository actually work this way :)
> Andrew

I'm running on Ubuntu.  I'll have to investigate how to do #2.

Seems like there should be some easy way.


More information about the Chicago-talk mailing list