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

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?

Replies are listed 'Best First'.
Re^5: Debugging CPAN problem
by marto (Cardinal) on Dec 22, 2020 at 21:34 UTC

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

        If you look at the introduction to Raspberry Pi OS they show how to use the GUI software installer, as well as the command line. None of this is secret and Linux (and other OS) had package management a very long time before Apple or Windows products. I feel that people are just more familiar with Windows having spent so long using it. The raspberry Pi people are pretty clear in their documentation, since it's primarily aimed at children and those teaching them. Observationally I rarely see anyone look in the Windows documentation, mostly they just do a web search if they want to find out how to do something. The people who look up the Microsoft docs are the same as those who'd look up the Solaris/Linux/GCC, whatever docs. Just using Linux as an OS is perhaps the sanest way to get to grips with it.

        when one doesn't know the command exists it is not there to be discovered.

        man apropos


        🦛