Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Perlbrew install perl takes forever, just install already-compiled perl

Tags:

perl

perlbrew

perlbrew install perl compiles and runs all tests which takes forever on my machine to install (>60 mins). Is it possible to install pre-built-and-test-run perl using perlbrew like apt-get does for linux packages to save time?

like image 650
alpha_cod Avatar asked Jul 27 '14 01:07

alpha_cod


2 Answers

perlbrew by its nature is going to do a build that is appropriate for your OS and architecture. You have to rely on your OS vendor for pre-built perls, which is as it should be.

That said, you can speed things up considerably with the -n flag to skip the tests. If you have multiple cores, the -j flag will build things in parallel where possible.

Try timing perlbrew install -n -j 5 perl-5.20.0 and see how it compares to the default method.

like image 165
friedo Avatar answered Nov 26 '22 10:11

friedo


No, not using perlbrew (that's not its purpose), but you could using apt-get, yum, rpm, etc (that is their purpose).

like image 31
ikegami Avatar answered Nov 26 '22 09:11

ikegami