mod_perl installation and non-standard perl path

Andy Harrison ah54 at harrisonfamily.com
Mon Apr 19 10:04:38 PDT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
On Sat, 17 Apr 2004 13:28:14 +0200, Melvyn Sopacua wrote
Subject: "Re: mod_perl installation and non-standard perl path"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

>  In stead of doing all that manual work, why not set variables in make.conf?
>  The ones you're looking for, can be found by grepping 'PERL' 
>  in /usr/ports/Mk/bsd.port.mk
> 

Ok, these lines are in /etc/make.conf now:

# grep PERL /etc/make.conf | grep '^[^#]'
PERL_VER=5.8.2
PERL_VERSION=5.8.2
SITE_PERL=/usr/local/rt3/perl/lib/site_perl/${PERL_VER}
PERL_ARCH=mach
PERL5=/usr/local/rt3/perl/bin/perl
PERL=/usr/local/rt3/perl/bin/perl
NOPERL=yo
NO_PERL=yo
NO_PERL_WRAPPER=yo

However, it doesn't even try to build now...

# make
Dependency error: you don't have the right version of perl in /usr/bin.
*** Error code 1

Stop in /usr/ports/www/mod_perl.

I monkeyed with my Makefile and added the variables there as well.

# grep PERL Makefile | grep '^[^#]'
MASTER_SITES=   ${MASTER_SITE_PERL_CPAN}
                ${SITE_PERL}/LWP.pm:${PORTSDIR}/www/p5-libwww
PERL_VER=5.8.2
PERL_VERSION=5.8.2
SITE_PERL=/usr/local/rt3/perl/lib/site_perl/${PERL_VER}
PERL=                   /usr/local/rt3/perl/bin/perl
PERL5=                  /usr/local/rt3/perl/bin/perl
FULLPERL=               /usr/local/rt3/perl/bin/perl
PERL_CONFIGURE= yes
CONFIGURE_ARGS+=        USE_APXS=1 EVERYTHING=1 INSTALLSITELIB=${SITE_PERL} \
                        MOD_PERLCONFIG=/usr/local/rt3/perl/bin/perl \
                        INSTALLSITEARCH=${SITE_PERL}/${PERL_ARCH} \
                        PERL_EXTRA_CFLAGS='-DDEFAULT_PATH="/usr/local/rt3/perl/bin" -DAPPLLIB_EXP="/usr/local/rt3/perl/lib/perl5/5.8.2/BSDPAN" -DMOD_PERL_PREFIX="/usr/local/rt3/perl/lib/site_perl/5.8.2/i386-freebsd" -DDEFAULT_PATH="/usr/local/rt3/perl/bin"'

I'd think that things like MOD_PERL_PREFIX would help, but it's not happening.

>  Also check if ldconfig lists libs in /usr/local/lib/perl5.
>  You will most probably still get conflicts having the old perl installation 
>  around or at least the /usr/local/lib/perl5 tree.

I checked, there isn't anything out of the ordinary there.


- -- 
Andy Harrison
Great Works Internet
System Operations
(full headers for details)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFAhAahCYaHi6DasBoRAkXJAKClD97CH+kZyysxvB2TJbs2Xxys1gCdG/YU
dKrPpSXs4BTYJpxJd4irc5k=
=cXIW
-----END PGP SIGNATURE-----


More information about the freebsd-ports mailing list