I receive the following error message upon running gemma (a software used in genomics) from the MAC Terminal (My system is currently running High Sierra)
dyld: Library not loaded: /opt/local/lib/libgsl.0.dylib
Referenced from: /Users/sv112/Desktop/AssociationMapping/bin/gemma
Reason: image not found
ERROR on Building GEMMA kinship matrix.
Installing gsl (brew install gsl) did not fix this issue.
I opened the gemma file (opens as a UNIX executable) and its contents read as follows:
/Users/sv112/Desktop/AssociationMapping/bin/gemma ; exit;
MGM-McCusker-iMac1:~ sv112$ /Users/sv112/Desktop/AssociationMapping/bin/gemma ; exit;
dyld: Library not loaded: /opt/local/lib/libgsl.0.dylib
Referenced from: /Users/sv112/Desktop/AssociationMapping/bin/gemma
Reason: image not found
Abort trap: 6
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Process completed]
Can someone explain how these two issues are linked and a reasonable fix?
Could it simply be an issue with having an older version of the software, or does it have something to do with Mac?
Related
I am trying to convert an image with qemu-img from VHDX to qcow2 on macOS 11.3.1 yet I get the following error message:
dyld: Library not loaded: /usr/local/opt/nettle/lib/libnettle.6.dylib
Referenced from: /usr/local/bin/qemu-img
Reason: image not found
Abort trap: 6
I have installed qemu using homebrew.
Turns out the problem was solved simply by reinstalling qemu using homebrew with the following:
brew reinstall qemu
Mac mini (2018)
OSX 10.15.5
XCode 11.5
GNAT 2020
Miniconda environment python 3.7.7
I have built gnatstudio from https://github.com/AdaCore/gps-master.
However, the command gnatstudio/obj/gnatstudio fails with:
dyld: Library not loaded: /gnatmail/sandbox/a2c2/x86_64-darwin/gcc-c/pkg/lib/libstdc++.6.dylib
Referenced from: /System/Volumes/Data/Applications_Packages/gps-master/gnatstudio/obj/gnatstudio
Reason: image not found
zsh: abort gnatstudio/obj/gnatstudio
I can find no reference to /gnatmail/sandbox/a2c2/x86_64-darwin/gcc-c/pkg/lib/libstdc++.6.dylib in my gps build instructions; not in any Makefile or gpr.
I have found libstdc++.6.dylib in /opt/GNAT/2020/lib, /opt/GNAT/2019/lib/gps and a few other less relevant locations.
When I ran a C++ application in XCode on MacOS 10.14 that uses OpenGL and Assimp, everything compiled, but I got this error
dyld: Library not loaded: #rpath/libIrrXMLd.dylib
Referenced from: /usr/local/lib/libassimpd.5.dylib
Reason: image not found
Program ended with exit code: 9
Searched on Google and seems like no one has had this problem before
I'v installed gtk+ and run some programs well under X11 on OSX El Capitan. Program looks ugly, so I installed gtk-chtheme.
Now I can't run my program and get this error:
Fatal error: cannot load shared library dlllablgtk2
Reason: dlopen(/Users/mac/.opam/system/lib/stublibs/dlllablgtk2.so, 138): Library not loaded: /usr/local/lib/libgtk-x11-2.0.0.dylib
Referenced from: /Users/mac/.opam/system/lib/stublibs/dlllablgtk2.so
Reason: image not found
I've gotten MDB-Tools compiled for OSX, but when I try to run a sample command line program on another computer I get this error:
dyld: Library not loaded: /opt/local/lib/libglib-2.0.0.dylib
Referenced from: /Users/dev/mdb/mdb-test
Reason: image not found
Trace/BPT trap: 5
I believe that this means that the target system is missing a library and I think its something to do with linkage, but I'm not exactly positive how to go about fixing this. Could anyone point me in the right direction?
The /opt/local directory is typically used by MacPorts. Your compiled program has a dependency on glib from MacPorts. You either need to install that on the machines where you want to run your program or you need to bundle together your program and all of the libraries it depends on.
Check Apple's Dynamic Library Programming Topics.
Yes, I had hit similar issue while upgrading vim on Mac.
$ vi linkedlist.cc
dyld: Library not loaded: /usr/local/opt/python/Frameworks/Python.framework/Versions/3.6/Python
Referenced from: /usr/local/bin/vim
Reason: image not found
Abort trap: 6
To solve the problem, I tried to upgrade packages.
$ brew update
Already up-to-date.
$ brew upgrade
It started working after doing upgrades.