I am switching machines. I'm building a small Linux environment that is loaded onto a x86 device. It is compatible with the development environment. I copy /opt/perl to ~/devel/device_root and then use mksquashfs to create an image that is loaded into ram at boot.

Here is how I build perl today. I'm typing this from my head so it may not be exact.

PERL_INSTALL=/tmp/perl.`uuidgen` ./Configure -Dprefix=/opt/perl make -f Makefile install.perl DESTDIR=${PERL_INSTALL} # Now to install modules I need /opt/perl sudo ln -sf ${PERL_INSTALL}/opt/perl /opt/perl

I have at least 5 directories of perl modules

for i in `cat modules.list` do PERL_BIN=/opt/perl/bin/perl (cd $i && make -f OURMakefile install) || exit 1 done

Now I copy everything to the devel root

cp -dpvR ${PERL_INSTALL}/opt/perl ~/devel/root/opt

My idea is to use perlbrew so that I can use CPAN to download, build, and install modules instead of mean going into each directory. I also want to get rid of the sudo dependency. I thought If I use perlbrew to build perl and modules into ~/perlbrew/ I could simply copy the dist to ~/devel/root/. The problem is that the binary and files will be pointing to /home/cfowler/perlbrew/... and I do not want to create those symlinks on the device.

Chris

In reply to Re^2: perlbrew copy to system by Anonymous Monk
in thread perlbrew copy to system by linxdev

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.