Library libuuid not loaded referenced from uuidgen image not found - macos

I can not remember what did I do to get this error every command on my terminal. any advice?
dyld: Library not loaded: libuuid.1.1.dylib
Referenced from: /usr/local/bin/uuidgen
Reason: image not found
Is it safe to remove /usr/local/bin/uuidgen file? is it better to get the libuuid? how can I get it?

I just move /usr/local/bin/uuidgen to my desktop, hope I don't need it.

Related

Libfreetype.6.dylib found, but wrong architecture

I've been trying to run BLAT, a bioinformatics software on my mac, but all you need to know is that it's an executable that I'm running in terminal. I keep getting this error when I try to run it:
dyld: Library not loaded: /opt/homebrew/lib/libfreetype.6.dylib
Referenced from: /Users/MyName/./blat
Reason: no suitable image found. Did find:
/opt/homebrew/lib/libfreetype.6.dylib: mach-o, but wrong architecture
/opt/homebrew/lib/libfreetype.6.dylib: stat() failed with errno=1
/opt/homebrew/Cellar/freetype/2.10.4/lib/libfreetype.6.dylib: mach-o, but wrong architecture
Does anyone have any ideas how to resolve this? For the longest time, I was getting the error that it couldn't find libfreetype.6.dylib, but I finally was able to use install_name_tool to I guess direct it to the right place, and now I'm getting this error.
I don't know the answer, but this might help: What does
$ file /Users/MyName/./blat
say? Compare with
$ file /opt/homebrew/lib/libfreetype.6.dylib
If they don't match, that both explains your problem and tells you what you're looking for: either a version of blat that matches your freetype library, or a version of freetype that matches your installed blat.

dyId: Symbol not found: _clock_gettime

I am trying to execute a python code using PyPy2 v5.10 on MacOS El Capitan 10.11.6. However, I keep getting this error during runtime.
dyld: lazy symbol binding failed: Symbol not found: _clock_gettime
Referenced from: /Users/macpro/Downloads/pypy2-v5.10.0-osx64/bin//libpypy-c.dylib
Expected in: flat namespace
dyld: Symbol not found: _clock_gettime
Referenced from: /Users/macpro/Downloads/pypy2-v5.10.0-osx64/bin//libpypy-c.dylib
Expected in: flat namespace
fish: './pypy contactTrace.py' terminated by signal SIGTRAP (Trace or breakpoint trap)
I have read from a few sources that its because El Capitan does not implement the clock but delcares it. Hence, one solution is to upgrade the software or comment out the declaration. Upgrading the software is not an option for me because I have a lot of other scripts running in that particular computer. I was trying to comment out the declaration but I am unable to find where I can comment it off. Also, will it really solve the issue? Or are there any more simpler solutions to it. I am not very familiar with the MacOS platform and am only using it for this project.
Thanks in advance!
That sounds like a wrongly linked libSystem.dylib, and that will be hard to fix (e.g. checking libs with otool and modifying lib with install_name_tool). However, there are newer versions of PyPy. Do you have tried them?

XCode 8.3 OpenGL linker error: Library not loaded

The GLFW library runs fine in an older project (created in XCode 7.x). I used the same method to add library directory and includes files, but this time it prompts a run time error, the error message is:
dyld: Library not loaded: lib/libglfw.3.dylib
Referenced from: /Users/BlacKay/Documents/Projects/OpenGL Tutorials/OpenGL_tutorial_anton/build/Debug/Learn_OpenGL
Reason: image not found
Program ended with exit code: 9
If someone can point what the potential problem is, that'd be great. Thanks~

dyld: Library not loaded: /usr/lib/libnetsnmp.25.dylib

I used to use an AppleScript from years, but since a few days, I cannot run it anymore
I have the error message
"dyld: Library not loaded: /usr/lib/libnetsnmp.25.dylib
Referenced from: /usr/bin/php
Reason: image not found"
"dyld: Library not loaded: /usr/lib/libnetsnmp.25.dylib
Referenced from: /usr/bin/php
Reason: image not found (1005)"
Any idea how I can fix that
Many thanks
I had same problem with PHP after updated the OS X system and solved by this (type this in terminal console):
sudo ln -s /usr/lib/libnetsnmp.30.dylib /usr/lib/libnetsnmp.25.dylib
Hope this helps you as well.

dyld: Library not loaded: /opt/local/lib/libglib-2.0.0.dylib

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.

Resources