Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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

by Anonymous Monk
on Sep 14, 2019 at 17:19 UTC ( [id://11106173]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11106173]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-04-26 04:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found