Difference between revisions of "Homebrew"

From CSE231 Wiki
Jump to navigation Jump to search
Line 12: Line 12:
 
<code>brew doctor</code>
 
<code>brew doctor</code>
  
==install graphviz (optional)==
+
==brew graphviz (optional)==
 
<code>brew install graphviz</code>
 
<code>brew install graphviz</code>
 +
 +
==brew ant==
 +
<code>brew install ant</code>
  
 
==install opencv==
 
==install opencv==

Revision as of 05:18, 2 November 2017

Homebrew is a package manager that allows you to install software. To install Homebrew, follow these Terminal command line instructions:

install homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

install XCode Command Line Tools

xcode-select --install

Agree if asked to install XCode Command Line Tools.

check homebrew

brew doctor

brew graphviz (optional)

brew install graphviz

brew ant

brew install ant

install opencv

brew tap homebrew/science

Mac Setup

if you are not comfortable with vim export HOMEBREW_EDITOR=nano

brew edit opencv

change: -DBUILD_opencv_java=OFF to -DBUILD_opencv_java=ON

brew install --build-from-source opencv