Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

OT: mod_perl freebsd port

by naChoZ (Curate)
on Jul 23, 2003 at 15:22 UTC ( [id://277202]=perlquestion: print w/replies, xml ) Need Help??

naChoZ has asked for the wisdom of the Perl Monks concerning the following question:

Mostly OT question.

I'd like to install mod_perl from ports on freebsd, but even if I do something as simple as 'make extract' it complains:

Error: you don't have the right version of perl in /usr/bin.

This is correct, I want to install it against the version of perl in /usr/local/bin not against the version in /usr/bin.

Any advice?

I cannot use the 'use.perl' script because that takes over the /usr/bin/perl binary which I must leave untouched. (see CLM)

~~
naChoZ

Replies are listed 'Best First'.
Re: OT: mod_perl freebsd port
by dga (Hermit) on Jul 23, 2003 at 15:26 UTC

    The makefile should have the paths of the things it wants to find. (perl, the lib directories etc). Changing that should give you what you want. If there is a configure script, it should have an option to specify where these things all live on the configure command line.

      Yes, I've tried that. Continues to give the same exact error message no matter what I do. After inspecting /usr/ports/Mk/bsd.port.mk, it looked like I could add PERL=/usr/local/bin/perl and PERL5=/usr/local/bin/perl. Doesn't change anything though, same error.

      ~~
      naChoZ

Re: OT: mod_perl freebsd port
by jsprat (Curate) on Jul 23, 2003 at 17:27 UTC
    I built mod_perl from ports, but I use the 5.8.0 from ports.

    Looking at the Makefile, it looks like you need to override the defaults of PERL5, PERL_VER and PERL_VERSION. A command line like

    make PERL5=/usr/local/bin/perl PERL_VER=5.8.0 PERL_VERSION=5.8.0

    should do the trick (but no promises ;). Be sure to use the same arguments for make install. If all else fails, build it by hand.

    HTH...

    Update: s/PERL/PERL5/ in command line

    Update 2: Note that there should not be a -D, ie: not '-DPERL5=...' but 'PERL5=...'

      I tried it. No luck. Very strange. I've used make -Dvariable in the past with no troubles, but nothing I did would change its mind about perl being in /usr/bin/perl. I even did make -DPERL=/usr/local/bin/perl -VPERL (as well as -E) and it would output /usr/bin/perl

      Anyway, I finally just cheated and edited the /usr/ports/Mk/bsd.port.mk file temporarily and that worked.

      ~~
      naChoZ

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://277202]
Approved by dga
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-20 03:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found