How to optimize adding perl modules?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
5 views
Now you have a list of several dozen perl modules that are run when adding a new server to the cloud.
The installation of these modules takes a long time — a few hours.

1. Tell me, are there any ways to speed up adding new modules?

2. As I understand it, pre-compiled modules is not, as it is in PHP. Is it really so?

3. How correctly use the following command to automate the installation echo "y" | cpan -i Net::SMTP?

Thank you.
by | 5 views

3 Answers

0 like 0 dislike
1) there are "virtual modules" that do nothing but pull over a stack of dependencies. But fairly rare.
2) the correct way to simplify adding modules to the same type of machine — assembling packages in the usual your system format. For centos || fedora search Google perl2rpm, cpan2rpm. Collect your set of packages for modules which do not exist in the repositories.
2.1) just In case, let me add that the packages of Perl modules usually have the name of a type of perl-*.rpm, where instead of stars you want to substitute the package name with span. For example, the desired module URI::Escape. Looking at search.cpan.org find it in the package "URI-1.55". So try to find already assembled package perl-URI if you do not find — collect themselves.
3. Once again, use the packages. First, it will be easier to track versions of the modules and upgrade them if necessary simultaneously. Secondly, you will not be faced with the fact that since the last installation of the modules on cpan there is a new version. This can lead to quite interesting effects. For example, Storable checks when unpacking the data, what version they were serialized, and in case of discrepancy send quite far.
\r
Success!
by
0 like 0 dislike
To install in a chroot you need the modules to do mtree, copy ready-made modules.
So You kill two birds with one stone — update the modules you will need in one place (we'll just copy it on all the machines of the cloud),
will achieve unification.
by
0 like 0 dislike
Go to the "rich packages" distro like ubuntu.
Just like everything the CPAN modules out there not getting it, but if the application program requires modules, they are usually Packed in packages.
Put very quickly.
With some skill you can produce packages and a small repository.
by

Related questions

0 like 0 dislike
5 answers
asked Jun 14, 2019 by vanyabrovaru
0 like 0 dislike
1 answer
asked Jun 4, 2019 by strongmonkey
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked May 4, 2019 by fenek644
110,608 questions
257,186 answers
0 comments
25,738 users