See Update below.
I've been hacking and upto no good with this project here: www.tryperl.com. It's a learning project and I'm a newbie. I've been posting prolifically about it for some time.

I'm trying to create a better virtual environment to run a users perl code, so my objective is this:

I have perl and starman installed on my freebsd machine. I want to copy this installation into a another freebsd machine which is completely offline/disconnected from the internet.

Q: Is it as simple as a few directory copies? What about installing perl on the command line?

This other system is a freebsd jail. I've been trying day and night to run the jail, unfortunately I cannot get the jail connected to the internet to install modules directly. Since I'm going to disconnected it later anyway I was thinking about just installing everything I need on the host system and then copy it into the jail.

Thorough help with be appreciated with credits on tryperl.com :)

Update: Ok I'm halfway there. I figured I have to do the following for perl, right? Instead of $HOME/localperl can I just say /jails/myjail/usr/bin/perl ?:

wget http://www.cpan.org/src/5.0/perl-5.16.2.tar.gz tar -xzf perl-5.16.2.tar.gz cd perl-5.16.2 ./Configure -des -Dprefix=$HOME/localperl make make test make install

Now what about Starman? Can I copy it from a directory? If I install from source I will have to manually install it's dependencies


In reply to copy perl and some modules into an offline OS by gideondsouza

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.