dyld: Library not loaded: /usr/local/opt/isl/lib/libisl.21.dylib - macos

I'm trying to get set-up with QMK to write my own key maps for a Rama M6-c.
When running make wilba_tech/rama_works_m6_b:default, which is also used for the Rama M6-c, I keep receiving the following message:
dyld: Library not loaded: /usr/local/opt/isl/lib/libisl.21.dylib
within my terminal.
The error message is
internal compiler error: Abort trap: 6 signal terminated program cc1.
I've tried the suggested commands mentioned on QMK's website to no success.
I've also tried upgrading homebrew, uninstalling homebrew, re-installing homebrew, fixing any warnings from homebrew's doctor command, re-running util/qmk_install.sh, upgrading node, and switching node versions.
Has anyone else experienced this issue recently or have any suggestions/fixes?
OS: macOS Catalina
node: 12.14.0 (default set through NVM)
device: Rama M6-c

Try updating the reference to isl :
install_name_tool -change '/usr/local/opt/isl/lib/libisl.21.dylib' /usr/local/opt/isl/lib/libisl.dylib /usr/local/Cellar/avr-gcc#8/8.3.0/libexec/gcc/avr/8.3.0/cc1

This very issue is described in the FAQ:
https://docs.qmk.fm/#/faq_build?id=avr-gcc-internal-compiler-error-abort-trap-6-program-cc1-on-macos
This is an issue with updating on brew, causing symlinks that avr-gcc depend on getting mangled.
The solution is to remove and reinstall all affected modules.
brew rm avr-gcc
brew rm avr-gcc#8
brew rm dfu-programmer
brew rm dfu-util
brew rm gcc-arm-none-eabi
brew rm arm-gcc-bin#8
brew rm avrdude
brew install avr-gcc#8
brew install dfu-programmer
brew install dfu-util
brew install arm-gcc-bin#8
brew install avrdude
brew link --force avr-gcc#8
brew link --force arm-gcc-bin#8
And after that, run this command to force use v8:
brew link --overwrite avr-gcc#8 --force
It will fix your problem. At least it did for me.

This happened for me on a Mac while running the musl.cc cross compilers. I solved it via
brew install isl

Since I can't comment yet ...
You want this specifically:
install_name_tool -change '/usr/local/opt/isl/lib/libisl.21.dylib' /usr/local/opt/isl/lib/libisl.dylib /usr/local/Cellar/avr-gcc#8/8.3.0/libexec/gcc/avr/8.3.0/cc1
install_name_tool -change '/usr/local/opt/isl/lib/libisl.21.dylib' /usr/local/opt/isl/lib/libisl.dylib /usr/local/Cellar/avr-gcc#8/8.3.0/libexec/gcc/avr/8.3.0/lto1
So that both compiling and LTO work (if you use it).

Related

Homebrew will not run wget command (Library not loaded)

