Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

brew install fail on OSX(m1), bad interpreter #67

Open
pklim101 opened this issue Dec 18, 2022 · 2 comments
Open

brew install fail on OSX(m1), bad interpreter #67

pklim101 opened this issue Dec 18, 2022 · 2 comments

Comments

@pklim101
Copy link

brew --version
Homebrew 3.6.15
Homebrew/homebrew-core (git revision 1ec573e932b; last commit 2022-12-18)
Homebrew/homebrew-cask (git revision 3ff0159ed3; last commit 2022-12-18)

brew install --HEAD universal-ctags/universal-ctags/universal-ctags
==> Fetching universal-ctags/universal-ctags/universal-ctags
==> Cloning https://github.com/universal-ctags/ctags.git
Updating /Users/libo56/Library/Caches/Homebrew/universal-ctags--git
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
HEAD is now at bec7905e Merge pull request #3602 from masatake/c++--consteval
==> Installing universal-ctags from universal-ctags/universal-ctags
==> ./autogen.sh
==> ./configure --prefix=/opt/homebrew/Cellar/universal-ctags/HEAD-bec7905
==> make
Last 15 lines from /Users/libo56/Library/Logs/Homebrew/universal-ctags/03.make:
make[2]: *** [ctags-faq.7.in] Error 126
/bin/sh: /opt/homebrew/opt/docutils/bin/rst2man: /opt/homebrew/opt/[email protected]/bin/python3.10: bad interpreter: No such file or directory
RST2MAN ctags-lang-iPythonCell.7.in
RST2MAN ctags-lang-gdscript.7.in
make[2]: *** [ctags-optlib.7.in] Error 126
/bin/sh: /opt/homebrew/opt/docutils/bin/rst2man: /opt/homebrew/opt/[email protected]/bin/python3.10: bad interpreter: No such file or directory
make[2]: *** [ctags-lang-asm.7.in] Error 126
/bin/sh: /opt/homebrew/opt/docutils/bin/rst2man: /opt/homebrew/opt/[email protected]/bin/python3.10: bad interpreter: No such file or directory
make[2]: *** [ctags-client-tools.7.in] Error 126
/bin/sh: /opt/homebrew/opt/docutils/bin/rst2man: /opt/homebrew/opt/[email protected]/bin/python3.10: bad interpreter: No such file or directory
make[2]: *** [ctags-lang-iPythonCell.7.in] Error 126
/bin/sh: /opt/homebrew/opt/docutils/bin/rst2man: /opt/homebrew/opt/[email protected]/bin/python3.10: bad interpreter: No such file or directory
make[2]: *** [ctags-lang-gdscript.7.in] Error 126
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

@pklim101
Copy link
Author

brew --version Homebrew 3.6.15 Homebrew/homebrew-core (git revision 1ec573e932b; last commit 2022-12-18) Homebrew/homebrew-cask (git revision 3ff0159ed3; last commit 2022-12-18)

brew install --HEAD universal-ctags/universal-ctags/universal-ctags ==> Fetching universal-ctags/universal-ctags/universal-ctags ==> Cloning https://github.com/universal-ctags/ctags.git Updating /Users/libo56/Library/Caches/Homebrew/universal-ctags--git ==> Checking out branch master Already on 'master' Your branch is up to date with 'origin/master'. HEAD is now at bec7905e Merge pull request #3602 from masatake/c++--consteval ==> Installing universal-ctags from universal-ctags/universal-ctags ==> ./autogen.sh ==> ./configure --prefix=/opt/homebrew/Cellar/universal-ctags/HEAD-bec7905 ==> make Last 15 lines from /Users/libo56/Library/Logs/Homebrew/universal-ctags/03.make: make[2]: *** [ctags-faq.7.in] Error 126 /bin/sh: /opt/homebrew/opt/docutils/bin/rst2man: /opt/homebrew/opt/[email protected]/bin/python3.10: bad interpreter: No such file or directory RST2MAN ctags-lang-iPythonCell.7.in RST2MAN ctags-lang-gdscript.7.in make[2]: *** [ctags-optlib.7.in] Error 126 /bin/sh: /opt/homebrew/opt/docutils/bin/rst2man: /opt/homebrew/opt/[email protected]/bin/python3.10: bad interpreter: No such file or directory make[2]: *** [ctags-lang-asm.7.in] Error 126 /bin/sh: /opt/homebrew/opt/docutils/bin/rst2man: /opt/homebrew/opt/[email protected]/bin/python3.10: bad interpreter: No such file or directory make[2]: *** [ctags-client-tools.7.in] Error 126 /bin/sh: /opt/homebrew/opt/docutils/bin/rst2man: /opt/homebrew/opt/[email protected]/bin/python3.10: bad interpreter: No such file or directory make[2]: *** [ctags-lang-iPythonCell.7.in] Error 126 /bin/sh: /opt/homebrew/opt/docutils/bin/rst2man: /opt/homebrew/opt/[email protected]/bin/python3.10: bad interpreter: No such file or directory make[2]: *** [ctags-lang-gdscript.7.in] Error 126 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2

python --version
Python 3.9.7
whereis python
/usr/bin/python

@pklim101
Copy link
Author

I install python by brew:
brew install python

then:
which -a python3
/opt/homebrew/bin/python3
/usr/bin/python3

/opt/homebrew/bin/python3 --version
Python 3.10.9

Finaly, reinstall ctags:
brew install --HEAD universal-ctags/universal-ctags/universal-ctags
It's okay, maybe it needs that python version is 3.10 and path is under homebrew.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant