Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Can I rebuild/make a module

by sundialsvc4 (Abbot)
on Dec 15, 2010 at 22:30 UTC ( #877400=note: print w/ replies, xml ) Need Help??


in reply to Can I rebuild/make a module

A very good place to start would be to Google (and SuperSearch) on:   “non-root user.”

It seems to me that what you’re contemplating is very similar to the situation that is faced when you are, say, installing a Perl-based website on a public server.   You’re not root, and you never will be (or at least, you do not wish for your actions to have system-wide reach), and what you want to do is to insert your own site-specific versions of certain CPAN modules.   You can do this, and you can set things up so that the cpan command does the heavy-lifting for you (including downloading tarballs, running the build and test processes, and so on).   There are many articles out there which are quite detailed.

Most (but not all!) CPAN modules are aware of the environment in which they are being built, and will build themselves accordingly.   You can look at the “Dependencies” section of the pages at http://search.cpan.org to see exactly which environments have been tested for a particular module, and how those tests turned out.

If your custom module uses XS (that is, “C”) modules, which you custom-prepared for Solaris, then obviously you might have some code-monkeying ahead of you, to handle the inevitable differences between the two environments.   But most modules don’t use XS, and are actually pretty cross-platform.   (Cross your fingers... knock on wood.)

It can, occasionally, get ugly ... where what you set out to do, actually is very environment-specific, and you actually have to redesign your application (or cobble together some kind of “glue” hack) to make it work.   (Not a fun thing to do, but you won’t be the first.)   At least you are moving from one “Unix-like” setup to another.   Where things tend to get really hairy is when you are moving to or from Microsoft Windows.


Comment on Re: Can I rebuild/make a module
Re^2: Can I rebuild/make a module
by superfrink (Curate) on Dec 16, 2010 at 16:23 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://877400]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2014-10-01 22:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (40 votes), past polls