configuration - Why can I not override make's environment variables in FreeBSD's apache port? -


I am trying to configure Apache 2.2 in ports (Free BSDS). I have written my desired structure with the option of your desired compilation and as far as I can tell, everything starts to check. I.e .:

Make-We & lt; Env_var & gt; What do I expect except __MAKE_CONF = ~ / mk / make.apache22.conf

PERL5 and USE_PERL5 I have tried to try both variables in setting the environment in combination with make.apache22.conf :

  export PERL5 = / usr / Local / bin / perl export USE_PERL5 = 5.12 +  

and yet

  create-e-USE_PERL5 -V PERL5  

returns

  yes /usr/local/bin/perl5.10.1  

(I also override at -E bsd.perl.mk , but the way I am Grocarring bsd.perl.mk and create utility I do not understand why my methods are not working.

What am I missing?

So, in a nutshell, the answer is in the port system. From /usr/ports/mk/bsd.port.mk :

  Note: The difference between USE_ * and WANT_ * variables, and with_ * and WITHOUT_ * variables, is that the inside of the ports of the former ports Are restricted to use, and then users are restricted to the set-qualified options. (Setting to USE_ * in /etc/make.conf is always false).  

Generally, when installed from a port, Makefile contains a series of files that bring to a point:

  /usr/ports/Mk/bsd.perl.mk  

and this file will be sent to all USE_PERL * and PERL * < / Code> Variables defines port's makefile . Specifically, the bsd.perl.mk hard-code will install the required Perl version and Pearl port if it is not already on the system.

The port system is very good, but I have such kind of frustration because there is no easy way to configure the port to use and / or run the already existing software. / P>

Update on August 8th, 2010:

The bottom line is whether you either use the port or you do not, if you do not, then you manually configure Doing and tracking everything yourself, but you get the latest and (hopefully) greatest too. The port system is good, especially when each port can be configured as needed and you can easily get the benefits of upgrading and package management. (For, say, create custom compiled packages to install in prisons - especially the use of tools like EasyGel.) The downside is that sometimes you have to wait a bit before updating to the latest version of the port. It does not have to be a big deal for common software, but you are waiting for a bit more awkward items for a while.

Finally, the solution is to establish Pearl 5.12 Port here and move from there.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -