Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
I use Debian/testing aka squeeze and I've got ~300 non-Debian CPAN packages installed, all as .deb's using dh-make-perl. FWIW my workflow{1} is:
  1. cd <<cpanplus build directory>>
  2. cpanp t Module::To::Install download & test the module and all dependencies
  3. dh-make-perl --version <<module-version>>-0.0 --build <<directory>> for each directory created by cpanp. (Some fail, and some succeed.)
  4. su -c 'dpkg -i *.deb' Install those that succeeded
  5. Repeat 3 & 4 until all the modules are installed
It's a long way from being perfect, but it works for me.

{1} Scripted, of course:

#!/usr/bin/perl use 5.010; use strict; use warnings FATAL => 'all'; run(); sub run { fetch_and_test($_) for @ARGV; for my $dir (grep -d, glob "*") { system qw[rm -rf], "$dir/debian" if -e "$dir/debian"; my ($module, $ver) = $dir =~ m/(.*)-(.*)/; my $deb = lc "lib$module-perl"; system(qw/dh-make-perl --version/, "$ver-0.0", "--build", $dir +) == 0 and system qw/rm -rf/, $dir; #created a deb } } sub fetch_and_test { my $module = shift; system qw[ cpanp s conf prereqs 1; ], "t", $module; }

In reply to Re: What is the best way to install CPAN modules on Debian? by FunkyMonk
in thread What is the best way to install CPAN modules on Debian? by ELISHEVA

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-06-24 23:41 GMT
Find Nodes?
    Voting Booth?

    No recent polls found

    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.