0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Homebrewインストール 「Calling Cask::DSL::Version#after_colon is disabled! Use Cask::DSL::Version#csv instead.」とエラー 解消法

Last updated at Posted at 2022-09-03

環境

-OS: mac Monterey ver12.5.1

背景

業務でdockerを使うことになったので勉強のために個人用PCでも
docker環境構築をしてみることに。
初っ端のhomebrew インストールからエラーが出てしくじった。。。。。

行ったことはこちら↓
1. https://brew.sh/ のページから

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

をコピペ。
ターミナルで実行。

2. エラー!!!

Error: Calling Cask::DSL::Version#after_colon is disabled! Use Cask::DSL::Version#csv instead.
Please report this issue to the homebrew/cask tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
  /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks/fritzing.rb:10

このエラー内容で検索するもあまりこれ!というものにヒットせず。。。

解決策

1. brew doctor コマンドの実行

brew doctor

どうやらbrew doctorとは Homebrew周りでエラーが起きた時にチェックできるコマンドらしい。。

実行後、こんなエラーが出てきた!!

Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: Unbrewed static libraries were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected static libraries:
  /usr/local/lib/libTMAESCrypt.a

日本語に訳すと、
brew化(?)されてないライブラリがあって、トラブルの元になるから消した方がいいかもね、とのこと。

2. 不要ファイルの削除

ということでbrew doctor で指定されたファイルの削除を実行!

$rm -rf /usr/local/lib/libTMAESCrypt.a

その後、またhomebrew インストールを実行。

==> Installation successful!

==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
  https://docs.brew.sh/Analytics
No analytics data has been sent yet (nor will any be during this install run).

==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
  https://github.com/Homebrew/brew#donations

==> Next steps:
- Run brew help to get started
- Further documentation:
    https://docs.brew.sh

Installation successful! とでたので無事インストール完了しました!

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?