Cara Quinn wrote:
sudo port selfupdate
and while I get the password query, I then am told that the sudo command
isn't recognized. I'm assuming I'm just needing to cd to the correct
folder where MacPorts is installed, but shouldn't this just be
recognized system-wide?…
That command works for me everywhere. I suspect the problem might be
that you don't have the MacPorts directories in your path.
What's the output of the following command:
echo $PATH
For comparison purposes my path begins with:
/opt/local/bin:/opt/local/sbin
which are the MacPorts executable directories. The port executable is in
/opt/local/bin.
If this is indeed your problem, look to
http://www.macports.org/install.php#source
for a discussion of what your path needs to contain.
http://www.oreillynet.com/lpt/a/4641
briefly mentions how to set your path (under the heading "Customizing
Your Environment").
http://www.tech-recipes.com/rx/2621/os_x_change_path_environment_variable
is a longer discussion of same.
--
Benjamin Hawkes-Lewis