I added LWP::UserAgent to a test, and thought I had it covered
by adding LWP to Makefile.PL like this:

    'BUILD_REQUIRES' => {'LWP'           => 5.834,
                         'Test::More'    => 0},

One of many smoke-test systems has a problem with this.
http://www.cpantesters.org/cpan/report/6979525

The report says "Can't locate LWP/UserAgent.pm in @INC"

Which is the best way to fix this?

1. Change 'LWP' to 'LWP::UserAgent' in BUILD_REQUIRES
2. Add 'LWP' to PREREQ_PM
3. Add 'LWP::UserAgent' to PREREQ_PM
4. Add 'LWP::UserAgent' and 'Test::More' to PREREQ_PM
5. #4 plus delete BUILD_REQUIRES

It seems we have 3 categories: config_requires, build_requires, and
requires, and it's not clear which of the last 2 applies to something
required by a test.

Please forgive if this has been asked and answered before.
I've given up on my data mining skills.

Thanks,
cmac

Reply via email to