Closed krillo closed 2 years ago
这个一般是由于homebrew出现了问题 解决方案如下: 1、在/usr/local/Homebrew/Library/Taps/目录下新建文件夹名为:tomanthony 2、进入tomanthony文件下:git clone https://github.com/TomAnthony/homebrew-brews
即可~
Thank you @rosered90 ! Translated to English ~
This is generally due to a problem with homebrew The solution is as follows:
- Create a new folder named: tomanthony in the /usr/local/Homebrew/Library/Taps/ directory
- Enter the tomanthony file: git clone https://github.com/TomAnthony/homebrew-brews
That's it~
For the people on new M1 Macbooks:
mkdir -p /opt/homebrew/Library/Taps/tomanthony
git clone https://github.com/TomAnthony/homebrew-brews /opt/homebrew/Library/Taps/tomanthony/homebrew-brews
Thanks! However there's a typo and homebrew
is misspelled in your post. Here is the corrected version:
For the people on new M1 Macbooks:
mkdir -p /opt/homebrew/Library/Taps/tomanthony git clone https://github.com/TomAnthony/homebrew-brews /opt/homebrew/Library/Taps/tomanthony/homebrew-brews
@swrobel @keyboard-clacker why is this required by the new M1 MacBooks?
Because the homebrew folder is different on apple silicon vs intel cores
@keyboard-clacker Thanks for your hint. Please fix the typo in your post so that it's easier to copy :)
Easier workaround:
curl -L https://raw.githubusercontent.com/TomAnthony/homebrew-brews/master/Formula/itermocil.rb > ~/itermocil.rb
brew install ~/itermocil.rb
rm ~/itermocil.rb
curl -L https://raw.githubusercontent.com/TomAnthony/homebrew-brews/master/Formula/itermocil.rb > ~/itermocil.rb brew install ~/itermocil.rb rm ~/itermocil.rb
Thanks, @alber70g This indeed works. Would be nice to have the original brew command to work again though.
@alber70g Thank you, the issue was also on an Intel Macbook and your workaround worked like a charm. For other people that would be installing this as well, would be good if the normal instalation would be fixed or at least an easy way to find the solution.
It doesn't work on M1 MAX with macOS Monterey 12.3 :(
→ brew install ~/itermocil.rb
Error: Failed to load cask: /Users/Leeiio/itermocil.rb
Cask 'itermocil' is unreadable: wrong constant name #<Class:0x0000000145126380>
Warning: Treating /Users/Leeiio/itermocil.rb as a formula.
==> Downloading https://pypi.python.org/packages/source/P/PyYAML/PyYAML-3.11.tar.gz
Already downloaded: /Users/Leeiio/Library/Caches/Homebrew/downloads/d98de4b2d4d986c9eacf67d572ad3182da5555a27ae39f38260d899047b9ef4b--PyYAML-3.11.tar.gz
==> Downloading https://github.com/TomAnthony/itermocil/archive/0.2.1.tar.gz
Already downloaded: /Users/Leeiio/Library/Caches/Homebrew/downloads/7660c48dfb6cb50ac68fa581c5de591c2db93fb698776e83084c669a45eb0299--itermocil-0.2.1.tar.gz
==> python -c import setuptools... --no-user-cfg install --prefix=/opt/homebrew/Cellar/itermocil/0.2.1/libexec/vendor --install-scripts=/opt/homebrew/Cellar/itermocil/0.2.1/libexec/vendor/bin --single-version-externally-managed --r
Last 15 lines from /Users/Leeiio/Library/Logs/Homebrew/itermocil/01.python:
2022-03-16 04:49:30 +0000
python
-c
import setuptools, tokenize
__file__ = 'setup.py'
exec(compile(getattr(tokenize, 'open', open)(__file__).read()
.replace('\r\n', '\n'), __file__, 'exec'))
--no-user-cfg
install
--prefix=/opt/homebrew/Cellar/itermocil/0.2.1/libexec/vendor
--install-scripts=/opt/homebrew/Cellar/itermocil/0.2.1/libexec/vendor/bin
--single-version-externally-managed
--record=installed.txt
Do not report this issue to Homebrew/brew or Homebrew/core!
Easier workaround:
curl -L https://raw.githubusercontent.com/TomAnthony/homebrew-brews/master/Formula/itermocil.rb > ~/itermocil.rb brew install ~/itermocil.rb rm ~/itermocil.rb
Any solutions to make itermocil work with macOS Monterey 12.3? I dont have M1 and still getting error @Leeiio Leeiio posted above.
curl -L https://raw.githubusercontent.com/TomAnthony/homebrew-brews/master/Formula/itermocil.rb > ~/itermocil.rb
brew install ~/itermocil.rb
rm ~/itermocil.rb
This solution did not work for me, still getting the error.
@andreikoenig Here is the issue that would help you https://github.com/TomAnthony/itermocil/issues/121 - there are number of solutions there, none really clean at the moment.
The problem has been fixed, please run brew update && brew install tomanthony/brews/itermocil
to retry.
If you encounter issues, please create a new issue.
Your teminal looks good and I would really like to try it, but the installation with brew fails... I did the
brew update
first so I have the latest version. Here's the error:/Br Krillo