Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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.

Thoughts?

Comment on Relocatable Perl RPMS - possible?
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?
Username:
Password:

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
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2014-12-25 20:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (163 votes), past polls