Re: Perl 5.26 and the . in INC issue where modules won't install

[email protected] (Diab Jerius) Thu, 1 Nov 2018 13:20:12 -0400
Newsgroups perl.module-authors
Message-ID <CADpyd5Aw35=Fcoxp3a4-fBs1XOOwo6xXd+aTWhJT+eC33_cF8A@mail.gmail.com>
One of the (few?) benefits of using cpan over cpanm is that you can use the
distroprefs [1] functionality to automatically apply local patches when
installing from CPAN.  Mixing cpan and cpanm makes for an awkward workflow,
but I don't know of a cpanm equivalent.


[1]
http://perldoc.perl.org/CPAN.html#Configuration-for-individual-distributions-(_Distroprefs_)

On Thu, Nov 1, 2018 at 12:53 PM Martin J. Evans <[email protected]>
wrote:

> On 01/11/2018 16:23, Karen Etheridge wrote:
>
> You can install these modules again by setting PERL_USE_UNSAFE_INC=1 in
> your environment while installing.
>
> Yes, thanks. However, I did not name all of my problems and only one of
> them was @INC issue. The other problem is modules which won't build for
> other reasons that need patches not applied e.g. WWW::Curl.
>
> You can also install locally patched modules with carton by specifying a '
> file:///' path in cpanfile:
>
>     requires 'Foo::Bar', '0.123', url => '
> file:///local/path/Foo-Bar-0.123.tar.gz';
>
> This is will do nicely for all my issues. Thank you. I was only aware of
> dist/url.
>
> Martin
>
>
>