Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: EXTERN.h missing when compiling on OpenWrt

by morgon (Priest)
on Dec 12, 2018 at 09:33 UTC ( [id://1227126]=note: print w/replies, xml ) Need Help??


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

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

Replies are listed 'Best First'.
Re^3: EXTERN.h missing when compiling on OpenWrt
by marto (Cardinal) on Dec 12, 2018 at 09:52 UTC

      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 ...

        I remember having tried cpanm but I had issues.

        I may try again, but my understanding is that the missing EXTERN.h will not be fixed by getting a cpan-client to work.

        This does not come with a module but should part of the perl-installation (or am I wrong?).

Re^3: EXTERN.h missing when compiling on OpenWrt
by bliako (Monsignor) on Dec 12, 2018 at 09:49 UTC

    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

        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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1227126]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (7)
As of 2024-04-19 13:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found