in reply to Re: Re-Test a CPAN module
in thread Re-Test a CPAN module

thank you for your answer.
I will try in this way on Monday.
Please, let me understand how CPAN extactly works.
If I try:
get Module

My module is downloaded in some directory.
where?
In my case is: /home/myUser/.cpan/build

Is there any way to download the module in a different directory? Then:
test module
It do the tests.
Where are located the test?
I think in the directory .cpan/build/module/t


finally:
install module.
The module is installed in Perl directory, which maybe different from CPAN downloaded module.

Also here: is there any way to install in a different directory?

Is it correct?

Finally: if I want to do some changes to Makefile.PL, in order to pass the tests suite,
is there some way to do it in a "clean" mode?

Please, if you have that possibility, can you go into these aspects thoroughly?

Thank you very much for your answer.

Replies are listed 'Best First'.
Re^3: Re-Test a CPAN module
by Corion (Patriarch) on Mar 12, 2011 at 10:24 UTC

    If you don't want to use CPAN, you can just download the packages from CPAN. Then unpack the packages, do your modifications and tests, and make install.

      ok,
      thank you!
      Hello, it works, but I have two different installations of Perl (the first one is the system built, the second one is a particular version of Perl in my personal directory).

      How can I install with the target of my personal installation, not the system default?

      In fact I have:
      !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +!! ERROR: Can't create '/usr/local/lib/perl/5.10.1' Do not have write permissions on '/usr/local/lib/perl/5.10.1' !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +!! at -e line 1 make: *** [pure_site_install] Errore 13
      It is the default system installation,
      but I would like to install with target in:
      /usr/local/perls/perl5.12
      Please, any idea?
      Thank you for anwser

        Use the appropriate perl to call Makefile.PL. If you execute Makefile.PL with the system Perl, it will install the module into the system Perl directory. If you execute Makefile.PL with your own Perl, it will install the module into your own Perl directory.