1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
Perl5 FAQ
<<<Obtaining Perl5>>>
You can find latest and greatest release of Perl from following CPAN
URL, which directs you to (probably) the nearest site for you.
http://www.perl.com/CPAN/src/5.0/
<<<Installing Perl5>>>
(1) Type "./Configure -d" to let "Configure" check your system
configuration. The "-d" option lets Perl5 choose default values rather
than asking questions to you. "Configure" creates the "config.sh" file
as a result.
% cd _somewhere_perl5_locates_
% ./Configure -d
(2) Edit "config.sh" at the final stage of "Configure" using shell escape.
e.g. !vi config.sh
If you want to use RPOP, "sperl" is required. To gain "sperl", ensure
that "d_dosuid" is 'defined' in "config.sh".
e.g. d_dosuid='define'
Unfortunately dynamic loading doesn't work on some OSes. In this case,
ensure that Perl5 uses static loading instead.
e.g. dynamic_ext=''
static_ext='DB_File Fcntl IO NDBM_File Opcode POSIX SDBM_File Socket'
(3) When you finish editing, "Configure" reflects "config.sh" to all
Makefiles and etc. Then type "make", "make test", and "make install".
% make
% make test
% su
# make install
<<<Pacifying Perl5 Warning>>>
Perl5 warns if appropriate locale for "LANG" is not found.
Suppose that you set "LANG" "japanese" on BSD/OS 3.0. Perl 5 warns as
follows:
warning: setlocale(LC_CTYPE, "") failed.
warning: LC_ALL = "(null)", LC_CTYPE = "(null)", LANG = "japanese",
warning: falling back to the "C" locale.
The best solution is to create an alias link to one of existing
locales. For instance, BSD/OS has /usr/share/locale/Japanese-EUC. So,
create "japanese" link, which is the value of "LANG", to it.
% su
# cd /usr/share/locale
# ln -s Japanese-EUC japanese
|