Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: copy perl and some modules into an offline OS

by gideondsouza (Pilgrim)
on Feb 24, 2013 at 08:21 UTC ( #1020380=note: print w/replies, xml ) Need Help??

in reply to copy perl and some modules into an offline OS

Ok so I'm currently installing perl like this:

./Configure -des -Dprefix=/usr/jails/basejail/myjail/usr/bin

My question is where do I copy starman from? In addition to the directory I need to also copy other dependencies right? So what folder should I copy? Where is the default cpan module directory?

Replies are listed 'Best First'.
Re^2: copy perl and some modules into an offline OS
by Anonymous Monk on Feb 24, 2013 at 08:58 UTC

    You're doing things backwards

    use a root prefix, like /inside

    build all your stuff relative to /inside, all the software

    then make a jail ANYWHERE

    then copy /inside into jail

    inside the jail treat /inside as root

    or if you want /usr/bin .. instead of /inside/usr/bin

    start copying /usr/bin ... into your jail

    then go to jail, switch to jail, chroot to your jail ,

    then install perl as normal into whatever place inside the jail, using absolute jail paths

    see links for chroot setup

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1020380]
[Lady_Aleena]: Or what Discipulus said.
[shmem]: Lady_Aleena: geany supports ctags.
[Discipulus]: a good compromise can be my ($need, $opts_ref) = @_ a scalar and an hash reference
[Discipulus]: see you monks!
[Lady_Aleena]: shmem, let me get this sub rewritten, then I will look into how to use ctags in geany. Deal? 8)
[shmem]: Discipulus: yeah, that might eventually prepare the path for OO ;-)
[Lady_Aleena]: See you, Discipulus.
[shmem]: Lady_Aleena: that's up to you. I only wanted to show you a path that might be more comforting than command line grep ;-)
[Lady_Aleena]: shmem, I don't think any of my modules could be converted to OO. They are too procedural.
[Lady_Aleena]: Now I will see if my perl-fu is as bad as I think it is.

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2017-04-27 12:28 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (506 votes). Check out past polls.