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?
Asked
Active
Viewed 870 times
5

alpha_cod
- 1,933
- 5
- 25
- 43
-
3You can do `perlbrew install --notest` which saves a considerable amount of time, if you're confident that nothing will go wrong. Good use of the `-j` flag will also make things go faster if you have multiple cores. – hobbs Jul 27 '14 at 02:56
-
5`perlbrew install -j 5 --notest perl-5.20.0` completes in under 2 minutes on my machine. – hobbs Jul 27 '14 at 03:02
-
4Regarding @hobbs' "if you're confident that nothing will go wrong"... assuming that you've successfully built a Perl before, and assuming you're installing a stable release of Perl, and assuming that your OS and machine architecture are not incredibly esoteric, then you can be fairly confident that nothing is going to go wrong, and it should be safe to skip testing Perl. – tobyink Jul 27 '14 at 09:34
-
1This seems like a perfectly reasonable question to me. Voting to re-open. – friedo Jul 28 '14 at 11:00
-
1@friedo I don't get why it is unclear either, voting to reopen. – Shafik Yaghmour Jul 28 '14 at 11:24
2 Answers
15
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.

friedo
- 65,762
- 16
- 114
- 184
3
No, not using perlbrew
(that's not its purpose), but you could using apt-get
, yum
, rpm
, etc (that is their purpose).

ikegami
- 367,544
- 15
- 269
- 518