pythonmacportsmacos-mojavefluidsynth

MacPorts- port: command not found?


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.


Solution

  • 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