かすみん日記

暇なときに何か喋ります

Homebrew

【Homebrew】Error: You have not agreed to the Xcode license.

久しぶりにbrewコマンドを打ったら以下のエラーが出た: Error: You have not agreed to the Xcode license. Please resolve this by running: sudo xcodebuild -license accept Xcodeのライセンスに同意しろとのこと。 環境 MacOS Monterey 12.5.1 Homebrew…

node.jsでMySQLを使うときは、hostにはlocalhostじゃなくて127.0.0.1を指定する【MySQL 8】

環境 % sw_vers ProductName: macOS ProductVersion: 12.4 BuildVersion: 21F79 % node -v v18.4.0 % mysql --version mysql Ver 8.0.30 for macos12.4 on x86_64 (Homebrew) % brew -v Homebrew 3.5.9 Homebrew/homebrew-core (git revision 27007d7668a; l…

【作業ログ】MySQLのインストール・初期設定

MySQLをインストールしたときの作業ログです。 Progateの記事が参考になります。 prog-8.com 環境 macOS Monterey インテル入ってる MySQL 8.0 バージョンによる違いが結構あるようなので注意 インストール Homebrewでインストールします。 パッケージがある…

【本日のbrew doctor】Warning: You have unlinked kegs in your Cellar.

本日のbrew doctorのコーナーです。 % brew doctor 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 f…

【Git】error: unknown option `initial-branch=main'

gitでエラーが出た; % git init --initial-branch=main error: unknown option `initial-branch=main' usage: git init [-q | --quiet] [--bare] [--template=<template-directory>] [--shared[=<permissions>]] [<directory>] --template <template-directory> directory from which templates will be used --bare create a</template-directory></directory></permissions></template-directory>…

【Mac】Java開発の環境構築(JDK, Homebrew, VSCode)

MacにJavaの開発環境を構築します。 HomebrewでopenJDKのバージョン11をインストールして、VSCodeでも使えるようにします。 環境 2022-04-26 macOS Monterey v12.3.1 Visual Studio Code: v1.62.3 Extension Pack for Java: v0.21.0 Java開発の環境構築 Java…

Inkscapeのインストール【Mac, Homebrew】

InkscapeはHomebrewでインストールできます。 % brew search inkscape ==> Casks inkscape InkscapeはFormulaeではなくCasksなので、一応--caskオプションをつけてインストールします: % brew install --cask inkscape Updating Homebrew... ==> Downloadin…

【brew】Warning: Error searching on GitHub: GitHub API Error: Bad credentials

個人的な備忘録です。 検索エンジンから飛んできた人は参考にしないでください。 やったこと brew searchコマンドを打ったら以下のような警告が出た: Warning: Error searching on GitHub: GitHub API Error: Bad credentials The GitHub credentials in th…

【Mac】C言語の開発環境構築:gccのインストール

MacOS Big SurにHomebrewでgccコンパイラをインストールしたときの作業メモです。 2021年9月28日に作業しました。 C言語の開発環境構築 C言語のコンパイラgccをインストールする。 xcodeから? ターミナルでgccと打つと、xcodeのポップアップが表示されて、…

作業ログ:本日のbrew doctor

brew doctorの警告を消していく作業ログになります。 環境 macOS big sur v11.5.1 Homebrew 3.2.11 zsh 警告 たくさん警告が出ちゃった; % brew doctor Please note that these warnings are just used to help the Homebrew maintainers with debugging if…

Install Quicklook Plugins on macOS Big Sur

クイックルックのプラグインを再インストールしたので備忘録。 環境 macOS big sur v11.5.1 プラグインのインストール手順 例えばStephenをインストールしてみます。 確認用ファイルの作成 デスクトップに拡張子の無いREADMEファイルを作成; cd ~/Desktop e…

Node.jsのインストール(❌公式サイトpkg、❌homebrew)

Node.js は nodebrew を使ってインストール・バージョン管理しましょう。 もしnode.jsの公式サイトからインストーラーをDLしてnodeをインストールしちゃうと、後々面倒なことになります; geniusium.hatenablog.com もし brew install node でnodeをインスト…

【homebrew】Warning: You have unlinked kegs in your Cellar.

brew doctor したら brew link node しろと怒られるが、それができない。 前提 公式サイトからNode.jsをインストールした brewでも node をインストールしている(yarn の依存パッケージとして) node は nodebrew で管理したい(している) 結論 pkgでイン…

Ignoring GEM because its extensions are not built.

brewでなんかメッセージが出る; % brew -v Ignoring eventmachine-1.2.7 because its extensions are not built. Try: gem pristine eventmachine --version 1.2.7 Ignoring ffi-1.11.1 because its extensions are not built. Try: gem pristine ffi --ver…

brew doctorで出たWarningを消していく

環境 macOS big sur Homebrew 2.7.5 症状 brew doctor を実行すると、3つの警告が出た; Warning: You have unlinked kegs in your Cellar. Leaving kegs unlinked can lead to build-trouble and cause brews that depend on those kegs to fail to run pro…

作業ログ brew

環境 macOS big sur アップデート後の home brew(アップデート前はメモり忘れた) Homebrew 2.7.4 Homebrew/homebrew-core (git revision 99e7d; last commit 2021-01-15) Homebrew/homebrew-cask (git revision 3564e7; last commit 2021-01-15) 症状・作…