Difference between revisions of "Homebrew"

From CSE231 Wiki
Jump to navigation Jump to search
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
Homebrew is a package manager that allows you to install software. To install Homebrew, follow these Terminal command line instructions:
 
Homebrew is a package manager that allows you to install software. To install Homebrew, follow these Terminal command line instructions:
  
 +
==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>
  
repeated for copy to clipboard:
+
==install XCode Command Line Tools==
<clippy show="false">/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"</clippy>
+
<code>xcode-select --install</code>
  
<br>
+
Agree if asked to install XCode Command Line Tools.
  
 +
==check homebrew==
 +
<code>brew doctor</code>
  
source: http://brew.sh
+
==brew graphviz (optional)==
 +
<code>brew install graphviz</code>
  
 +
==brew ant==
 +
<code>brew install ant</code>
  
<br>
+
==tap science==
install opencv
 
<br>
 
<code>brew doctor</code>
 
<br>
 
 
<code>brew tap homebrew/science</code>
 
<code>brew tap homebrew/science</code>
<br>
+
 
<code>brew install opencv3 --with-java --with-contrib</code>
+
==install opencv==
 +
 
 +
[https://github.com/opencv-java/opencv-java-tutorials/blob/master/docs/source/01-installing-opencv-for-java.rst source]
 +
 
 +
if you are not comfortable with vim
 +
<code>export HOMEBREW_EDITOR=nano</code>
 +
 
 +
<code>brew edit opencv</code>
 +
 
 +
within editor change: <code>-DBUILD_opencv_java=OFF</code> to <code>-DBUILD_opencv_java=ON</code>
 +
 
 +
if you have tried and failed to brew opencv before <code>brew remove opencv</code>
 +
 
 +
<code>brew install --build-from-source opencv</code>

Latest revision as of 05:45, 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

tap science

brew tap homebrew/science

install opencv

source

if you are not comfortable with vim export HOMEBREW_EDITOR=nano

brew edit opencv

within editor change: -DBUILD_opencv_java=OFF to -DBUILD_opencv_java=ON

if you have tried and failed to brew opencv before brew remove opencv

brew install --build-from-source opencv