perl 5.30 を
$ wget https://www.cpan.org/src/5.0/perl-5.30.0.tar.gz $ tar -xvf perl-5.30.0.tar.gz $ cd perl-5.30.0 $ ./Configure -Dusethreads -de -Accflags='-fPIC' $ make $ make test $ sudo make install
で installし
その後、mod_perl を install しようとしたら
$ vi /xing/local/httpd/bin/apxs
old) #!/replace/with/path/to/perl/interpreter -w
new) #!/xing/local/perl/bin/perl –w
$ wget http://www.apache.org/dyn/closer.cgi/perl/mod_perl-2.0.11.tar.gz
$ tar -zxvf mod_perl-2.0.11.tar.gz
$ cd mod_perl-2.0.11
$ /xing/local/perl/bin/perl Makefile.PL MP_APXS=/xing/local/httpd/bin/apxs
:
Configuring Apache/2.4.41 mod_perl/2.0.11 Perl/v5.30.0
[ error] mod_perl does not currently support multiplicity without ithreads.
[ error] Please recompile Perl with -Duseithreads and -Dusemultiplicity
のようなエラー発生。
どうやら perl の Configureで使用した「-Dusethreads」は古いらしく、 最近は「-Duseithreads -Dusemultiplicity」を使うらしい。
なので、perl 5.30 を次のように再installして解消。
$ ./Configure -des \
-Dprefix=/xing/local/perl -Duseithreads -Dusemultiplicity \
-Accflags='-fPIC'
$ make
$ make test
$ sudo make install