简体   繁体   中英

How to fix octave Library not loaded and Abort trap: 6 bug?

Whenever I try to run octave:

$ octave

I get this error:

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

How do I fix this?

Details:

  • Operating system: macOS.

  • Octave installed via homebrew command - brew install octave

  • Note- I tried to run brew reinstall --build-from-source octave,

But it freezes midway at:


==> ./configure --prefix=/usr/local/Cellar/octave/5.1.0_4 --disable-silent-rules

==> make all


Make sure hwloc is installed by typing brew install hwloc in your terminal.


If that doesn't work, try navigating to the directory its looking for the file in your terminal:

cd /usr/local/opt/hwloc/lib/
ls

Look for a similar library and make a copy of it, renaming it to libhwloc.15.dylib . If there is a file called libhwloc.5.dylib type

cp libhwloc.5.dylib libhwloc.15.dyli

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM