Recently played with ZeroMQ and Perl. I got a nice little pub/sub program working.

Now I want to roll it out. I used perl 5.10 on centos5.5. I directly installed perl into /opt/perl-5.10.1 to get by development world working.

Then I wanted to wrap up perl 5.10 and the ZeroMQ perl bindings in an rpm and deploy. It is taking me longer to figure out how to make a relocatable package that installs perl in an alternate location than it ever did to write the pub/sub program.

My initial thought was to rename perl in the rpm spec file to avoid collision with the centos perl. That seems to be problematic. Seems to break the dependency graph.

Is this the right approach? I guess I could just glob the install that I currently have and grind that into a rpm. That seems wrong too.

Thoughts?

Replies are listed 'Best First'.
Re: Relocatable Perl RPMS - possible?
by sedusedan (Pilgrim) on Aug 24, 2012 at 23:58 UTC
    I believe cPanel does something like this, it has cpanel-perl, cpanel-apache, and so on. They are not relocatable I guess, but has a prefix in /usr/local/cpanel or something like that (so, /usr/local/cpanel/perl, /usr/local/cpanel/apache, etc).