Problems after reinstalling gcc from homebrew

Guo, Yusen
Sun Apr 30 15:52:19 GMT 2023


I am desperate for help with my broken Mac OS. I boldly reinstalled gcc by homebrew today and problems start to appear. First, when I open Terminal, I get a bash syntax error:

-bash: /Users/yusenguo/.bash_profile: line 13: syntax error near unexpected token `fi'

Besides, when I try to run my python codes, I get the following error:

Library not loaded: /usr/local/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/Python

  Referenced from: <14E54150-87EE-321D-9C1B-CAE0D10704D7> /Users/yusenguo/firedrake/bin/python
  Reason: tried: '/usr/local/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/Python' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/Python' (no such file), '/usr/local/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/Python' (no such file), '/Library/Frameworks/Python.framework/Versions/3.10/Python' (no such file), '/System/Library/Frameworks/Python.framework/Versions/3.10/Python' (no such file, not in dyld cache)

I am deperate for help and could you kindly help me fix this?



More information about the Gcc mailing list