Hoping there might be another FreeBSD user here who may have been
through this already...
For reasons I don't want to trouble you with, I had to install the
latest perl freebsd port into /usr/local/rt3/perl/ and now I need to
get mod_perl to compile against that version.
I edited the freebsd port Makefile and added
MOD_PERLCONFIG=/usr/local/rt3/perl/bin/perl to CONFIGURE_ARGS and I
edited the shebang line in /usr/local/bin/apxs to point to my new
installation of perl.
Then, I tried using this cli in the mod_perl port directory.
bash-2.05b# PERL5LIB=/usr/local/rt3/perl/lib/site_perl/5.8.2/i386-freebsd
PREFIX=/usr/local/rt3/perl SITE_PERL=/usr/local/rt3/perl/lib/site_perl make
While pieces of the compile output show that it is using
/usr/local/rt3/perl/*, most of it shows that it's pulling from
/usr/local/lib/perl5/* for libs.
I even combed through the work directory and manually changed the
references to the perl binary to /usr/local/rt3/perl/bin/perl with no
luck. Same results every time. And yes, I've been doing a make clean
in between compiles.
I have also editied the /etc/make.conf file so that the perl options are:
# 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 the port 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 port's 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.
I can't alter the perl binary in /usr/bin/perl, so how can I force
mod_perl to compile using the perl binary in my non-standard perl
path?
Any advice?
--
Andy Harrison
(full headers for details)
--
Andy Harrison
Great Works Internet
System Operations
(full headers for details)
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html