You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Adam Garcia <ad...@netzero.net> on 2002/03/10 02:14:27 UTC

Newbie install problems

Hello everyone,

I'm trying to install mod_perl so I can use scoop, but I can't get it
working. I followed the instructions at guide.kuro5hin.org to a tee.
I've tried to install it via the ports since I'm running FreeBSD 4.5
stable and receive this error:

===>  Building for mod_perl-1.26
(cd ./apaci && PERL5LIB=/usr/ports/www/mod_perl/work/mod_perl-1.26/lib
make)
Perl lib version (5.00503) doesn't match executable version (5.006001)
at /usr/libdata/perl/5.00503/mach/Config.pm line 7.
Compilation failed in require at
/usr/libdata/perl/5.00503/ExtUtils/Install.pm line 9.
BEGIN failed--compilation aborted at
/usr/libdata/perl/5.00503/ExtUtils/Install.pm line 9.
Compilation failed in require.
BEGIN failed--compilation aborted.
*** Error code 255

Stop in /usr/ports/www/mod_perl/work/mod_perl-1.26.
*** Error code 1

Stop in /usr/ports/www/mod_perl.
*** Error code 1

Stop in /usr/ports/www/mod_perl.
*** Error code 1

When I download the tarball and tar zxf, run the Makefile.PL and then
make && make install it seems to work fine but I don't think it's
installing. I checked the httpd.conf file and mod_perl is not anywhere
in the file. What am I missing?

Thanks in advance


Re: Newbie install problems

Posted by Geoffrey Young <ge...@modperlcookbook.org>.
 
> ===>  Building for mod_perl-1.26
> (cd ./apaci && PERL5LIB=/usr/ports/www/mod_perl/work/mod_perl-1.26/lib
> make)
> Perl lib version (5.00503) doesn't match executable version (5.006001)
> at /usr/libdata/perl/5.00503/mach/Config.pm line 7.

I saw this just this week at work - turned out that /usr/bin/perl wasn't 
symlinked to /usr/local/bin/perl, so the version of perl they were running with 
(due to the user's PATH) wasn't the same that make was picking up.

you should probably fix your system, since it's sometimes convenient to have 
/usr/bin/perl and /usr/local/bin/perl be the same.  in the meanwhile, you can 
always use the absolute path to the perl binary you want to use when buliding 
mod_perl

$ /path/to/perl-5.006 Makefile.PL \
   APACHE_PREFIX=/usr/local/apache \
   ...
$ make and friends

HTH

--Geoff