… | |
… | |
78 | Maintaining your own custom perl build can be a pain in the ass, and |
78 | Maintaining your own custom perl build can be a pain in the ass, and |
79 | while staticperl tries to make this easy, it still requires a custom |
79 | while staticperl tries to make this easy, it still requires a custom |
80 | perl build and possibly fiddling with some modules. PAR is likely to |
80 | perl build and possibly fiddling with some modules. PAR is likely to |
81 | produce results faster. |
81 | produce results faster. |
82 | |
82 | |
|
|
83 | Ok, PAR never has worked for me out of the box, and for some people, |
|
|
84 | staticperl does work out of the box, as they don't count "fiddling |
|
|
85 | with module use lists" against it, but nevertheless, staticperl is |
|
|
86 | certainly a bit more difficult to use. |
|
|
87 | |
83 | HOW DOES IT WORK? |
88 | HOW DOES IT WORK? |
84 | Simple: staticperl downloads, compile and installs a perl version of |
89 | Simple: staticperl downloads, compile and installs a perl version of |
85 | your choice in ~/.staticperl. You can add extra modules either by |
90 | your choice in ~/.staticperl. You can add extra modules either by |
86 | letting staticperl install them for you automatically, or by using CPAN |
91 | letting staticperl install them for you automatically, or by using CPAN |
87 | and doing it interactively. This usually takes 5-10 minutes, depending |
92 | and doing it interactively. This usually takes 5-10 minutes, depending |
… | |
… | |
170 | want to install from these instead of from CPAN, you can do this |
175 | want to install from these instead of from CPAN, you can do this |
171 | using this command by specifying all the directories with modules in |
176 | using this command by specifying all the directories with modules in |
172 | them that you want to have built. |
177 | them that you want to have built. |
173 | |
178 | |
174 | staticperl clean |
179 | staticperl clean |
175 | Runs make distclean in the perl source directory (and potentially |
180 | Deletes the perl source directory (and potentially cleans up other |
176 | cleans up other intermediate files). This can be used to clean up |
181 | intermediate files). This can be used to clean up files only needed |
177 | intermediate files without removing the installed perl interpreter. |
182 | for building perl, without removing the installed perl interpreter, |
|
|
183 | or to force a re-build from scratch. |
|
|
184 | |
|
|
185 | At the moment, it doesn't delete downloaded tarballs. |
178 | |
186 | |
179 | staticperl distclean |
187 | staticperl distclean |
180 | This wipes your complete ~/.staticperl directory. Be careful with |
188 | This wipes your complete ~/.staticperl directory. Be careful with |
181 | this, it nukes your perl download, perl sources, perl distribution |
189 | this, it nukes your perl download, perl sources, perl distribution |
182 | and any installed modules. It is useful if you wish to start over |
190 | and any installed modules. It is useful if you wish to start over |
… | |
… | |
483 | instsrc ~/src/AnyEvent |
491 | instsrc ~/src/AnyEvent |
484 | instsrc ~/src/XML-Sablotron-1.0100001 |
492 | instsrc ~/src/XML-Sablotron-1.0100001 |
485 | instcpan Anyevent::AIO AnyEvent::HTTPD |
493 | instcpan Anyevent::AIO AnyEvent::HTTPD |
486 | } |
494 | } |
487 | |
495 | |
|
|
496 | preconfigure |
|
|
497 | Called just before running ./Configur in the perl source directory. |
|
|
498 | Current working directory is the perl source directory. |
|
|
499 | |
|
|
500 | This can be used to set any "PERL_xxx" variables, which might be |
|
|
501 | costly to compute. |
|
|
502 | |
488 | postconfigure |
503 | postconfigure |
489 | Called after configuring, but before building perl. Current working |
504 | Called after configuring, but before building perl. Current working |
490 | directory is the perl source directory. |
505 | directory is the perl source directory. |
491 | |
506 | |
492 | Could be used to tailor/patch config.sh (followed by ./Configure -S) |
507 | Could be used to tailor/patch config.sh (followed by sh Configure |
493 | or do any other modifications. |
508 | -S) or do any other modifications. |
494 | |
509 | |
495 | postbuild |
510 | postbuild |
496 | Called after building, but before installing perl. Current working |
511 | Called after building, but before installing perl. Current working |
497 | directory is the perl source directory. |
512 | directory is the perl source directory. |
498 | |
513 | |