2014年10月22日水曜日

[Tips] brewのメンテナンスとnkfのインストール

nkfのインストールするだけなのに
日をまたいでいるよ。orz

brewのメンテも昨日までで終わりましたので
nkfをインストールしましょ。

続きは


1. brewの状態確認

まずは、brewの状態を確認です。
% sudo 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: Your XQuartz (2.7.5) is outdated
Please install XQuartz 2.7.7:
  https://xquartz.macosforge.org

Warning: /usr/bin occurs before /usr/local/bin
This means that system-provided programs will be used instead of those
provided by Homebrew. The following tools exist at both paths:

    exiftool

Consider setting your PATH so that /usr/local/bin
occurs before /usr/bin. Here is a one-liner:
    echo export PATH='/usr/local/bin:$PATH' >> ~/.bash_profil
%

「パス設定がおかしいよ」とのことなので
とりあえず、.cshrcを変更して、パスを切ります。
# System-wide .cshrc file for csh(1).

if ($?prompt) then
        set promptchars = "%#"
        if ($?tcsh) then
                set prompt = "[%m:%c3] %n%# "
        else
                set prompt = "[%m:%c3] `id -nu`%# "
        endif
endif

set autolist=beepnone
set savehist=1000

setenv PATH /usr/local/bin:${PATH}

で、再チャレンジ。
% sudo 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: Your XQuartz (2.7.5) is outdated
Please install XQuartz 2.7.7:
  https://xquartz.macosforge.org

XQuartzをアップデートしないとだめなんだって。

2. XQuartzのインストール

XQuartzをhttps://xquartz.macosforge.orgからダウンロードしてインストールします。


現在の最新は、バージョン2.7.7のようです。
以下の手順に沿ってインストールします。

  1. XQuartzのダウンロード
  2. https://xquartz.macosforge.orgからダウンロード。

  3. インストール前のバージョン確認
  4. インストール前はバージョン2.7.5でした。


  5. XQuartzのインストール
  6. ダウンロードしたdmgファイルから、XQuartz.pkgをダブルクリックしてインストール開始。
    インストーラーに従い、「続ける」をクリックして行けばOKです。


  7. インストール後の確認
  8. バージョンが、2.7.7になっていることを確認して、インストール完了です。

3. brewの状態確認

XQuartzもアップデート出来ましたので、
もう一度、状態を確認します。

% sudo 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: 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`.
%

すると今度は、brewのバージョンが古いとのこと。
やれやれ・・・

もう一度、brewをupdateします。
その後、もう一度、brew doctorで確認して完了です。

4. nkfのインストール

XQuartzもアップデート出来ましたので、
ようやく、nkfのインストールです。

% sudo brew install nkf
Password:
==> Downloading http://dl.sourceforge.jp/nkf/59912/nkf-2.1.3.tar.gz
Already downloaded: /Library/Caches/Homebrew/nkf-2.1.3.tar.gz
==> make CC=clang
==> make install prefix=/usr/local/Cellar/nkf/2.1.3 MKDIR=mkdir -p
🍺  /usr/local/Cellar/nkf/2.1.3: 4 files, 352K, built in 4 seconds

以上で
brewのメンテナンスとnkfのインストールが完了しました。

今回は、途中brewやXQuartzやら、updateが多くて面倒でした。
ここには、書かなかったのですが、
丁度、Yosemiteのupdateに関連して、
Xcodeもアップデートを求められました。

ちょっと、時期が悪かったですね。

--
では、
今日はここまで

0 件のコメント:

コメントを投稿