Difference between revisions of "Homebrew"

From CSE231 Wiki
Jump to navigation Jump to search
Line 3: Line 3:
 
==install homebrew==
 
==install homebrew==
 
<code>/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"</code>
 
<code>/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"</code>
 +
 +
==install xcode==
 +
<code>xcode-select --install</code>
  
 
==check homebrew==
 
==check homebrew==
Line 14: Line 17:
  
 
[https://github.com/opencv-java/opencv-java-tutorials/blob/master/docs/source/01-installing-opencv-for-java.rst Mac Instructions]
 
[https://github.com/opencv-java/opencv-java-tutorials/blob/master/docs/source/01-installing-opencv-for-java.rst Mac Instructions]
 
<code>xcode-select --install</code>
 
  
 
<code>brew edit opencv</code>
 
<code>brew edit opencv</code>

Revision as of 04:31, 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

xcode-select --install

check homebrew

brew doctor

install graphviz (optional)

brew install graphviz

install opencv

brew tap homebrew/science

Mac Instructions

brew edit opencv

change: -DBUILD_opencv_java=OFF to -DBUILD_opencv_java=ON

brew install --build-from-source opencv