in reply to Re^2: EXTERN.h missing when compiling on OpenWrt
in thread EXTERN.h missing when compiling on OpenWrt

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

Replies are listed 'Best First'.
Re^4: EXTERN.h missing when compiling on OpenWrt
by marto (Cardinal) on Dec 12, 2018 at 10:06 UTC
      It is the same device and upgrading it is not an option.

      I had hoped that there was some way to get Net::SSLeay on there, but I am about to give up.

      But even if I can get a less memory-hungry cpan-client to work it won't solve my problem with the missing EXTERN.h...

      But thanks anyway.

        the file 02packages.details.txt.gz is 1.3MB compressed. If you run out of memory uncompressing that then...

        As marto suggested, try something with low memory footprint (cpanm) OR maybe you should tell cpan exactly what module you want installed rather than starting with a shell which will try to bring itself up-to-date. The guide posted contains how to increase RAM via SWAP on USB. If you master that, then a lot of other problems you may encounter in the future can be solved.

        You want something like "perl-devel" (or whatever name) installed for EXTERN.h. Either via your linux's packet manager or cpan. You also have the choice of installing perl modules exclusively via the packet manager of your system. Let the packet manager deal with it and forget the cpan installers - surely the former will be a bit more aware of low-memory-systems.

        "I am about to give up."

        You didn't tell us much about your setup (which perl related packages you have, see the tutorial I linked to), some searches show build logs on openwrt which include extern.h. Maybe talk to the openwrt people, explain your setup and your problem? Failing that cross compile what you want for your target system.

Re^4: EXTERN.h missing when compiling on OpenWrt
by morgon (Priest) on Dec 12, 2018 at 10:21 UTC