… | |
… | |
147 | |
147 | |
148 | The command |
148 | The command |
149 | |
149 | |
150 | staticperl install |
150 | staticperl install |
151 | |
151 | |
152 | Is normally all you need: It installs the perl interpreter in |
152 | is normally all you need: It installs the perl interpreter in |
153 | F<~/.staticperl/perl>. It downloads, configures, builds and installs the |
153 | F<~/.staticperl/perl>. It downloads, configures, builds and installs the |
154 | perl interpreter if required. |
154 | perl interpreter if required. |
155 | |
155 | |
156 | Most of the following commands simply run one or more steps of this |
156 | Most of the following F<staticperl> subcommands simply run one or more |
157 | sequence. |
157 | steps of this sequence. |
|
|
158 | |
|
|
159 | If it fails, then most commonly because the compiler options I selected |
|
|
160 | are not supported by your compiler - either edit the F<staticperl> script |
|
|
161 | yourself or create F<~/.staticperl> shell script where your set working |
|
|
162 | C<PERL_CCFLAGS> etc. variables. |
158 | |
163 | |
159 | To force recompilation or reinstallation, you need to run F<staticperl |
164 | To force recompilation or reinstallation, you need to run F<staticperl |
160 | distclean> first. |
165 | distclean> first. |
161 | |
166 | |
162 | =over 4 |
167 | =over 4 |
… | |
… | |
209 | |
214 | |
210 | =item F<staticperl clean> |
215 | =item F<staticperl clean> |
211 | |
216 | |
212 | Deletes the perl source directory (and potentially cleans up other |
217 | Deletes the perl source directory (and potentially cleans up other |
213 | intermediate files). This can be used to clean up files only needed for |
218 | intermediate files). This can be used to clean up files only needed for |
214 | building perl, without removing the installed perl interpreter, or to |
219 | building perl, without removing the installed perl interpreter. |
215 | force a re-build from scratch. |
|
|
216 | |
220 | |
217 | At the moment, it doesn't delete downloaded tarballs. |
221 | At the moment, it doesn't delete downloaded tarballs. |
|
|
222 | |
|
|
223 | The exact semantics of this command will probably change. |
218 | |
224 | |
219 | =item F<staticperl distclean> |
225 | =item F<staticperl distclean> |
220 | |
226 | |
221 | This wipes your complete F<~/.staticperl> directory. Be careful with this, |
227 | This wipes your complete F<~/.staticperl> directory. Be careful with this, |
222 | it nukes your perl download, perl sources, perl distribution and any |
228 | it nukes your perl download, perl sources, perl distribution and any |
… | |
… | |
703 | |
709 | |
704 | More commonly, you would either activate 64 bit integer support |
710 | More commonly, you would either activate 64 bit integer support |
705 | (C<-Duse64bitint>), or disable large files support (-Uuselargefiles), to |
711 | (C<-Duse64bitint>), or disable large files support (-Uuselargefiles), to |
706 | reduce filesize further. |
712 | reduce filesize further. |
707 | |
713 | |
708 | =item C<PERL_CC>, C<PERL_CPPFLAGS>, C<PERL_OPTIMIZE>, C<PERL_LDFLAGS>, C<PERL_LIBS> |
714 | =item C<PERL_CC>, C<PERL_CCFLAGS>, C<PERL_OPTIMIZE>, C<PERL_LDFLAGS>, C<PERL_LIBS> |
709 | |
715 | |
710 | These flags are passed to perl's F<Configure> script, and are generally |
716 | These flags are passed to perl's F<Configure> script, and are generally |
711 | optimised for small size (at the cost of performance). Since they also |
717 | optimised for small size (at the cost of performance). Since they also |
712 | contain subtle workarounds around various build issues, changing these |
718 | contain subtle workarounds around various build issues, changing these |
713 | usually requires understanding their default values - best look at the top |
719 | usually requires understanding their default values - best look at |
714 | of the F<staticperl> script for more info on these. |
720 | the top of the F<staticperl> script for more info on these, and use a |
|
|
721 | F<~/.staticperlrc> to override them. |
|
|
722 | |
|
|
723 | Most of the variables override (or modify) the corresponding F<Configure> |
|
|
724 | variable, except C<PERL_CCFLAGS>, which gets appended. |
715 | |
725 | |
716 | =back |
726 | =back |
717 | |
727 | |
718 | =head4 Variables you probably I<do not want> to override |
728 | =head4 Variables you probably I<do not want> to override |
719 | |
729 | |