title: How to run "gmake install"?
body: <p>I am now installing a code on my mac.</p>
  
  <p>The code is from <a href="http://www.eecs.berkeley.edu/Research/Projects/CS/vision/grouping/segbench/" rel="nofollow">here</a>. Look for "Benchmark and Boundary Detection Code" in this page.</p>
  
  <p>In the readme file, it says:</p>
  
  <blockquote>
    <p>(1) For the image and segmentation reading routines in the Dataset
    directory to work, make sure you edit Dataset/bsdsRoot.m to point to
    your local copy of the BSDS dataset.</p>
    
    <p>(2) Run 'gmake install' from this directory to build everything.  You
    should then probably put the lib/matlab directory in your MATLAB path.</p>
    
    <p>(3) Read the Benchmark/README file.</p>
  </blockquote>
  
  <p>For the 1st step, I did as suggested.
  For the 2nd step, I am pretty confused. I ran command <code>gmake install</code> in MATLAB, however, I got:</p>
  
  <pre><code>gmake
  
  Undefined function or variable 'gmake'.
  </code></pre>
  
  <p>Actually, before running MATLAB, I installed gmake port through macports.</p>
  
  <p>I just did it in terminal, however, this is what I got...</p>
  
  <pre><code>hou229:segbench yaozhongsong$ cd /Users/yaozhongsong/Documents/MATLAB/segbench
  hou229:segbench yaozhongsong$ sudo gmake install
  gmake[1]: execvp: ../Util/gethosttype: Permission denied
  gmake[1]: Entering directory `/Users/yaozhongsong/Documents/MATLAB/segbench/Util'
  GNUmakefile-library:26: *** mexSuffix not defined.  Stop.
  gmake[1]: Leaving directory `/Users/yaozhongsong/Documents/MATLAB/segbench/Util'
  hou229:segbench yaozhongsong$
  </code></pre>
  
  <p>In MATLAB, I also did like this:</p>
  
  <pre><code>!gmake install
  /bin/bash: gmake: command not found
  </code></pre>
  
  <p>How to do the 2nd step in readme file?</p>
  
  <p>Thanks in advance!</p>
  
  <p>@Amro</p>
  
  <pre><code>hou229:segbench yaozhongsong$ cd /Users/yaozhongsong/Documents/MATLAB/segbench
  hou229:segbench yaozhongsong$ sudo gmake install
  Password:
  gmake[1]: execvp: ../Util/gethosttype: Permission denied
  gmake[1]: Entering directory `/Users/yaozhongsong/Documents/MATLAB/segbench/Util'
  mkdir -p ../lib/matlab
  g++ -g -Wall -fPIC -I../include -O3 -DNOBLAS -c Exception.cc -o build//Exception.o
  g++ -g -Wall -fPIC -I../include -O3 -DNOBLAS -c String.cc -o build//String.o
  g++ -g -Wall -fPIC -I../include -O3 -DNOBLAS -c Random.cc -o build//Random.o
  g++ -g -Wall -fPIC -I../include -O3 -DNOBLAS -c Timer.cc -o build//Timer.o
  g++ -g -Wall -fPIC -I../include -O3 -DNOBLAS -c Matrix.cc -o build//Matrix.o
  Matrix.cc:13:21: error: ieee754.h: No such file or directory
  Matrix.cc: In function ‘double nextpow2(double)’:
  Matrix.cc:86: error: ‘ieee754_double’ was not declared in this scope
  Matrix.cc:86: error: expected `;' before ‘val’
  Matrix.cc:87: error: ‘val’ was not declared in this scope
  Matrix.cc:88: error: ‘IEEE754_DOUBLE_BIAS’ was not declared in this scope
  Matrix.cc: At global scope:
  Matrix.cc:48: warning: ‘snan’ defined but not used
  Matrix.cc:49: warning: ‘inf’ defined but not used
  gmake[1]: *** [build//Matrix.o] Error 1
  gmake[1]: Leaving directory `/Users/yaozhongsong/Documents/MATLAB/segbench/Util'
  </code></pre>