Cannot get ffmpeg to work after installing from homebrew - shell

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

Related

running of curl in terminal in mac os give incompatible library version error

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

curl gives an ERROR on Mac OS

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

Can't install tmux. Error: dyld: Library not loaded: /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib

I tried installing tmux by doing the steps specified here. I have tried all the suggested steps, but the terminal still gave me this error:
dyld: Library not loaded: /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib
Referenced from: /usr/local/opt/libevent/lib/libevent-2.1.6.dylib
Reason: image not found
Trace/BPT trap: 5
Reinstalling openssl did not work for me, but
brew upgrade tmux
got me to version 3.0a and got rid of the error.
These steps are worked for me.
brew uninstall --ignore-dependencies openssl
brew install openssl
Looks like you don't have openssl lib. Try to install with brew install openssl
I tried the answer by #Kaifei, but ran into problems with openssh. At the end, I also had to do:
brew upgrade openssh
to resolve the issue. This blog talks about this solution.

ImageMagick and OS X Lion trouble

[edit] I was troubleshooting problems with my development environment when I noticed one of my problems was the dependency on ImageMagick, since it's a vital part of my app.
After upgrading to OS X Lion (10.7) i no longer had ImageMagick available, i then tried installing again using MacPorts without success, i then installed from source, and the install wasn't very successfully i had convert and identify but it output error messages that i unfortunately dont have anymore, i by some strange reason decided to remove all of my MacPort libraries and started using Homebrew, i tried installing ImageMagick, it installs OK but when i try to use it throws this error
dyld: Library not loaded: /opt/local/lib/libltdl.7.dylib
Referenced from: /usr/local/bin/convert
Reason: Incompatible library version: convert requires version 11.0.0 or later, but libltdl.7.dylib provides version 10.0.0
Trace/BPT trap: 5
I read online but i have no clue on whats going on here, i found that libltdl is called libtool, and that i obviously need to upgrade it to a newer version, but i havent found any indication of how or where to find the source, or if this should be already be handled by homebrew and why it hasn't.
I tried installing ImageMagick again from source using this installer script https://github.com/masterkain/ImageMagick-sl but when i try to use convert it throws a similar error.
$ convert gnome.jpg -resize 50% gnome_.jpg
dyld: Library not loaded: /opt/local/lib/libltdl.7.dylib
Referenced from: /usr/local/bin/convert
Reason: Incompatible library version: convert requires version 11.0.0 or later, but libltdl.7.dylib provides version 10.0.0
Trace/BPT trap: 5
$ which convert
/usr/local/bin/convert
What can i do to solve my problem?
On 10.8 I solved this issue with:
brew install libtool --universal
brew link libtool
If you don't know what brew is, visit https://github.com/mxcl/homebrew and its wiki.
brew uninstall imagemagick
brew install imagemagick --build-from-source
worked for me
I too use homebrew for installing packages but imagemagick stopped working after upgrading OSX 10.8 to 10.9 (Mavericks). I had to do the following steps:
brew uninstall imagemagick
brew uninstall libtool
brew install libtool --universal
brew install imagemagick --build-from-source
Why the --build-from-source? Well for me running brew install imagemagick on its own to install the pre-built binary wasn't sufficient; it fixed the original 'dyln' error but was replaced with:
unable to load module `/usr/local/Cellar/imagemagick/6.8.7-7/lib/ImageMagick//modules-Q16/coders/png.la': file not found # error/module.c/OpenModule/1277
I also upgraded to Lion and lost ImageMagick, although i'm getting different errors.
i found a Lion distribution on imagemagick.org. not a big fan of the DYLD_LIBRARY_PATH environment variable but it works.
ok scratch that. i just downloaded the ImageMagick source and re-compiled:
cd /tmp
curl -OL ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz
tar -xzf ImageMagick.tar.gz
cd ImageMagick-6.7.2-7/
./configure --prefix=/usr/local --disable-static --with-modules --without-perl --without-magick-plus-plus --with-quantum-depth=8 --disable-openmp --with-gs-font-dir=/usr/local/share/ghostscript/fonts
make
sudo make install
On Mountain Lion OSX,
Even with the updated brew for imagemagick(which includes libtool), this error seemed to happen to me.
so i fixed it using the following commands
brew uninstall libtool
brew install libtool --universal
brew link libtool --force
For others looking and still having trouble, I used this:
https://github.com/maddox/magick-installer
On 10.8, with brew, I solved this issue with:
brew install graphicsmagick
For the googlers: If you happened to have it installed with brew beforehand, you'll need to reinstall by running brew uninstall graphicsmagick before installing again. Easy.
This helped me after restoring OS X 10.9.3 from time machine.
brew uninstall imagemagick
brew uninstall libtool
brew install libtool --universal
brew unlink libtool && brew link libtool
brew install imagemagick
brew install Homebrew/python/pillow
brew link --overwrite pillow
The same problem might occur with OSX Mountain Lion (preview 4). I had to configure some parts separately because there are some library incompatibilities:
dyld: Library not loaded: /usr/local/lib/libjpeg.8.dylib
Referenced from: /usr/local/bin/convert
Reason: Incompatible library version: convert requires version 13.0.0 or later, but libjpeg.8.dylib provides version 9.0.0
I had to add --with-fontconfig=no, --with-lzma=no and use /opt/local/share/... instead of /usr/local/share/... for the ghostscript fonts:
cd /tmp
curl -OL ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz
tar -xzf ImageMagick.tar.gz
cd ImageMagick-6.7.8-0/
./configure --prefix=/usr/local --disable-static --with-modules --without-perl --without-magick-plus-plus --with-quantum-depth=8 --disable-openmp --with-fontconfig=no --with-gs-font-dir=/opt/local/share/ghostscript/fonts --with-lzma=no
make
sudo make install
I could fix the ImageMagick problem by installing corresponding package from cactuslab site.
Then by setting the PATH variables in terminal:
export MAGICK_HOME="/usr/local/ImageMagick/"
export PATH="$MAGICK_HOME/bin:$PATH"
export DYLD_LIBRARY_PATH="$MAGICK_HOME/lib/"
If you're using Homebrew, try the following command:
brew doctor
to diagnose the common problems.
One of it could be to remove DYLD_FALLBACK_LIBRARY_PATH variable from your ~/.profile if you have it.
Or you have to re-install libtool by:
brew reinstall libtool --universal && brew unlink libtool && brew link libtool
I tried most of the solutions above and they didn't work. Here's how I fixed my problem:
brew install imagemagick;
brew install freetype;
cd /usr/X11/lib/;
sudo mv libfreetype.6.dylib libfreetype.6.dylib.orig;
sudo ln -s /usr/local/opt/freetype/lib/libfreetype.6.dylib libfreetype.6.dylib
Tested on OS X 10.7.2
For 10.7.8 and up, you have to install the php version and not the pecl version. Depending on your version of php you've install with Macports you can either do:
sudo port install php-imagick
sudo port install php5-imagick
sudo port install php53-imagick
sudo port install php54-imagick
Remember only to do the one of your current version of php.

Lion (10.7) Not supporting Convert(1). Dylib error

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

Resources