in reply to Can I install CPAN itself on busybox?

Install perlbrew, install an instance: perlbrew install perl-5.26.0, switch to it: perlbrew switch perl-5.26.0, then perlbrew install-cpanm?

Replies are listed 'Best First'.
Re^2: Can I install CPAN itself on busybox?
by cnd (Acolyte) on Jul 09, 2017 at 19:47 UTC
    Interesting idea, although IoT gadgets always have minimal everything, so something for full-blown linux is rarely going to work:-
    root@Omega-C50F:~/un/brew# /root/index.html ## Download the latest perlbrew 2017-07-09 19:45:24 URL:https://raw.githubusercontent.com/gugod/App-pe +rlbrew/master/perlbrew [211020/211020] -> "perlbrew.fgeblo" [1] ## Installing perlbrew Can't locate PerlIO.pm in @INC (you may need to install the PerlIO mod +ule) (@INC contains: FatPacked::11223424=HASH(0xab4180) /usr/lib/perl +5/5.24 .) at perlbrew.fgeblo line 6138. BEGIN failed--compilation aborted at perlbrew.fgeblo line 6151. BEGIN failed--compilation aborted at perlbrew.fgeblo line 6151. root@Omega-C50F:~/un/brew#

      You could say I'm a bit familiar with small/embedded/IoT type stuff, but I admit I completely glazed over that statement in your OP and missed it entirely.

      Can you provide the specs of the particular board you're using and the OS information? Perl will run in tight memory constraints, but it's the storage space that could be an issue. How does the "Onion" attach to disk? Is it custom like a Pi, or is it hard like an Arduino?

      Perhaps with that knowledge, it may be possible to pack up the modules you need, then do a single untar or something...