in reply to cpan client- install_base value not used to install Text::Table

Hi,

PREFIX is not the same as INSTALL_BASE

Maybe that is the reason


perl -I/home/user/stuff/lib/perl5 -S myfoobar.pl
perl -Mlib=/home/user/stuff/lib/perl5 -S myfoobar.pl

export PERLLIB=/home/user/stuff/lib/perl5
myfoobar.pl

export PERL_MM_USE_DEFAULT=1
export PERL_MB_OPT=--install_base /home/user/stuff
export PERL_MM_OPT=INSTALL_BASE=/home/user/stuff
export AUTOMATED_TESTING=0

cpan -fi Module Module Module Module Module Module

cpanp -i Module Module Module --allow_build_interactivity=0 --skiptest=0 --force --prereqs=1 --no_update=1

  • Comment on Re: cpan client- install_base value not used to install Text::Table

Replies are listed 'Best First'.
Re^2: cpan client- install_base value not used to install Text::Table
by Anonymous Monk on Oct 15, 2019 at 09:13 UTC

    One thing to note that module installs as expected when doing everything with Module::Build (./Build, etc) manually (second example). But fails when installing via cpan.

    I understand that "install_base" (Module::Build) is not same as PREFIX (ExtUtils::MakeMaker).

    Are you suggesting that cpan uses Module::Build to build the module but then uses ExtUtils::MakeMaker to install it (depending on value of INSTALL_BASE) even though "MB" is "prefer_installer" in the CPAN configuration?

      I am suggesting maybe edit config to not use prefix and see what happens. The manual command shown doesn't match the automatic one.

        Will do. Thanks for the pointers.