homebrewを使う際に行った設定とエラー対処

プロキシ環境下でhomebrewを使う

パッケージを取得する際に、どうやらcurlを用いてダウンロードするようなので、
プロキシ環境下では.curlrcをホームディレクトリ以下に作成して、プロキシ設定を記述しておけば良い模様

~/.curlrc


proxy-user="username:password"
proxy="http://proxy.xxx.yyy:8080"

brew doctorで吐かれたエラー対処

homebrewをインストールしたら,以下のコマンドで確認。

$ sudo brew doctor

すると以下の様なエラー。


Warning: /Library/Frameworks/Mono.framework detected
This can be picked up by CMake's build system and likely cause the build to
fail. You may need to move this file out of the way to compile CMake.

Warning: Some directories in your path end in a slash.
Directories in your path should not end in a slash. This can break other
doctor checks. The following directories should be edited:
/

1個目のMono.frameworkによってCMakeが失敗するかもというエラー対処は、ここに詳しく書かれていました。

2個目のエラーは、~/.bashrcのPATH設定でバックスラッシュで終端している記述があるので、それを消すなり修正すれば解決。