MacPorts- port: command not found?

5.5k Views Asked by At

I am a beginning programmer playing around with making fractal music in python. I am thinking of using the mingus module to play the notes, however mingus need to have fluidsynth installed. I am trying to install fluidsynth using MacPorts. I have the fluidsynth files. When i run

sudo port install fluidsynth 

on my Mac terminal it asks for my password, which i enter. It then says

sudo: port: command not found"

What is going wrong? I am on a macOs mojave, if that helps.

2

There are 2 best solutions below

1
AzyCrw4282 On BEST ANSWER

I suspect that you may have not installed MacPorts correctly. Follow the MacPorts documentation to install it correctly. Once installed, you can run a command like

port installed

to list all of your ports.

If that worked then you can do this

source ~/.bash_profile

and it should work. See more possible solutions from here

0
Hila Grossbard On

as @Ila says here:

After lots of .bash_profile investigation, it turned out I just needed to reboot the terminal after installing MacPorts.