brew installで失敗
何もしないと、opencvのこと知らないみたいだった
[kamatari :~/]$ brew install opencv
Error: No available formula for opencv
解決方法
homebrew scienceというのをいれる
[kamatari :~/]$ brew tap homebrew/science
Cloning into '/usr/local/Library/Taps/homebrew/homebrew-science'...
remote: Reusing existing pack: 5364, done.
remote: Total 5364 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (5364/5364), 1.37 MiB | 633.00 KiB/s, done.
Resolving deltas: 100% (2763/2763), done.
Checking connectivity... done.
Tapped 326 formulae
見つけられました
[kamatari :~/proj]$ brew install opencv
==> Installing dependencies for opencv: cmake, jpeg, libpng, libtiff
==> Installing opencv dependency: cmake
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/cmake-3.0.0.mavericks.bottle.tar.gz
######################################################################## 100.0%
==> Pouring cmake-3.0.0.mavericks.bottle.tar.gz
🍺 /usr/local/Cellar/cmake/3.0.0: 1622 files, 25M
==> Installing opencv dependency: jpeg
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/jpeg-8d.mavericks.bottle.2.tar.gz
######################################################################## 100.0%
==> Pouring jpeg-8d.mavericks.bottle.2.tar.gz
🍺 /usr/local/Cellar/jpeg/8d: 18 files, 780K
==> Installing opencv dependency: libpng
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/libpng-1.6.12.mavericks.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libpng-1.6.12.mavericks.bottle.tar.gz
🍺 /usr/local/Cellar/libpng/1.6.12: 17 files, 1.2M
==> Installing opencv dependency: libtiff
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/libtiff-4.0.3.mavericks.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libtiff-4.0.3.mavericks.bottle.tar.gz
🍺 /usr/local/Cellar/libtiff/4.0.3: 254 files, 3.8M
==> Installing opencv
==> Downloading https://github.com/Itseez/opencv/archive/2.4.9.tar.gz
######################################################################## 100.0%
==> cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/opencv/2.4.9 -DCMAKE_BUILD_TYPE=None -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev -DCMAKE_OSX_DEPLOYMENT
==> make
==> make install
==> Caveats
If you need Python to find the installed site-packages:
mkdir -p ~/Library/Python/2.7/lib/python/site-packages
echo '/usr/local/lib/python2.7/site-packages' > ~/Library/Python/2.7/lib/python/site-packages/homebrew.pth
==> Summary
🍺 /usr/local/Cellar/opencv/2.4.9: 219 files, 38M, built in 10.7 minutes