Re: Build module on one box and move to another box? On 6/26/07, RICHARD FERNANDEZ  wrote:
> Hi folks,
>
> Having worked around my CPAN mirror problems by abandoning the FTP URL
> and going with an HTTP connection instead (Thanks for the suggestion
> David :), I'm now faced with the fact that the box I'm on does not have
> a compiler installed. "They" want me to install various modules (DBI.pm
> and others) without installing a compiler...
>
> Can this be done? Can I compile a module on one box and somehow install
> the code on another?
> Might this be as simple as copying over the contents of the directories
> in @INC?
>
> Thanks for the feedback!
>
> richf

I have had to do this before and it is possible iff both machines are
using the same OS at the same version/patch level.  It is easier if
you download and build the modules by hand (rather than try to use
CPAN).  Just get the module to the point of "make install" and copy
the directory over.  Just make sure you install any dependencies
first.  Oh, another gotcha is that since some Perl modules rely on
extrenal libraries you need to make sure the two systems have all of
the same libraries installed.

-- 
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/


