LoginSignup
31
34

More than 5 years have passed since last update.

Mac OS X El Capitan - HomebrewでImageMagickのインストール

Last updated at Posted at 2015-10-19

OS X El Capitanへアップデートすると、新しいセキュリティのrootlessが影響して/usr/localが作れないとか、パーミッションで弾かれるとか難しい問題に直面するようです。

詳しくは以下にまとめられているので参考にさせていただきました。

Mac - HomebrewはEl Capitanへアップグレードする前に入れておく - Qiita


はじめに

このドキュメントは、Homebrew インストール済みでOS X El Capitanへアップデート後にImageMagickをインストールしたときのエラーと解決方法(一例)をまとめています。


手順

  1. /usr/local パーミッション変更
  2. ローカルリポジトリのアップデート(optional)
  3. brew アップデート(optional)
  4. ImageMagick インストール

1. /usr/local パーミッション変更

$ sudo chown $(whoami):admin /usr/local && sudo chown -R $(whoami):admin /usr/local

上記の問題解決のため、パーミッションを変更します。

変更前
drwxr-xr-x    21 root  wheel   714B 10 15 19:30 local
変更後
drwxr-xr-x    21 nor   admin   714B 10 15 19:30 local

2. ローカルリポジトリのアップデート(optional)

brew updateするとリポジトリのmargeエラーのようなメッセージが表示されたため、リポジトリのアップデートを行います。

$ brew --prefix // Homebrewのインストールパスを表示
command
$ cd $(brew --prefix)
$ git fetch origin
$ git reset --hard origin/master

3. brew アップデート(optional)

$ brew update

4. ImageMagick インストール

$ brew install imagemagick
..
中略(依存ライブラリのインストールなどが行われます)
..
==> Installing imagemagick
==> Downloading http://www.imagemagick.org/download/releases/ImageMagick-6.9.1-1
######################################################################## 100.0%
==> ./configure --disable-osx-universal-binary --prefix=/usr/local/Cellar/imagem
==> make install
 /usr/local/Cellar/imagemagick/6.9.1-10: 1447 files, 22M, built in 2.9 minutes

以上

31
34
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
31
34