Apache 2 - am I doing it wrong?

Scott Haneda talklists at newgeo.com
Fri Sep 11 12:34:32 PDT 2009


>> How would I get this to reflect the /opt location?
>> $whereis apachectl
>> /usr/sbin/apachectl
>
> Just put /opt/local/apache2/bin/ at the front of your PATH env var.


I have had that for ages:
$echo $PATH
/opt/local/bin:/opt/local/sbin:/Users/me/bin:/usr/bin:/bin:/usr/sbin:/ 
sbin:/usr/local/bin:/usr/X11/bin

Maybe it can not be changed:
DESCRIPTION
      The whereis utility checks the standard binary directories for  
the speci-
      fied programs, printing out the paths of any it finds.

I think the answer is going to be to use `which`

$which perl
	/opt/local/bin/perl
$whereis perl
	/usr/bin/perl

Or maybe even better:
$which -a perl
	/opt/local/bin/perl
	/usr/bin/perl

-- 
Scott * If you contact me off list replace talklists@ with scott@ *



More information about the macports-users mailing list