Think about Loose Coupling | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
On Raspberry Pis, I personally like to use the system Perl and the system package manager to install Perl modules. This may not always give you the latest versions, but things install much faster because nothing needs to be compiled and tested. (Update: In other words, try sudo apt-get install libnet-ssleay-perl.)
Thanks for your response, haukex. I'm not quite sure what you mean with reference to the "system package manager." I find no GUI equivalent of Ubuntu's "synaptic package manager." I prefer to get things done on the command line with *nix. (My windows preference is the opposite, but I prefer not to use Windows.) I wonder if you mean something like dpkg. As it is, I used sudo apt-get install libnet-ssleay-perl, and then I was unstuck. Would this be an instance of using the "system package manager," as you mean it? Update: After fighting with the same install on my droplet, I realize there were other headers that needed to be installed by the system:
The droplet had the former but not the latter, and it seems to make a difference. It's also usually not recommended to use sudo cpan to install modules to the system Perl - use the system's package manager to install packages to the system Perl, or build your own copy of Perl (e.g. perlbrew) to install modules using a CPAN client there. Or, if using the system Perl, use something like local::lib to install modules to your home directory, so the system Perl's libraries are not affected. On Raspberry Pis, one of the first things I do is sudo apt-get install build-essential cpanminus liblocal-lib-perl perl-doc and perl -Mlocal::lib >>~/.profile - see my notes on setting up RPis. (Update: I use local::lib on RPis for those few modules that aren't available in the package repositories or where the version in the system repositories is too old.)I think that's really solid advise for an rpi. I proceeded as you outline, forsaking sudo cpan, and with the addition of this command: cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)cpanm has generally worked very well for my needs. I do have a sticky wicket, where I can't get cpanm to find dependencies:
I couldn't get cpanm to find modules in typical perl .pl scripts, so I herded the requires into a barebones module in its own directory. I don't know how to serve it up any better than that.(?) On Raspberry Pis, one of the first things I do is sudo apt-get install build-essential cpanminus liblocal-lib-perl perl-doc and perl -Mlocal::lib >>~/.profile - see my notes on setting up RPis. (Update: I use local::lib on RPis for those few modules that aren't available in the package repositories or where the version in the system repositories is too old.)Your link for setting up rpi's has proved very useful indeed, giving me much more on my plate to come up to speed on. I'm happy to report that I think I have my first fail2ban implementation:
Regarding section 5,
What is the purpose of doing this? Would this cause you to be indexed by search engines, or is it all within 50 yards (meters for bliako)?
Can you break this up into parts? I've used crontab once, so that syntax with all the asterisks is familiar. I read that socat -sruns it in sloppy mode, and I understand the syntax for sending stderr to the bitbucket. 2>/dev/nullI haven't cottoned onto it yet, even fiddling with udplisten.pl I have run:
, and was astonished to get somewhere in the debugger with it:
, with another terminal, doing: If you still want to try installing Net::SSLeay yourself, you can also use the apt command to get most programs' build dependencies; in this case, try sudo apt-get build-dep libnet-ssleay-perl.
I used this with my droplet in the cloud. In general, I would recommend cpanm over the default CPAN client. Its --verbose option will show you the whole build process, giving you the exact error messages when stuff fails.I sure like cpanm too when I finally get the thing kickstarted. cpanm Term::ReadKeyI always need to do this, too. Again, thanks for your comments. Gruss aus Amiland, In reply to Re^2: CPAN 2.29 stuck with Net::SSLeay
by Aldebaran
|
|