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

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.

Related

qemu-img dyld: Library not loaded: /usr/local/opt/nettle/lib/libnettle.6.dylib

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

dyld: Library not loaded: Referenced from: /usr/local/bin/awk

It shows error message as follow when I open the terminal:
dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.6.dylib
Referenced from: /usr/local/bin/awk
Reason: image not found
update it with:
"brew upgrade gawk"
This should be fixed.

Library libuuid not loaded referenced from uuidgen image not found

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.

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.

Setting a charset symbol in dylib

I use an old Powerbook G4.
While trying to update the macports (sudo port -d selfupdate) following error exist.
dyld: lazy symbol binding failed: Symbol not found: _locale_charset
Referenced from: /usr/bin/rsync
Expected in: /usr/lib/libiconv.2.dylib
dyld: Symbol not found: _locale_charset
Referenced from: /usr/bin/rsync
Expected in: /usr/lib/libiconv.2.dylib
How can I set the Symbol _locale_charset?
Does anyone have a good idea?
Neither /usr/bin/rsync nor /usr/lib/libiconv.2.dylib are part of MacPorts. Probably you've replaced the system copy of rsync with another copy that isn't compatible with your OS X version. Try reinstalling it.

Resources