Re: Install mod perl
André Warnier <[email protected]>
| Newsgroups | gmane.comp.apache.mod-perl |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> 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.