Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re: What is the best way to install CPAN modules on Debian?

by ikegami (Pope)
on Mar 26, 2009 at 15:06 UTC ( #753430=note: print w/replies, xml ) Need Help??

in reply to What is the best way to install CPAN modules on Debian?

I use Debian, and I use an option you didn't list.

I use the system Perl (threaded 5.8.8), and I install all my packages in a fresh directory using cpan (although using cpan is not required).

  • Set makepl_arg to PREFIX=~ LIB=~/lib/perl5 (Any version of MakeMaker)
  • Set makepl_arg to INSTALL_BASE=~ (Alternative for MakeMaker 6.31+)
  • Set mbuildpl_arg to --install_base /home/ikegami (Might accept ~)
  • Add export PERL5LIB=~/lib/perl5 to ~/.bash_profile
  • Run mkdir -p ~/.kde/env && ln -s ~/.bash_profile ~/.kde/env/ (For KDE console login)

(The following setup uses ~, but you can use any directory. I don't know the equivalent of the last for gnome.)

I haven't had any issues yet.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://753430]
[gnosti]: Hi, Looking for a module that can add HH:MM:SS durations like 1:40, 1:00:24.13 and 12.3? I see on CPAN more modules with absolute dates. TIA
[kcott]: s/imput/input/
[Corion]: DateTime::Duration ? Personally,I convert stuff to seconds using Time::Piece or Time::Local and then add the seconds and then use POSIX::strftime to print them as hours again
[marto]: good morning all, TCIF
[gnosti]: I'm reading from ffmpeg lengths of video clips in H:M:S and needing to add them and format them back to H:M:S for feeding back to ffmpeg
[marioroy]: kcott Thanks
[Corion]: gnosti: I would cheat and use my approach instead of dealing with durations as objects, or a module

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (9)
As of 2017-08-18 08:57 GMT
Find Nodes?
    Voting Booth?
    Who is your favorite scientist and why?

    Results (297 votes). Check out past polls.