Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: automatic/unattended cpan install

by raiten (Acolyte)
on Mar 22, 2007 at 20:52 UTC ( #606107=note: print w/ replies, xml ) Need Help??


in reply to Re: automatic/unattended cpan install
in thread automatic/unattended cpan install

ok for .modulebuildrc, i missed this config file.

works ok for direct install. fail if deps :(

perl -MCPAN -e "install DateTime::TimeZone"


why do we need to put all env/prefix ? with command line, 1 argument (PREFIX) is sufficient ... strange. can i use env variable or perl var to avoid repeating same path ? seems not:
my $local_prefix = '/home/touche/.cpan/local'; $CPAN::Config->{makepl_arg} = q[INSTALLARCHLIB=$local_prefix/lib INSTA +LLBIN=$loc al_prefix/bin INSTALLMAN1DIR=$local_prefix/man/man1 INSTALLMAN3DIR=$lo +cal_prefix /man/man3 INSTALLPRIVLIB=$local_prefix/lib INSTALLSCRIPT=$local_prefix +/bin INSTA LLSITEARCH=$local_prefix/lib INSTALLSITEBIN=$local_prefix/bin INSTALLS +ITELIB=$lo cal_prefix/lib INSTALLSITEMAN1DIR=$local_prefix/man/man1 INSTALLSITEMA +N3DIR=$loc al_prefix/man/man3 INSTALLVENDORARCH=$local_prefix/lib INSTALLVENDORBI +N=$local_p refix/bin INSTALLVENDORLIB=$local_prefix/lib INSTALLVENDORMAN1DIR=$loc +al_prefix/ man/man1 INSTALLVENDORMAN3DIR=$local_prefix/man/man3];
failed

else do you know a way to launch install like 'perl -MCPAN -e "install xxx" -f MyConfig.pm -f modulebuildrc' ? or to force to accept/refuse deps (to be non-interactive) ? disable "make test" ? force install without dependancies check ?

anyway thanks a lot :)


Comment on Re^2: automatic/unattended cpan install
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (10)
As of 2015-07-30 23:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls