Install mod perl

Install mod perl

am 17.05.2011 20:01:54 von Marco

This is a multi-part message in MIME format.
--------------070009000109050902090304
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

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

--------------070009000109050902090304
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit








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




--------------070009000109050902090304--

Re: Install mod perl

am 17.05.2011 20:03:55 von Fred Moyer

Try running 'perl Makefile.PL MP_APXS=/usr/local/bin/apxs'

On Tue, May 17, 2011 at 11:01 AM, marco 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
>

Re: Install mod perl

am 17.05.2011 20:06:06 von Marco

This is a multi-part message in MIME format.
--------------020103020706060003090300
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

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 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
>>
It prints:
*Reading Makefile.PL args from @ARGV
MP_APXS = /usr/local/bin/apxs
no conflicting prior mod_perl version found - good.
[ error] Unable to determine server version, aborting.
[ error] Invalid MP_APXS specified?
*
Directory /usr/local/bin/ does not contains apxs.

--------------020103020706060003090300
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit




http-equiv="Content-Type">


Il 17/05/2011 20.03, Fred Moyer ha scritto:
cite="mid:BANLkTimuruLK2EjQKtAwJA_u_aVjrqTpxg@mail.gmail.com "
type="cite">

Try running 'perl Makefile.PL MP_APXS=/usr/local/bin/apxs'

On Tue, May 17, 2011 at 11:01 AM, marco 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




It prints:

Reading Makefile.PL args from @ARGV

   MP_APXS = /usr/local/bin/apxs

no conflicting prior mod_perl version found - good.

[  error] Unable to determine server version, aborting.

[  error] Invalid MP_APXS specified?



Directory /usr/local/bin/ does not contains apxs.




--------------020103020706060003090300--

Re: Install mod perl

am 17.05.2011 20:10:54 von Marco

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 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
>>
Ok, i solved it.
Thanks for your suggests!!

Re: Install mod perl

am 17.05.2011 20:19:26 von Marco

This is a multi-part message in MIME format.
--------------040008040206070409060907
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

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 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

--------------040008040206070409060907
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit




http-equiv="Content-Type">



Il 17/05/2011 20.03, Fred Moyer ha scritto:
cite="mid:BANLkTimuruLK2EjQKtAwJA_u_aVjrqTpxg@mail.gmail.com "
type="cite">

Try running 'perl Makefile.PL MP_APXS=/usr/local/bin/apxs'

On Tue, May 17, 2011 at 11:01 AM, marco 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



--------------040008040206070409060907--

Re: Install mod perl

am 17.05.2011 22:33:03 von aw

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.

Re: Install mod perl

am 17.05.2011 23:06:58 von aw

marco wrote:
....
Maybe as a tip to both Tom and Marco :

It all depends if your focus is on installing apache and perl and mod_perl, or rather on
just using them to achieve another main goal.

But if your main aim is not the installation of apache and mod_perl, then I would
recommend to both, to use the software packaging system of your respective flavors of
Linux, to install Apache, perl and mod_perl using these pre-packaged versions.
That will take just a few minutes, and will work without having to spend hours resolving
dependencies, fixing missing links (maybe wrongly), and creating your own startup scripts.

And the hours you save will then be available for achieving your main goal.

Re: Install mod perl

am 18.05.2011 17:20:54 von Marco

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..)
>
Hi Andrè,
i want to install it in a Ubuntu 10.10. I have just installed Apache
2.2.18 and now I want to load mod_perl module in a dynamic way.
> 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.
Sorry, but i can't find this mail. Can you post if you saved it?
May be, it was deleted in my e-mail client.

Thanks

Re: Install mod perl

am 18.05.2011 18:38:46 von Marco

This is a multi-part message in MIME format.
--------------020008090200010808050300
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

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




--------------020008090200010808050300
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit




http-equiv="Content-Type">


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

    








--------------020008090200010808050300--

Re: Install mod perl

am 18.05.2011 19:22:04 von aw

marco wrote:
> 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!!!!
>
Well, we try.
Why do you not save yourself all that aggravation and do as Cosimo suggested earlier in
another thread :

pre-requisite : disable the Apache which you tried to compile/install by hand, then..

On Wed, 18 May 2011 00:05:46 +1000, Tom Kane wrote:

> I now want to add mod_perl (in the .so form) to apache2.
> [...]
> I am still new in the Unix/Linux environment -- at least from the
> standpoint of installing systems software -- so I am sure I am missing
> something.

Hi Tom,

if you don't need to compile the software yourself,
and you're just starting, I would suggest an easy path:

# Install the relevant packages
sudo apt-get install apache2 apache2-mpm-prefork
sudo apt-get install libapache2-mod-perl2 libapache2-mod-apreq2

# Enable the apreq and mod perl modules
a2enmod apreq
a2enmod perl

# Restart apache
/etc/init.d/apache2 restart

--
Cosimo

Note : you may need to do

sudo /etc/init.d/apache2 restart

as the last step, instead of what is above.

Re: Install mod perl

am 18.05.2011 19:35:25 von Marco

Il 18/05/2011 19.22, André Warnier ha scritto:
> marco wrote:
>> 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!!!!
>>
> Well, we try.
> Why do you not save yourself all that aggravation and do as Cosimo
> suggested earlier in another thread :
>
> pre-requisite : disable the Apache which you tried to compile/install
> by hand, then..
>
> On Wed, 18 May 2011 00:05:46 +1000, Tom Kane
> wrote:
>
> > I now want to add mod_perl (in the .so form) to apache2.
> > [...]
> > I am still new in the Unix/Linux environment -- at least from the
> > standpoint of installing systems software -- so I am sure I am missing
> > something.
>
> Hi Tom,
>
> if you don't need to compile the software yourself,
> and you're just starting, I would suggest an easy path:
>
> # Install the relevant packages
> sudo apt-get install apache2 apache2-mpm-prefork
> sudo apt-get install libapache2-mod-perl2 libapache2-mod-apreq2
>
> # Enable the apreq and mod perl modules
> a2enmod apreq
> a2enmod perl
>
> # Restart apache
> /etc/init.d/apache2 restart
>
I fixed the problem not in this way but i installed a perl packet that
was necessary for the compilation.
I hope was that the problem.
I type:
$perl Makefile.PL MP_APXS=/usr/local/apache/bin/apxs
$make
$make install
and it was ok
$/usr/local/apache/bin/apachectl start
and it was ok.

Now, for try if mod_perl works i must write some module.
Let's see!!!

Thanks for suggests of all users answered to me!!!!