Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Create an RPM for custom compiled Perl ?

by flexvault (Monsignor)
on May 14, 2015 at 21:10 UTC ( [id://1126693] : note . print w/replies, xml ) Need Help??


in reply to Create an RPM for custom compiled Perl ?

Welcome Gib,

I have never built a RPM on *nix, but I have multiple Perls on all of my *nix boxes. I compile the source in my home directory, and specify to install it into '/usr/opt/perl.5.xx.xx', and then I come up with names that I use to generate symbolic links, i.e.

ln -s /usr/opt/perl5.14.2/bin/perl /usr/local/bin/perl.14.2 ln -s /usr/opt/perl5.14.2/bin/perl /usr/local/bin/myperl ln -s /usr/opt/perl5.14.2/bin/perl /usr/local/bin/vmperl . . .

When I build a new Linux server, I just 'tar -c' the '/usr/opt/' directory and the linked Perl*, and then ftp the tar file to the new system. (Note: I do not touch the standard Perl shipped with the Linux distribution.) Then using 'tar -x' I install all my Perl versions on the new Linux server. One advantage is that all CPAN requirements will be on the new server. I have done this between Linux distributions successfully, but I may just have been lucky.

If you need specifics, ask away! It just might help another admin in the future. If you need to get the RPM, another monk will have to help.

Regards...Ed

"Well done is better than well said." - Benjamin Franklin