dsollen
dsollen

Reputation: 6459

How to ensure all required CPAN modules are loaded when I install my program to new system?

Sorry if this is very newb question, I promise I did try this on my own.

As I develop a perl prototype I keep installing new CPAN modules I wish to use for the prototype to my local perl. I want to ensure when this program is deployed all these CPAN modules I'm using are installed on the production box as well.

I don't want to keep track of every new CPAN module I install during development and manually install each on production, I want to run a command and have all the appropriate modules loaded. In java world I would use something like Maven to list these dependencies and trust maven to handle fetching and ensuring my libraries are available. Does Perl have the equivalent?

I would kind of expect I can point cpan to my program and it could infer which modules are needed with basic static analysis and install them on the fly, but I haven't found the program or syntax to do so. can anyone point me to

Upvotes: 3

Views: 235

Answers (1)

Curt Evans
Curt Evans

Reputation: 352

The easiest way to do this is to load Webmin, which will report both native cpan modules, and modules loaded via yum or apt-get. Deploying the install is another discussion.

Upvotes: 1

Related Questions