Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: Debugging CPAN problem

by marto (Cardinal)
on Dec 22, 2020 at 19:22 UTC ( [id://11125629]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Debugging CPAN problem
in thread Debugging CPAN problem

Ignoring the fact that the first thing you did after running cpan was to install cpan, go back and read what I wrote :) If you run out of RAM expect daft things to happen. Use the OS package management to install things, you don't need to everything yourself. sudo apt install libhttp-server-simple-perl You're wasting time compiling on a low end/embedded system. apt isn't cpan, so don't expect packages to be the same as they do on cpan, which is probably why your apt-get install cpanm "didn't work" (this isn't a report anyone can help you with constructively :), sudo apt install cpanminus or something similar. Also The documentation often has hints and tips for installation.

Update: fixed autocorrect based typo.

Replies are listed 'Best First'.
Re^4: Debugging CPAN problem
by Bod (Parson) on Dec 22, 2020 at 21:11 UTC
    Use the OS package management to install things, you don't need to everything yourself. sudo apt install libhttp-server-simple-perl You're wasting time compiling on a low end/embedded system. apt isn't cpan, so don't expect packages to be the same as they do on cpan

    Thank you so much marto.

    I have managed to get the server working with sudo apt install libhttp-server-simple-perl. I had no idea that there was any way to install a Perl module other than writing it yourself, copying the Perl code for pure Perl modules or using cpan.

    Where would I look to find what can be installed using apt and what package name to use?

      If you're using the system perl, the system package manager is the way to go. Based on what you've described about your project goals here, and limited scope I don't see any issues. To search:

      apt-cache search SearchTermGoesHere

      man apt-cache, notice how search ianregex friendly.

        Thank you marto

        Easy when you know how!

        So much to learn...
        I understand why so many people stay clear of Linux in favour of Windows. With the latter all the possible options are displayed on the GUI. They may be hidden behind other options but at least they can be found by clicking and selecting. With Linux, at least from the command line, when one doesn't know the command exists it is not there to be discovered.

        Perhaps I need another Raspbarian based project as that will inevitably increase my knowledge...

Log In?
Username:
Password:

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

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

    No recent polls found