We are developing various plug-ins that collect data via a perl script. Following the EDK examples, the perl that is used is the one that is under the $AGENT_HOME directory. This is convenient because it's already installed on all agents and we don't have to worry about it not being on a target host.
However, we now want to use some perl modules that are not included in the version under $AGENT_HOME. What is the recommended way to get these modules included with the agent perl configuration?
We've tried using CPAN to install the module on individual targets and this works in some instances but in others it all blows up with makefile errors and compile failures - specifically Net::SSLeay which seems to need to compile against openSSL. In general, it seems risky and onerous on the end user to ask them to do this.
Is there a best practice on adding perl modules to agent perl?