2
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.

brew doctor Warning:Install Clang or run `brew install gcc`.から、抜け出せなくなったのち、解決した。

Posted at

はじめに

brew doctor
Warning: No developer tools installed.
Install Clang or run brew install gcc.から、抜け出せなくなったのち、解決した。

最終更新日

2022年8月29日

環境の情報

OS
Ubuntu20.04

注意

最新の状態を確認して下さい。

参考さまはこちら

https://brew.sh/
https://docs.brew.sh/Homebrew-on-Linux#requirements
https://blog.tagbangers.co.jp/ja/2019/07/13/linuxbrew
https://www.ni4.jp/2021/09/04-141000.html
https://github.com/Homebrew/linuxbrew-core/issues/23436
https://github.com/Homebrew/discussions/discussions/3030
https://packages.ubuntu.com/focal/build-essential
https://kazuhira-r.hatenablog.com/entry/2020/11/30/204027
https://packages.debian.org/ja/sid/build-essential
https://qiita.com/h_tyokinuhata/items/431a56fb054145468c16
https://e-words.jp/w/gcc.html

簡単な状況説明

・brewはインストール。
・パスは取っている。
・$ brew doctorしたところ、
「Warning: No developer tools installed.
Install Clang or run brew install gcc.」になり進めない。

詳しい状況説明

brewインストールする。

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


パスを通す。

よしよし、では、お目当てのwardenをインストールして・・・

$ brew install davidalger/warden/warden
==> Downloading 


バキッ!

Error: The following formula cannot be installed from bottle and must be
built from source.
  warden
Install Clang or run `brew install gcc`.

( ・ิω・ิ)<・・・

行ったこと

brew doctorで確認する。
Homebrewの問題をチェックしてくれる。
やはり、brew install gccが出る模様。

$ brew doctor
Warning: No developer tools installed.
Install Clang or run `brew install gcc`.


gccを、インストールする。
しかし、うまくいかない。

$ brew install gcc
Warning: The post-install step did not complete successfully
You can try again using:
  brew postinstall gcc


postinstallでは?
うまくいかない。

$ brew postinstall gcc
==> Postinstalling gcc
Warning: The post-install step did not complete successfully
You can try again using:
  brew postinstall gcc


また、出たので、 brew postinstall gccする…

$ brew postinstall gcc
==> Postinstalling gcc
Warning: The post-install step did not complete successfully
You can try again using:
  brew postinstall gcc

( ・ิω・ิ)<・・・


気づく。
インストールする。

$ sudo apt-get install build-essential procps curl file git
[sudo] password for user: 

パッケージリストを読み込んでいます... 完了

postinstallする。

$ brew postinstall gcc
==> Postinstalling gcc
==> Creating the GCC specs file: /home/linuxbrew/.linuxbrew/Cellar/gcc/12.2.0/bin/../lib/gcc/current/gcc/x86_64-pc-l


大丈夫そう。

$ brew doctor
Your system is ready to brew.


無事出来ました!

$ brew install davidalger/warden/warden
==> Installing warden from davidalger/warden

補足

build-essentialとは

Debianのパッケージを作るために、
必要なパッケージを、色々インストールする。
gccとか、g++とか、
makeとかその他色々入るらしい。

gccとは

GNU Compiler Collection
コンパイラ。
GNUプロジェクトが開発している。

2
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
2
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?