in reply to EXTERN.h missing when compiling on OpenWrt

"there is no working working CPAN-client"

Perlbase cpan doesn't work? Some context: Re: Perl and OpenWrt - where to the communities intersect?

  • Comment on Re: EXTERN.h missing when compiling on OpenWrt

Replies are listed 'Best First'.
Re^2: EXTERN.h missing when compiling on OpenWrt
by morgon (Priest) on Dec 12, 2018 at 09:33 UTC
    I can install perlbase-cpan and when I then add perlbase-unicore (the dependencies are not properly reflected in the packages) I do not have a cpan-script, but I can run
    perl -MCPAN -e shell
    However:
    CPAN.pm requires configuration, but most of it can be done automatical +ly. If you answer 'no' below, you will enter an interactive dialog for eac +h configuration option instead. Would you like to configure as much as possible automatically? [yes] y +es <install_help> Warning: You do not have write permission for Perl library directories +. To install modules, you need to configure a local Perl library directo +ry or escalate your privileges. CPAN can help you by bootstrapping the loca +l::lib module or by configuring itself to use 'sudo' (if available). You may + also resolve this problem manually if you need to customize your setup. What approach do you want? (Choose 'local::lib', 'sudo' or 'manual') [local::lib] Autoconfiguration complete. Attempting to bootstrap local::lib... Writing /home/mh/.cpan/CPAN/MyConfig.pm for bootstrap... commit: wrote '/home/mh/.cpan/CPAN/MyConfig.pm' Fetching with LWP: http://www.cpan.org/authors/01mailrc.txt.gz Reading '/home/mh/.cpan/sources/authors/01mailrc.txt.gz' ...................................................................... +......DONE Fetching with LWP: http://www.cpan.org/modules/02packages.details.txt.gz Reading '/home/mh/.cpan/sources/modules/02packages.details.txt.gz' Out of memory! Killed

        Also, if you really want to stay with cpan, you can (manually) install CPAN::SQLite and feed that from another machine with the updated index. But it's so much more convenient to use App::cpanminus instead ...

      Re:

      Out of memory! Killed

      What's the RAM on that thing? (not flash). You can use:

      free

      and

      cat /proc/meminfo

      I am totally ignorant of these devices but my common sense says that if indeed this is a problem of running out of memory, you either install more RAM or make swap-space from disk space, including an inserted USB or other flash memories. If you want help with that let me know. You can check your disk-space (flash/hard disk/usb) like:

      df -h

      bw, bliako