'dyld: Library not loaded: /usr/local/opt/gsl/lib/libgsl.23.dylib

I am trying to get a piece of software called emergent working. It relies on qt and coin, which I've both installed.

But when I try to run emergent, I get the following error:

dyld: Library not loaded: /usr/local/opt/gsl/lib/libgsl.23.dylib
  Referenced from: /usr/local/bin/emergent
  Reason: image not found
Abort trap: 6

gsl 2.6 is already installed on my computer. Also using Mac OS. Any ideas what could be causing this?



Solution 1:[1]

ls /usr/local/opt/gsl

see which version of the library you have (I had .25) then

ln -s libgsl.25.dylib libgsl.23.dylib

Makes symbolic link between files. then it worked!

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 joanis