Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

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];

else do you know a way to launch install like 'perl -MCPAN -e "install xxx" -f -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 :)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://606107]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2017-12-17 03:40 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (462 votes). Check out past polls.