简体   繁体   中英

Error while installing octave (mac osX, homebrew)

After seemingly successfully running

brew install homebrew/science/octave

When I run octave from the terminal, I get the following error:

dyld: Library not loaded: /usr/local/lib/libhdf5.9.dylib
  Referenced from: /usr/local/Cellar/octave/3.8.1_1/bin/octave-cli-3.8.1
  Reason: image not found
Trace/BPT trap: 5 

Any ideas? Thanks.

Closing out this rather obscure question, with mild notes for posterity just in case.

Eventually enough mucking around with homebrew - including manually deleting files noted in brew doctor as being potentially problematic - made this problem go away. It seems like homebrew was failing to install hdf5, though not sure exactly why.

I solved this problem on Mac by running:

sudo brew reinstall --build-from-source octave

You'll also want to make sure brew is up to date.

在您的bash_profile中添加以下环境变量对我来说解决了这个问题:

export DYLD_FALLBACK_LIBRARY_PATH=/usr/local/cuda/lib:$HOME/anaconda/lib:/usr/local/lib:/usr/lib:/opt/intel/composer_xe_2015.2.132/compiler/lib:/opt/intel/composer_xe_2015.2.132/mkl/lib

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