I'm maintaining a perl script which runs an automated install of our base server software. One of the new requirements is to install the Inline::Java module.
Our usual strategy of installing using Yum seems to fall down as there's no Inline::Java available in yum. I can't find an RPM release for it so can't install as an RPM. The only options seem to be installing through CPAN or shipping the tar and having a step which identifies the SDK location and runs 'perl Makefile.PL J2SDK=; make; make install'.
Instinctually I think that's a little shaky for an automated install, I've had problems with CPAN installs failing in the past and I don't really want to have to make on a live server, but I can't think of a better option.
The other option I considered was just shipping the .pm file, placing it in a user defined directory and using 'use lib' to define that as a location but due to the way Inline::Java works I don't think this is possible, it needs the location of the InlineJavaServer and such too.
Does anyone have a better solution or an opinion on which of the ones proposed above is the best?