Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Relocatable Perl RPMS - possible?

by tizatron (Initiate)
on Aug 24, 2012 at 18:17 UTC ( #989604=perlmeditation: print w/replies, xml ) Need Help??

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.


Replies are listed 'Best First'.
Re: Relocatable Perl RPMS - possible?
by sedusedan (Monk) 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).

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://989604]
Approved by Old_Gray_Bear
Front-paged by tye
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2018-04-25 11:42 GMT
Find Nodes?
    Voting Booth?