title: How to fix octave Library not loaded and Abort trap: 6 bug?
body: <p>Whenever I try to run octave:</p>
  
  <pre><code>$ octave
  </code></pre>
  
  <p>I get this error:</p>
  
  <pre><code>dyld: Library not loaded: /usr/local/opt/hwloc/lib/libhwloc.15.dylib
    Referenced from: /usr/local/opt/open-mpi/lib/libmpi_usempif08.40.dylib
    Reason: image not found
  Abort trap: 6
  </code></pre>
  
  <p>How do I fix this?</p>
  
  <p>Details:</p>
  
  <ul>
  <li><p>Operating system: macOS.</p></li>
  <li><p>Octave installed via homebrew command - <code>brew install octave</code></p></li>
  <li><p>Note- I tried to run brew reinstall --build-from-source octave,</p></li>
  </ul>
  
  <p>But it freezes midway at:</p>
  
  <hr>
  
  <p>==> ./configure --prefix=/usr/local/Cellar/octave/5.1.0_4 --disable-silent-rules</p>
  
  <p>==> make all</p>
  
  <hr>