when I enter gdb
or gdb --version
on terminal it returns like below:
% gdb a.out
File "/usr/local/Cellar/[email protected]/3.9.13_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site.py", line 178
file=sys.stderr)
^
SyntaxError: invalid syntax
% gdb --version
File "/usr/local/Cellar/[email protected]/3.9.13_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site.py", line 178
file=sys.stderr)
^
SyntaxError: invalid syntax
when I check the path /usr/lib/bin
it returns like below:
% ll /usr/local/bin/|grep gdb
lrwxr-xr-x 1 eilir admin 25B 5 17 2018 gdb -> ../Cellar/gdb/8.1/bin/gdb
lrwxr-xr-x 1 eilir admin 33B 5 8 2022 gdbm_dump -> ../Cellar/gdbm/1.23/bin/gdbm_dump
lrwxr-xr-x 1 eilir admin 33B 5 8 2022 gdbm_load -> ../Cellar/gdbm/1.23/bin/gdbm_load
lrwxr-xr-x 1 eilir admin 32B 5 8 2022 gdbmtool -> ../Cellar/gdbm/1.23/bin/gdbmtool
lrwxr-xr-x 1 eilir admin 31B 8 7 2022 gdbus -> ../Cellar/glib/2.72.3/bin/gdbus
% ll /usr/local/bin/|grep pip
-rwxr-xr-x 1 root admin 214B 2 8 2019 pip
-rwxr-xr-x 1 root admin 214B 2 8 2019 pip2
-rwxr-xr-x 1 root admin 214B 2 8 2019 pip2.7
lrwxr-xr-x 1 eilir admin 38B 6 29 2023 pip3 -> ../Cellar/[email protected]/3.9.13_1/bin/pip3
lrwxrwxr-x 1 root admin 68B 8 22 2019 pip3.6 -> ../../../Library/Frameworks/Python.framework/Versions/3.6/bin/pip3.6
lrwxr-xr-x 1 eilir admin 40B 6 29 2023 pip3.9 -> ../Cellar/[email protected]/3.9.13_1/bin/pip3.9
% ll /usr/local/bin/|grep python
lrwxr-xr-x 1 eilir admin 38B 6 29 2023 2to3 -> ../Cellar/[email protected]/3.9.13_1/bin/2to3
lrwxr-xr-x 1 eilir admin 42B 6 29 2023 2to3-3.9 -> ../Cellar/[email protected]/3.9.13_1/bin/2to3-3.9
lrwxr-xr-x 1 eilir admin 39B 6 29 2023 idle3 -> ../Cellar/[email protected]/3.9.13_1/bin/idle3
lrwxr-xr-x 1 eilir admin 41B 6 29 2023 idle3.9 -> ../Cellar/[email protected]/3.9.13_1/bin/idle3.9
lrwxr-xr-x 1 eilir admin 38B 6 29 2023 pip3 -> ../Cellar/[email protected]/3.9.13_1/bin/pip3
lrwxr-xr-x 1 eilir admin 40B 6 29 2023 pip3.9 -> ../Cellar/[email protected]/3.9.13_1/bin/pip3.9
lrwxr-xr-x 1 eilir admin 40B 6 29 2023 pydoc3 -> ../Cellar/[email protected]/3.9.13_1/bin/pydoc3
lrwxr-xr-x 1 eilir admin 42B 6 29 2023 pydoc3.9 -> ../Cellar/[email protected]/3.9.13_1/bin/pydoc3.9
lrwxr-xr-x 1 eilir admin 41B 6 29 2023 python3 -> ../Cellar/[email protected]/3.9.13_1/bin/python3
lrwxr-xr-x 1 root wheel 72B 8 22 2019 python3-32 -> ../../../Library/Frameworks/Python.framework/Versions/3.6/bin/python3-32
lrwxr-xr-x 1 eilir admin 48B 6 29 2023 python3-config -> ../Cellar/[email protected]/3.9.13_1/bin/python3-config
lrwxr-xr-x 1 root wheel 71B 8 22 2019 python3.6 -> ../../../Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6
lrwxr-xr-x 1 root wheel 74B 8 22 2019 python3.6-32 -> ../../../Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6-32
lrwxr-xr-x 1 root wheel 78B 8 22 2019 python3.6-config -> ../../../Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6-config
lrwxr-xr-x 1 root wheel 72B 8 22 2019 python3.6m -> ../../../Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6m
lrwxr-xr-x 1 root wheel 79B 8 22 2019 python3.6m-config -> ../../../Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6m-config
lrwxr-xr-x 1 eilir admin 43B 6 29 2023 python3.9 -> ../Cellar/[email protected]/3.9.13_1/bin/python3.9
lrwxr-xr-x 1 eilir admin 50B 6 29 2023 python3.9-config -> ../Cellar/[email protected]/3.9.13_1/bin/python3.9-config
lrwxr-xr-x 1 eilir admin 40B 6 29 2023 wheel3 -> ../Cellar/[email protected]/3.9.13_1/bin/wheel3
I don’t know why.