I'm integrating with some existing, "legacy" Perl code for my current project. I'm downloading some libraries via CPAN to use in a Perl script, but I would like to avoid having all the other developers/users install these libraries manually. Taking a page from my Ruby/Rails background, I thought it might be possible to "unpack" the dependencies to a local directory that's under version control and then load the libraries from there. The advantages are that (1) no one has to install specific packages manually and (2) you know everyone has the same version and can update that version easily.
I tried the easy approach and just moved the installation files to ./vendor/Perl/Pod/
, ./vendor/Perl/DBD/
, ./vendor/Perl/Win32/
, etc and adjusted @INC
accordingly. This worked fine for some libraries but not others. I would guess compiled libraries are causing problems, as well as dependencies.
Is there already a solution out there that solves this problem for me? The core of it is that I don't want to manually manage dependencies between developers or users (which we have to do now).
I'm not terribly familiar with Perl, so I apologize for my ignorance in advance.