I received the following message when I try to use wget command after installation on Homebrew (running Mac High Sierra 10.13).
dyld: Library not loaded: /usr/local/opt/gettext/lib/libintl.8.dylib
Referenced from: /usr/local/bin/wget
Reason: image not found
Abort trap: 6
I tried to reinstall wget. Issue still persists.
wget gave me that error after migrating to a new macbook. What worked for me was
brew uninstall --force gettext
brew install gettext
brew uninstall wget
brew install wget
solved me both gettext and git clone issues.
You can fix it by reinstall gettext
brew reinstall gettext
A simple reinstall of "wget" fixed this issue in my case.
brew reinstall wget
uninstall and reinstalling the brew will fix the issue
Uninstall
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
install
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Actually, I have tried a lot of methods, but the command brew reinstall wget solved my problems at last.
I had similar issue with git , fixed it with brew reinstall gettext
Likely problem with libintl.8.dylib as in many other similar issues:
brew link --overwrite ruby
brew uninstall --force gettext
brew install gettext
locate libintl.8.dylib
if /gettext//libintl.*.dylib exists
brew link -f gettext
go to (depending on version)
cd /usr/local/Homebrew
cd /usr/local/Library/Homebrew
and execute (make sure you're in .../Homebrew directory)
git pull origin master
rm -fr ".git/rebase-apply"
brew update && brew upgrade
this last will took some time, but afterwards everything should work fine.

Library not loaded error after brew install php56

I'm upgrading from php5.5 to php5.6 on OSX Mavericks using homebrew. I run
brew install php56
Everything runs and completes fine but when I run php -v the following error comes up
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.53.dylib
Referenced from: /usr/local/bin/php
Reason: image not found
Trace/BPT trap: 5
How do I fix this?
Try this
brew uninstall --ignore-dependencies node icu4c
brew install node
For me simply upgrading php helped.
brew upgrade php
The corresponding file dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.<version>.dylib did not exist but a more recent one. So my php version was a bit behind compared to other dependents which probably upgraded icu4c when upgrading them. (Either node or postgresql?)
In my case, it was a symlink issue with the previous installation. Everything was fine after running
brew link --overwrite php56
P.S. Before running with --overwrite, try without. If you get the error below like I did, then go ahead.
Linking /usr/local/Cellar/php56/5.6.3...
Error: Could not symlink bin/pear
Target /usr/local/bin/pear
is a symlink belonging to php55. You can unlink it:
brew unlink php55
To force the link and overwrite all conflicting files:
brew link --overwrite php56
To list all files that would be deleted:
brew link --overwrite --dry-run php56
previous solution was not working:
$ php -i
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.55.dylib
Referenced from: /usr/local/bin/php
Reason: image not found
Trace/BPT trap: 5
solved with:
$ brew update && brew upgrade icu4c
see https://github.com/Homebrew/homebrew-php/issues/1701
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.53.dylib
It sounds like an issue with icu4c. So try:
brew uninstall icu4c && brew install icu4c
brew unlink icu4c && brew link icu4c --force
In case of further issues, investigate them by brew doctor.
For this to be fixed for me (Mavericks 10.9.5) necessitated the entire routine described in this GitHub issue, namely:
brew uninstall --force php56
brew update
brew tap --repair
find $(brew --cache) -mindepth 1 -print -delete
brew install -v php56
(and in my case I needed brew install php56-mcrypt as well, as that was missing.)
I'd had PHP 5.4 and 5.6 installed before, with 5.4 being the active ("linked") one – I wanted to switch. I'd installed the php-switcher package, which is a very neat way of letting you do this, but it wasn't working prior to the above procedure.
brew uninstall --ignore-dependencies node icu4c
brew install node
worked for me.

Library not loaded error (libidn.11.dylib) when trying to install Homebrew

Trying to install Homebrew on Lion. When I do:
/usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
I get this error:
dyld: Library not loaded: /opt/local/lib/libidn.11.dylib
Referenced from: /usr/local/bin/curl
Reason: image not found
I had MacPorts installed previously but uninstalled it and completely removed /opt/local
I also removed /opt/local from my PATH
Any idea why this error is happening?
You built and installed curl into /usr/local/bin, but it linked against your MacPorts-installed libidn. You should delete /usr/local/bin/curl. You may also want to double-check everything else in /usr/local/bin to see if they have the same problem.
You may also need to check things in /usr/local/lib in case they link against MacPorts-installed libraries too. For example, curl may have a /usr/local/lib/libcurl.dylib that might link against stuff from /opt/local/lib.
For me, running brew install libidn did the trick
Try $ brew reinstall curl , the curl dependency is reinstalled
cd /usr/local/opt/libidn2/lib/
ln -s libidn2.4.dylib libidn2.0.dylib
The following fixed the specific issue for me:
rm -f /usr/local/bin/curl
ruby <(curl -fsSkL raw.github.com/mxcl/homebrew/go)
If you already have an older homebrew installed:
rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup
Stash any unbrewed files:
cd /usr/local/Library && git stash && git clean -f
brew doctor:
Install xcode cli tools from http://connect.apple.com.

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