Re: Install mod perl

marco <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
Il 17/05/2011 20.03, Fred Moyer ha scritto:
> Try running 'perl Makefile.PL MP_APXS=/usr/local/bin/apxs'
>
> On Tue, May 17, 2011 at 11:01 AM, marco<[email protected]>  wrote:
>> Hi all,
>> I tried to install mod_perl in a dynamic mode in Linux 10.04 but it doesn't
>> work. The installation stops.
>> I typed:
>> $cd mod_perl-2.0.5
>> I have installed apache from source files(v2.2.18), so the next step i tried
>> is:
>> $perl Makefile.PL EVERYTHING=1 USE_APXS=1 WITH_APXS=/usr/local/apache/bin/
>> but it prints me on display this:
>>
>> Reading Makefile.PL args from @ARGV
>> no conflicting prior mod_perl version found - good.
>>
>> Next we need to know where the 'apxs' script is located. This script
>> provides a lot of information about the Apache installation, and makes
>> it easier to find things on your system. Normally it's located in the
>> same directory as the 'httpd' executable.
>>
>> If you don't yet have Apache installed you can build Apache against
>> the Apache source code, but you won't be able to run the test suite (a
>> very important step). Therefore you may want to install Apache before
>> proceeding.
>>
>>
>> Please provide a full path to 'apxs' executable
>> (press Enter if you don't have it installed):
>>
>> But I have installed yet apache and apxs.
>> apxs is located on directory /usr/local/apache/bin, so what can i do to
>> compile mod_perl.
>> What's the matter?
>>
>> Bye
>>
I'm sorry but the first step is ok, but it gives some warning:
*[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.*

Then I typed *make* but it exit with 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*

What can i do?Any idea?

Thanks
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.