On Dec 16, 2007, at 15:05, Charlse Darwin wrote:
$ env
PATH=/Users/***/Documents/scripts/:/opt/local/bin:/opt/local/sbin:/
bin:/sbin:/usr/bin:/usr/sbin:/Library/Frameworks/Python.framework/
Versions/Current/bin/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/
usr/local/teTeX/bin/powerpc-apple-darwin-current
$
Is my env set up `correctly'?
Your path is fine. (You do have some odd items in there... is there
really a directory "/Library/Frameworks/Python.framework/Versions/
Current/bin/bin"? Note the two "/bin"s at the end? Also you have /
sbin, /usr/bin and /usr/sbin in your PATH twice each.)
If you want MacPorts's apachectl to be in your PATH, you would need
to add /opt/local/apache2/bin to your PATH. However, you're not meant
to use apachectl directly. You're meant to use launchctl. See the
message that was shown to you when you installed apache2:
$ sudo port install apache2
---> Fetching apache2
---> Attempting to fetch httpd-2.2.6.tar.bz2 from http://
www.apache.org/dist/httpd
---> Verifying checksum(s) for apache2
---> Extracting apache2
---> Applying patches to apache2
---> Configuring apache2
---> Building apache2 with target all
---> Staging apache2 into destroot
---> Creating launchd control script
###########################################################
# A startup item has been generated that will aid in
# starting apache2 with launchd. It is disabled
# by default. Execute the following command to start it,
# and to cause it to launch at startup:
#
# sudo launchctl load -w /Library/LaunchDaemons/
org.macports.apache2.plist
###########################################################
Warning: apache2 requests to install files outside the common
directory structure!
---> Installing apache2 2.2.6_0
---> Activating apache2 2.2.6_0
---> Cleaning apache2
$
In MacPorts 1.6.0, this has been simplified to "sudo port load
apache2" (and "sudo port unload apache2" to unload it).
On Dec 16, 2007, at 3:47 PM, Daniel J. Luke wrote:
On Dec 16, 2007, at 3:25 PM, Charlse Darwin wrote:
It works! Thanks. However still we've got the following:
$ which apachectl
/usr/sbin/apachectl
# as opposed to (which as an example shows my env is set up
correctly)
this doesn't show that your env is set up 'correctly'
$ which bash
/opt/local/bin/bash
$
I believe the apache2 port installs the apachectl binary that you
want in /opt/local/apache2/bin/ so if you want 'apachectl' by
itself to run the macports installed one, you need to put that
directory in your path before /usr/sbin
... but again, this isn't a macports problem.
_______________________________________________
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users