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.
Related
I get this error when running my java program.
(on intellij ide.)
dyld: lazy symbol binding failed: Symbol not found:
___emutls_get_address Referenced from: /Users/xxx/.javacpp/cache/nd4j-native-1.0.0-beta5-macosx-x86_64.jar/org/nd4j/nativeblas/macosx-x86_64/libnd4jcpu.dylib
Expected in: /usr/lib/libSystem.B.dylib
dyld: Symbol not found: ___emutls_get_address Referenced from:
/Users/xxx/.javacpp/cache/nd4j-native-1.0.0-beta5-macosx-x86_64.jar/org/nd4j/nativeblas/macosx-x86_64/libnd4jcpu.dylib
Expected in: /usr/lib/libSystem.B.dylib
I checked the /usr/lib/ path but libSystem.B.dylib exists.
Do you have a solution?
Postscript
I was able to run the same version of DL4J (ND4J) on the same mac.
However, after updating mac and xcode, this error came out soon.
xcode-select --install has been executed.
Please try latest DL4J snapshots, this problem should be resolved there.
Instructions: https://deeplearning4j.org/docs/latest/deeplearning4j-config-snapshots
I have installed bettercap on Macbook Pro OSX EL Capitan 10.11.3, after installing while I start bettercap it shows below error.
dyld: lazy symbol binding failed: Symbol not found: _pcap_lookupdev
Referenced from: /Library/Ruby/Gems/2.0.0/gems/pcaprub-0.12.1/lib/pcaprub_c.bundle
Expected in: flat namespace
dyld: Symbol not found: _pcap_lookupdev
Referenced from: /Library/Ruby/Gems/2.0.0/gems/pcaprub-0.12.1/lib/pcaprub_c.bundle
Expected in: flat namespace
Here is a screenshot:
me too, but libpcap is installed on the system.
/usr/lib/libpcap.A.dylib
/usr/lib/libpcap.dylib
also pcaprub with gem is installed and is who that give us this error.
I have just installed ImageMagick on Mac 10.11.1, but can't run the command, "convert". I received the following error message. Any help would be greatly appreciated.
The DYLD_LIBRARY_PATH is not set in the .bash_profile.
dyld: Symbol not found: __cg_jpeg_resync_to_restart
Referenced from: /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
Expected in: /usr/local/ImageMagick-6.9.2/lib//libjpeg.9.dylib
in /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
Trace/BPT trap: 5
For me at least, the answer is to simply remove the offending library (libraries in my case) from /usr/local/ImageMagick-6.9.2/lib/ as then the default ones are picked up -- no need for symlink(s).
I rarely build anything from source, so I really have no idea what's going on here, but have done good few hours of googling and still can't solve it...
I have installed xcode from app store, downloaded newest lua and here is what happens:
cd lua-5.3.0
make macosx
dyld: Symbol not found: _os_release
Referenced from: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
Expected in: /usr/local/terrame/lib/libSystem.B.dylib
in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
make: error: unable to locate xcodebuild, please make sure the path to the Xcode folder is set correctly!
make: error: You can set the path to the Xcode folder using /usr/bin/xcode-select -switch
I then run
xcode-select -r
and still get
dyld: Symbol not found: _os_release
Referenced from: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
Expected in: /usr/local/terrame/lib/libSystem.B.dylib
in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
If I then once again try
make macosx
the first error comes back at me:
dyld: Symbol not found: _os_release
Referenced from: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
Expected in: /usr/local/terrame/lib/libSystem.B.dylib
in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
make: error: unable to locate xcodebuild, please make sure the path to the Xcode folder is set correctly!
make: error: You can set the path to the Xcode folder using /usr/bin/xcode-select -switch
I have tried installing an extension to Lua before, called terrame (terrame.org) so that's what the folder path refers to...
EDIT (answering comments)
which make
/usr/bin/make
I get this error on my Mac OS Lion when I use gcc make:
dyld: Symbol not found: _iconv
Referenced from: /usr/lib/libcups.2.dylib
Expected in: /opt/local/lib/libiconv.2.dylib
in /usr/lib/libcups.2.dylib
dyld: Symbol not found: _iconv
Referenced from: /usr/lib/libcups.2.dylib
Expected in: /opt/local/lib/libiconv.2.dylib
in /usr/lib/libcups.2.dylib
./configure.sh: line 364: 18386 Trace/BPT trap: 5 $QTDIR/bin/qmake "$SRCDIR/$product.pro"
qmake failed
Note: I installed Macports in my machine. This used to work before, is this a known issue with MacPorts?
you can use the built in libiconv by selecting your target, going to the Build Phases tab and adding it to the link libraries and frameworks build phase.
as a general rule if you are missing linker symbols you can look up the symbol in your project and see what header they are from, and you can then usually figure out the appropriate library or framework.
in this case it tells you what library it is expecting...
you will want to use the built in version for a dynamic library, because with default linker flags, if this built product were to get moved to another computer it would try to resolve the symbols at run time in that location, and crash.