0

I'm trying to install Image Magick on MAMP. And I'm seriously out of my depth.

I've installed MacPorts, and opened the terminal. I've typed in sudo port -v selfupdate per the instructions on http://www.macports.org/install.php#pkg

But the response I get from the Terminal is Unrecognized action "sudo"

I've googled and googled, but can't find anything that makes a slab of sense.

Any clever people feeling generous?

skaffman
  • 398,947
  • 96
  • 818
  • 769
Chris
  • 523
  • 1
  • 6
  • 14

2 Answers2

5

You are running ports on interactive mode, and you are not in your system shell. The port program won't recognize sudo as one of its commands, and I am guessing you didn't run your port command with sudo so you won't be able to do much, try the following:

  • Click on your terminal.
  • Press command + Q (command is the key left of your space bar)
  • Open your terminal once again and do not run anything on else but the command suggested:

    sudo port -v selfupdate

If you get the same thing, you are still or again in Macports interactive session, type CTRL + C, or type quit.

Francisco Soto
  • 10,277
  • 2
  • 37
  • 46
  • I have the same issue. Doesn't work for me. http://stackoverflow.com/questions/9694395/sudo-port-command-not-found. – Ava Mar 20 '12 at 14:19
1

If you are using MacOS Ventura then there exists an issue with this command

Once you installed the dmg file installer:

Add in below commands self-update is not required:

Type in sudo port this will give you the version and will allow you to enter via a shell mode

Following that you can type in version or help to get more details on actions to followenter image description here