web業界の精子

web屋で働き始めて1年、卵ぐらいまで成長は出来たと思っていたが、まだ精子でした。

Homebrewをインストールしてみた。が、brew doctorでWarningが出てしまった。

homebrewをインストールし、問題がないか探してくれるコマンド「brew coctor」があります。

実行した結果がこちら。

adomin-no-iMac:~ hirai$ 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 and just ignore them. Thanks!

Warning: A newer Command Line Tools release is available.
Update them from Software Update in the App Store.

Warning: Unbrewed dylibs 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 dylibs:
/usr/local/lib/libecomlodr.dylib

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 properly once built. Run `brew link` on these:
node

Warning: Your Homebrew is outdated.
You haven't updated for at least 24 hours. This is a long time in brewland!
To update Homebrew, run `brew update`.

はい。どうしましょう。

そんな時に便利なツールを発見しました。

エラーなどが出た時は大抵のことは解決できると思います。

そう。googleなら。

先日いろいろ教えてくれた先生が先生と呼んでいたから間違いない。

では一つずつ解決していきましょう。

(1)

Warning: A newer Command Line Tools release is available.
Update them from Software Update in the App Store.

内容:

新しいコマンドラインツールがリリースされているから、App Storeでアップデートしろよ。

対策:

App Storeでアップデート>ソフトウェア・アップデート>アップデートの順でアップデート

(2)

Warning: Unbrewed dylibs 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 dylibs:
/usr/local/lib/libecomlodr.dylib

内容:

余計なファイルがあるから消せよ。

いらないファイルは、下記ね。

/usr/local/lib/libecomlodr.dylib

対策:

勇気がいるのですが、消します! ※消さなくても支障がないみたいなので、このエラーは無視してもいいらしいです。 ※消すと他に影響を与えそうな場合があります。

$ rm -rf /usr/local/lib/libecomlodr.dylib

※コマンド紹介

rm:ファイルやディレクトリを削除するよ

-rf:中身も全部消しちゃうね。警告もしないよ

-rfを詳しく解説

-r:そのディレクトリ内のファイルやディレクトリを全部削除しちゃうよ

-f:警告メッセージを表示しないよ。(削除してもいいですか?的なものを表示しない。)

(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 properly once built. Run `brew link` on these:
node

内容:

リンクされていないものがあるよ。

放っておくと実行に失敗するよ。

リンクされていないものは下記ね。

node

対策:

1回nodeをリンクしているか確認

$ brew link node

エラーが出たらnodeを再インストール。

1・nodeをアンインストールする

2・nodeをインストールする

$ sudo brew uninstall node.js
$ brew install node

僕はこれで解決した。

(4)

Warning: Your Homebrew is outdated.
You haven't updated for at least 24 hours. This is a long time in brewland!
To update Homebrew, run `brew update`.
adomin-no-iMac:~ hirai$ rm -rf /usr/local/lib/libecomlodr.dylib

内容:

あなたのHomebrewは時代遅れです。。。

少なくとも24時間は更新していません。

これはHomebrewにとっては長いです!

(恐るべし情報産業と思った瞬間)

更新するにはbrew updateを実行して。

対策:

言われているとうりにbrew updateを実行して更新する。

$ brew update

上記を全てこなしたところ下記が吐き出された。

adomin-no-iMac:~ hirai$ brew doctor Your system is ready to brew.

内容:

お使いのシステムはブリューー(brew)できるぜ!!

やったね。

brew doctor攻略か。

※本記事で間違いなどございましたら、コメント枠よりお願いいたします。

まとめ

IT系になりたいならどの言語よりも英語が重要。

英語力がないとエラーが読み解けない。(google先生の翻訳に頼ってます。かわいいよねgoogle翻訳