Re: software install problem perl module



CJ Tres wrote:

Attempting to install a software I get an error that the maintainer
tells me indicates that "it needs the Perl module 'Std::Class'"

Googling I found nothing helpful, at least as near as I can tell not
being a programmer.
Anyone have a clue?


If I do

apt-cache search perl std class

In the results is:

libclass-std-perl - Support for creating standard "inside-out" classes

Which is probably what you want. For CPAN modules in the repositories,
generally you find they take the name of the module on CPAN:

Std::Class

Make it all lower-case:

std::class

Replace any double-colons with a hyphen:

std-class

then put it between 'lib' and '-perl':

libstd-class-std-perl

So, for another (and very contrived) example, what's known on CPAN as
Syntax::Highlight::Engine::Simple
is called
libsyntax-highlight-engine-simple-perl
in apt.

There is a more general discussion as to whether you should be using
Perl modules from apt or by installing them with the CPAN installer
(or, better, cpanminus). Generally, if you're using the system Perl
(that is, the Perl that came with the OS) you're better off sticking to
the apt-supplied modules unless the one you want isn't available.

If you get into using exotic modules, you'll probably want to install
your own Perl and maintain a separate installation of CPAN modules for
it. Much of dpkg and other system tools make use of Perl, so it's best
to not modify it too far from stock,

--
Avi

--
Avi

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: RXParse module (by robic0), Version 0.1000
    ... r> Perhaps you could code the anti-robic0 module and post it to cpan. ... if you were more sociable and actually learned perl better and got along ... is going at a constant velocity, the there mind pushes up things you can't believe. ... The foul lang comes from the conciouness trying to protect my self. ...
    (comp.lang.perl.misc)
  • Re: RXParse module (by robic0), Version 0.1000
    ... r> Perhaps you could code the anti-robic0 module and post it to cpan. ... common with trolls. ... if you were more sociable and actually learned perl better and got along ... My life is not the normal mind kind of life you would ...
    (comp.lang.perl.misc)
  • Re: Installing DBD::File via CPAN
    ... Do you use 'UNINST=1' in the build options for CPAN? ... >> Did you build Perl from source, or install via a RPM or binary distro? ... >>> sender of the delivery error by replying to this message, or notify us ...
    (perl.dbi.users)
  • Re: Newbie Where to start perhaps a hash-table is what I need to learn about ?
    ... Very nice to know about CPAN. ... syntax error at ./getACLinfo.pl line 51, ... Assigned a task to extract data fron a text file. ... Figured Perl my best option, ...
    (perl.beginners)
  • Strawberry Perl Installing CPAN modules
    ... I need help regarding install of CPAN modules in strawberry perl. ... Teradata.xs:58: error: `dbcp' undeclared ... Teradata.xs:102: error: `DBCAREA' undeclared ...
    (perl.beginners)