Il 17/05/2011 22.33, André Warnier ha scritto:
marco,
under which version/distribution of Linux are you doing this ?
(the answer I am looking for is something like Debian or Ubuntu or
RedHat..)
The reason I am asking you, is that each of these distributions has a
"package" system, which you can probably use to install apache and
perl and mod_perl using just a couple of commands, and not have to
bother doing it "the hard way".
See the answer of Cosimo Streppone previously today in the same
mod_perl list, subject : Ubuntu and mod_perl.
I did some step ahead but mod_perl's installation doesn't work.
I remember that i want to install it into apache like dynamic module, so
I have installed apache and it runs well.
I did these step (in directory "mod_perl-2.0.5"):
1. $perl Makefile.PL MP_APXS=/usr/local/apache/bin/apxs DO_HTTPD=1
USE_APACI=1 EVERYTHING=1
This phase goes ok but it prints some warnings:
*[warning] mod_perl dso library will be built as mod_perl.so
[warning] You'll need to add the following to httpd.conf:
[warning]
[warning] LoadModule perl_module modules/mod_perl.so
[warning]
[warning] depending on your build, mod_perl might not live in
[warning] the modules/ directory.
[warning] Check the results of
[warning]
[warning] $ /usr/local/apache/bin/apxs -q LIBEXECDIR
[warning]
[warning] and adjust the LoadModule directive accordingly.
*
2. I go ahead and i type:
$make
but it prints me some error:
*/usr/bin/ld: cannot find -lperl
collect2: ld returned 1 exit status
make[1]: *** [mod_perl.so] Error 1
make[1]: Leaving directory `/home/marcolino/mod_perl-2.0.5/src/modules/perl'
make: *** [modperl_lib] Error 2*
How can I fix this problem?
Please someone help me!!!!
Bye