6

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.

AzyCrw4282
  • 7,222
  • 5
  • 19
  • 35
Rudi Herrig
  • 103
  • 1
  • 7

2 Answers2

6

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

AzyCrw4282
  • 7,222
  • 5
  • 19
  • 35
  • Thanks! I have now installed MacPorts correctly and then successfully installed fluidsynth version 2.0.5 but when using fluidsynth in mingus it still says ImportError: Couldn't find the FluidSynth library." Shouldn't this work since i have fluidsynth installed now? – Rudi Herrig Jun 20 '20 at 14:27
2

as @Ila says here:

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

Hila Grossbard
  • 521
  • 7
  • 20