Note that there are some explanatory texts on larger screens.

plurals
  1. POsudo: port: command not found
    text
    copied!<p>I recently uninstalled Xcode 4.2 and re-installed Xcode 4.3.1. Command Line Tools are installed. I then installed MacPort using “dmg” disk images for Lion from macports.org. Since, I was getting <code>sudo: port: command not found</code> after every use of port, I followed <a href="http://bparanj.blogspot.com/2007/03/sudo-port-command-not-found.html" rel="noreferrer">this</a> and <a href="https://stackoverflow.com/questions/7501678/set-environment-variables-on-mac-os-x-lion">this post</a> to create a <code>.bash_profile</code> file(wasn't present earlier) and then put in it the following but to no avail.</p> <pre><code>export PATH=$PATH:/opt/local/bin export MANPATH=$MANPATH:/opt/local/share/man export INFOPATH=$INFOPATH:/opt/local/share/info </code></pre> <p>Following <a href="http://beginrescueend.com/integration/macports/" rel="noreferrer">this post</a></p> <pre><code>➜ ~ git:(master) ✗ rvm install 1.8.7 --with-openssl-dir=/opt/local You requested building with '/usr/bin/gcc-4.2' but it is not in your path. ➜ ~ git:(master) ✗ vi .rvmrc rvm_archflags="-arch x86_64" export CC="/usr/bin/gcc-4.2" export CFLAGS="-O2 -arch x86_64" export LDFLAGS="-L/opt/local/lib" export CPPFLAGS="-I/opt/local/include" </code></pre> <p>Renaming <code>.bash_profile</code> to <code>.profile</code></p> <pre><code>➜ ~ git:(master) ✗ vi .bash_profile ➜ ~ git:(master) ✗ mv .bash_profile .profile ➜ ~ git:(master) ✗ mv .profile usage: mv [-f | -i | -n] [-v] source target mv [-f | -i | -n] [-v] source ... directory ➜ ~ git:(master) ✗ mv -f .bash_profile .profile mv: rename .bash_profile to .profile: No such file or directory ➜ ~ git:(master) ✗ port zsh: correct 'port' to 'pr' [nyae]? n zsh: command not found: port ➜ ~ git:(master) ✗ which port port not found ➜ ~ git:(master) ✗ </code></pre> <p><code>.profile</code> content:</p> <pre><code>export PATH=$PATH:/opt/local/bin export MANPATH=$MANPATH:/opt/local/share/man export INFOPATH=$INFOPATH:/opt/local/share/info </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload