You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Jonathan Steffan <jo...@bandwidthmarket.com> on 2005/08/25 22:40:57 UTC
Apache, PERL, Mod_Perl Install Issues
Thanks everyone for all your help. I am still having issues. When
installing to /opt everything works fine untill I go to install
mod_perl. I am erroring out on the line...
/opt/perl/bin/perl Makefile.PL MP_APXS=/opt/httpd/bin/apxs
-fails with-
Reading Makefile.PL args from @ARGV
MP_APXS = /opt/httpd/bin/apxs
no conflicting prior mod_perl version found - good.
[ error] '/opt/httpd/bin/apxs -q INCLUDEDIR' failed:
[ error] Can't locate strict.pm in @INC (@INC contains: /usr/local/lib/perl5/5.8.7/i686-linux /usr/local/lib/perl5/5.8.7 /usr/local/lib/perl5/site_perl/5.8.7/i686-linux /usr/local/lib/perl5/site_perl/5.8.7 /usr/local/lib/perl5/site_perl .) at /opt/httpd/bin/apxs line 19.
BEGIN failed--compilation aborted at /opt/httpd/bin/apxs line 19.
[ error] Unable to determine server version, aborting.
[ error] Invalid MP_APXS specified?
Any ideas?
Jon
Tom Schindl wrote:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>
>
>
>>I went back to my 2.0.40 install of Apache. The 2.0.54 was not playing
>>nice with plesk. How do I update the @INC path and/or mod_perl for the
>>new perl 5.8.7? I try using CPAN with install Bundle::Apache and no go.
>>Any ideas?
>>
>>-Jon
>>
>>
>>
>>
>
>I not sure if there have been API changes since 2.0.40 and 2.0.54 but
>compiling mod-perl-2.x with apache 2.0.54 and use it with 2.0.40 this
>will certainly lead to very strange situations you.
>
>As in the message before there's nothing wrong when running 2.0.40 if
>your plesk system needs it and install your own apache-2.0.54 and run it
>on a different port (e.g. 81).
>
>As already said before als compiling Apache-2.0.x is straight forward
>and nothing you could not manage without reading the bundled
>INSTALL-File(s).
>
>Default-Install-Procedure:
>- ------------------8<------------------
>tar xzvf stable.tar.gz
>cd perl-5.8.7/
>sh ./Configure -de -Dprefix=/opt/myperl
>make
>make test
>su
>make install
>exit
>cd ..
>tar xjvf httpd-2.0.54.tar.bz2
>cd httpd-2.0.54
>./configure --prefix=/opt/myapache
>make
>make install
>vi /opt/myapache/conf/httpd.conf # search for Listen and set it to 81
>cd ..
>cd mod_perl-2.0.1/
>/opt/myperl/bin/perl Makefile.PL MP_APXS=/opt/myapache/bin/apxs
>make
>make test
>make install
>vi /opt/myapache/conf/httpd.conf # Add LoadModule perl_module
>modules/mod_perl.so
>/opt/myapache/bin/apachectl start
>- ------------------8<------------------
>
>I've timed it and it took my now exactly 20 Minutes to get a setup with:
>- - perl 5.8.7
>- - httpd-2.0.54
>- - mod-perl 2.0.1
>
>When it comes to php I have no idea but I think its also that straight
>forward. As I've always said I'm not a friend of those rpm's and it
>really does take that long to get a running system. At least less time
>than it took you:
>- - find what's going wrong with your installation
>- - work with ancient software like apache-2.0.40 causing you headache
> because you are runing it long standing fixed bugs
>
>Tom
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.4.0 (GNU/Linux)
>Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org
>
>iD8DBQFDBX0jkVPeOFLgZFIRAg63AJ485/bL6i5wgJxcPtbXG4Raw9VffgCgniot
>hkzZ4lKj1xLzk36cKQ6xB6M=
>=dINX
>-----END PGP SIGNATURE-----
>
>
Re: Apache, PERL, Mod_Perl Install Issues
Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
Jonathan Steffan wrote:
> I had installed perl to /usr/local/lib/perl5/5.8.7 in a previous
> exercise. The main system perl is supposed to be 5.8.0. This issues
> seems to be lingering around from that install? I only removed the
> /usr/local/lib/perl5/5.8.7 and all related files I could find for perl
> 5.8.7 with locate. I will try your advice with changing the apxs file.
> Any other notes? Thanks for your message.
To prevent this, when you install httpd, use the --with-perl option to
./configure i.e.
./configure --prefix=/opt/httpd --with-perl=/opt/perl/bin/perl ....
--
END
------------------------------------------------------------
What doesn't kill us can only make us stronger.
Nothing is impossible.
Philip M. Gollucci (pgollucci@p6m7g8.com) 301.254.5198
Consultant / http://p6m7g8.net/Resume/
Senior Developer / Liquidity Services, Inc.
http://www.liquidityservicesinc.com
http://www.liquidation.com
http://www.uksurplus.com
http://www.govliquidation.com
http://www.gowholesale.com
Re: Apache, PERL, Mod_Perl Install Issues
Posted by Jonathan Steffan <jo...@bandwidthmarket.com>.
Philip M. Gollucci wrote:
> Jonathan Steffan wrote:
>
>> no conflicting prior mod_perl version found - good.
>> [ error] '/opt/httpd/bin/apxs -q INCLUDEDIR' failed:
>> [ error] Can't locate strict.pm in @INC (@INC contains:
>> /usr/local/lib/perl5/5.8.7/i686-linux /usr/local/lib/perl5/5.8.7
>> /usr/local/lib/perl5/site_perl/5.8.7/i686-linux
>> /usr/local/lib/perl5/site_perl/5.8.7 /usr/local/lib/perl5/site_perl
>> .) at /opt/httpd/bin/apxs line 19.
>> BEGIN failed--compilation aborted at /opt/httpd/bin/apxs line 19.
>> [ error] Unable to determine server version, aborting.
>> [ error] Invalid MP_APXS specified?
>>
>> Any ideas?
>
>
> Apparently apxs is using the wrong perl.
> You might change the #! line at the top of it,
> update your path to have /opt/perl/bin before /usr/local/bin,
> or rename your system perl temporarily.
>
> HTH
>
>
Phil,
I had installed perl to /usr/local/lib/perl5/5.8.7 in a previous
exercise. The main system perl is supposed to be 5.8.0. This issues
seems to be lingering around from that install? I only removed the
/usr/local/lib/perl5/5.8.7 and all related files I could find for perl
5.8.7 with locate. I will try your advice with changing the apxs file.
Any other notes? Thanks for your message.
-Jon
Re: Apache, PERL, Mod_Perl Install Issues
Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
Jonathan Steffan wrote:
> no conflicting prior mod_perl version found - good.
> [ error] '/opt/httpd/bin/apxs -q INCLUDEDIR' failed:
> [ error] Can't locate strict.pm in @INC (@INC contains:
> /usr/local/lib/perl5/5.8.7/i686-linux /usr/local/lib/perl5/5.8.7
> /usr/local/lib/perl5/site_perl/5.8.7/i686-linux
> /usr/local/lib/perl5/site_perl/5.8.7 /usr/local/lib/perl5/site_perl .)
> at /opt/httpd/bin/apxs line 19.
> BEGIN failed--compilation aborted at /opt/httpd/bin/apxs line 19.
> [ error] Unable to determine server version, aborting.
> [ error] Invalid MP_APXS specified?
>
> Any ideas?
Apparently apxs is using the wrong perl.
You might change the #! line at the top of it,
update your path to have /opt/perl/bin before /usr/local/bin,
or rename your system perl temporarily.
HTH
--
END
------------------------------------------------------------
What doesn't kill us can only make us stronger.
Nothing is impossible.
Philip M. Gollucci (pgollucci@p6m7g8.com) 301.254.5198
Consultant / http://p6m7g8.net/Resume/
Senior Developer / Liquidity Services, Inc.
http://www.liquidityservicesinc.com
http://www.liquidation.com
http://www.uksurplus.com
http://www.govliquidation.com
http://www.gowholesale.com