Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Add Modules to a PERL-Distribution

by gyrson (Novice)
on Nov 14, 2011 at 08:52 UTC ( #937891=perlquestion: print w/replies, xml ) Need Help??
gyrson has asked for the wisdom of the Perl Monks concerning the following question:

Dear Brothers

I would like to download the newest distribution of Perl and compile it on a Solaris-Machine. That's no Problem. But in addition to that I would like to add some Modules into that distribution, so that they are automaticly installed when I compile "my" distribution. I am sure there are threads for that, but I couldn't find any.

Replies are listed 'Best First'.
Re: Add Modules to a PERL-Distribution
by JavaFan (Canon) on Nov 14, 2011 at 09:25 UTC
    Wait, you want to add some modules to the newest distribution? I guess that would require a commit bit.

    Now, if you mean "I'm willing to do some work between downloading the module and actually compiling it, but I'm not willing to do any effort after compiling it (like installing a bundle)", then I suggest you download the module, untar it, dump your modules in the cpan subdirectory, figure out what (if anything) you need to modify to and run the usual command.

      Exactly, I would like to download the latest Version and do some work in order to have them ready to be distributed into different Servers with the Modules I need. I was thinking of your option, but didn't try. I think I will do that during the Weekend and I will give you an Answer if it worked. Thank you.

        You're distributing the tar files and configuring/compiling them on each machine? Solaris has a packaging system, and I would be surprised if you couldn't use something like cfengine or puppet to distribute packages (in various formats, doesn't have to be Solaris native package system).

        I would not want compilers to be installed on servers (except if the servers task is to compile stuff...), let alone do any actual compiling. Why waste resources compiling stuff on each server?

Re: Add Modules to a PERL-Distribution
by Anonymous Monk on Nov 14, 2011 at 09:39 UTC

    I am sure there are threads for that, but I couldn't find any.

    I can't think of any :) But you would want to add them to vendor libraries (on lots of win32 distributions, they stick it in sitelib -- no biggie)

      I've recently run across Task for installing sets of modules.

      perl -e 'print qq(Just another Perl Hacker\n)' # where's the irony switch?
Re: Add Modules to a PERL-Distribution
by FunkyMonk (Canon) on Nov 14, 2011 at 19:17 UTC
      Hello Funky Monk. That was exactly what I was looking for. Thank you very much, also the others that have given me great ideas. I will look into all of your answers to learn more.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://937891]
Approved by Corion
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2017-04-30 01:40 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (534 votes). Check out past polls.