when running curl via Terminal, I get the following error:
dyld: Library not loaded: /opt/local/lib/libintl.8.dylib
Referenced from: /opt/local/bin/curl
Reason: image not found
Abort trap: 6
I installed the latest version of Xcode and even "brew install curl" but neither helped. any ideas what is going on??
(OS Sierra)
The issue is that the version of curl installed is incomplete. It appears that it's one installed from MacPorts, since /opt/local/bin/curl is the normal location of where it installs.
The native Apple version is in /usr/bin.
You can either uninstall or reinstall the MacPorts version:
sudo port install curl
or to uninstall
sudo port uninstall curl
↳ MacPorts Common Tasks
Related
I want to use kafkacat command line utility(https://docs.confluent.io/current/app-development/kafkacat-usage.html) on my MacOS Mojave(10.14.5). I executed the below steps
brew install kafkacat
kafkacat -C -b brokerID -t kafkaTopic -e -K '+'
I am getting the error as below
dyld: lazy symbol binding failed: Symbol not found: _timespec_get
Referenced from: /usr/local/opt/librdkafka/lib/librdkafka.1.dylib
Expected in: /usr/lib/libSystem.B.dylib
dyld: Symbol not found: _timespec_get Referenced from:
/usr/local/opt/librdkafka/lib/librdkafka.1.dylib Expected in:
/usr/lib/libSystem.B.dylib
Abort trap: 6
I've tried uninstalling and reinstalling kafkacat.
I ran into the same issue. Looks like it is coming from librdkafka: https://github.com/edenhill/librdkafka/pull/2569 and the last version of Xcode (11). You can either:
Uninstall librdkafka / kafkacat brew version (brew uninstall ...). Rebuild librdkafka using the "fixed" branch and then rebuild kafkacat (method I tested) OR
Downgrade Xcode to 10.x
I was experiencing same error with librdkafka in macOS Mojave ver. 10.14.6, I had installed Xcode 11.x.
dyld: lazy symbol binding failed: Symbol not found: _timespec_get
Referenced from: /usr/local/opt/librdkafka/lib/librdkafka.1.dylib
Expected in: /usr/lib/libSystem.B.dylib
dyld: Symbol not found: _timespec_get
Referenced from: /usr/local/opt/librdkafka/lib/librdkafka.1.dylib
Expected in: /usr/lidyld: lazy symbol binding failedb/libSystem.B: Symbol not found: _timespec_ge.dylib
I found an open issue in Blizzard/node-rdkafka describing the same error. As suggested, I downgraded Xcode from 11.x to 10.3, then rebuild librdkafka
brew install --build-from-source librdkafka
It worked!
By the way, it looks like the fix for librdkafka has just been merged into master.
The below worked for me after I read about the issue in https://github.com/edenhill/librdkafka/pull/2569
I uninstalled kafkacat and then librdkafka
brew uninstall kafkacat
brew uninstall librdkafka
Then I installed the latest version of kibrdkafka that has the fix but is not available in brew yet like below
brew install librdkafka --HEAD
Then installed kafkacat again
brew install kafkacat
Now the errors are gone and the consumer is connected.
Note my XCode version is 11.2.1
brew uninstall librdkafka
brew uninstall kafkacat
Apart from downgrading Xcode from 11.x to 10.3, installing Command Line Tools for Xcode 10.3 was also required. https://developer.apple.com/download/more/
Downgrading xcode => https://medium.com/#tseboho/how-to-downgrade-xcode-4359df5158d5
brew install --build-from-source librdkafka
brew install kafkacat
While running curl command in mac terminal gives following error:
dyld: Library not loaded: /usr/local/Cellar/curl/7.58.0/lib/libcurl.4.dylib
Referenced from: /usr/local/opt/curl/bin/curl
Reason: Incompatible library version: curl requires version 10.0.0 or later, but libcurl.4.dylib provides version 9.0.0
I tried to add path to bash_profile Its not working . how to make curl work in mac os?
I followed the recommendation from Kamil.S comment and I did those steps to solve the situation:
brew uninstall --force --ignore-dependencies curl
brew install curl
Also had to reinstall things depending on curl afterward (whatever was previously listed as dependent from brew uninstall --force curl):
brew uninstall --force git
brew install git
I encountered an error when I installed the 1.8.3 version of the json gem:
dyld: lazy symbol binding failed: Symbol not found: _rb_str_new_static
Referenced from: /Users/gnerkus/.rvm/gems/ruby-2.2.3/gems/json- 1.8.3/lib/json/ext/parser.bundle
Expected in: flat namespace
It was recommended on the json issue thread that libgmp3-dev be installed.
There are instructions for installing it on Linux but I've been unable to find any instructions for installing it on OSX.
If you happen to be on the same wagon, like I was today, the correct answer to install libgmp3-dev on mac is
brew install gmp
The issue resolved itself after a reboot. There was no need to install libgmp3-dev as this was already installed by xcode.
I discovered that the issue was not caused by the json module but by rvm when it discovers a ruby binary.
I installed ffmpeg through homebrew but when I try to run it, even just typing in ffmpeg I get the following error message:
dyld: Library not loaded: /usr/local/lib/liblzma.5.dylib
Referenced from: /usr/local/bin/ffmpeg
Reason: Incompatible library version: ffmpeg requires version 8.0.0 or later, but liblzma.5.dylib provides version 6.0.0
Trace/BPT trap: 5
I've tried running brew update and brew upgrade but that didn't change anything. Running brew doctor the only error I get is:
Warning: You have a curlrc file
If you have trouble downloading packages with Homebrew, then maybe this
is the problem? If the following command doesn't work, then try removing
your curlrc:
curl http://github.com
New at doing things in the terminal, what to do next?
I got it to work by running brew search liblzma which told me lzma is now part of the xz formula.
So then I ran brew install xz and tried running ffmpeg again and it works now!
What Worked Today
I'm running OSX Mojave 10.14.5 and got the dyld: Library not loaded: /usr/local/lib/liblzma.5.dylib complaint.
brew install xz did not work
Reinstall worked like a boss
brew uninstall --force ffmpeg && brew install ffmpeg
When trying to use convert(1), I get the following error:
dyld: Library not loaded: /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libclparser.dylib
Referenced from: /usr/local/bin/convert
Reason: image not found
Trace/BPT trap: 5
Any idea how I could fix it ?
I was getting this error as well–with a homebrew install of ImageMagick. Along the same lines as Pascal, I fixed it with
Install XCode 4.1 (from the App Store)
In Xcode, go to Xcode > Preferences... > Downloads tab > click Install next to Command Line Tools
Uninstall ImageMagick with brew uninstall imagemagick
Update homebrew with brew update
Install latest homebrew with brew install imagemagick
Run brew doctor and delete any of the *.la and *.a files listed if step 4 fails on make install
I got the same error and what solved the problem for me was:
Install the latest XCode version from the Mac Appstore
Install ImageMagick using Macports (sudo port install imagemagick)
Both steps took a while, but in the end ImageMagick worked fine again.
I installed xcode but had some issue with macports. Bummer!
I copied the libclparser.dylib file over from an old backup of 10.6, changed the permissions to match the other files in that folder and it worked!
Also see here:
https://stackoverflow.com/questions/6674666/installing-imagemagick-leads-to-weird-error-involving-opencl
Edit:
I found this, which may be useful: http://cactuslab.com/imagemagick/
Also, the file is here: http://www.workdreamer.com/uploads/libclparser.dylib
Reinstalling it even with brew instead of macports didn't work for me. Copying it did.
Try the following command:
brew doctor
to diagnose the common problems.
One of it could be removing DYLD_FALLBACK_LIBRARY_PATH variable from your ~/.profile
Or you have to re-install libtool by:
brew reinstall libtool --universal && brew unlink libtool && brew link libtool