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.
Related
A few days ago, homebrew started to stuck when I try to run brew doctor or brew --config. The output is:
$ brew --config
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/Homebrew/homebrew.git
HEAD: 391ed374442cb8f91d9168ccd23f1c97b84686d1
Last commit: 6 minutes ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit sandybridge
OS X: 10.10.1-x86_64
and
$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry and just ignore them. Thanks!
Warning: Setting DYLD_* vars can break dynamic linking.
Set variables:
DYLD_LIBRARY_PATH: /usr/local/kde4/lib:/Users/<username>/Desktop/anderes/benvium-libimobiledevice-macosx-8507dd2
The only way to exit is sending a SIGINT to the process. Anyway, brew update worked:
$ brew update
Updated Homebrew from cd9895d9 to 391ed374.
==> Updated Formulae
curl fwknop john-jumbo sshrc
$ brew update
Already up-to-date.
I tried reinstalling homebrew, but it does not seem to work:
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
It appears Homebrew is already installed. If your intent is to reinstall you
should do the following before running this installer again:
rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup
$ rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
/Users/<username>/.rbenv/shims/ruby: line 21: /usr/local/Cellar/rbenv/0.4.0/libexec/rbenv: No such file or directory
Surprisingly, the brew command itself does work even after the rm command above. I'm wondering what I'm doing wrong. Thanks for any help!
I got a solution now: xcode-select was pointing to the wrong directory. sudo xcode-select -switch /Applications/Xcode.app solved the problem.
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.
I had some issues while trying to upgrade the brew formulas with php54. I found on github some suggestions to deal with the openssl php brew bug. Some of them suggested to run brew link openssl --force and I did that but at the end the issue was somewhere else and was not related to openssl.
So how do I undo brew link openssl --force. I tried to see what this does with brew link openssl --dry-run but the output is:
Warning: openssl is keg-only and must be linked with --force
Note that doing so can interfere with building software.
and obviously not the one that I expect.
Thanks.
Just do
brew unlink openssl
That will remove the symlinks that were created when running brew link.
I am using Homebrew v0.9.5 on my Mac OS X version 10.9.4
When I run the command: `brew install imagemagick, this error occurred.
$ brew install imagemagick
==> Installing dependencies for imagemagick: libpng, freetype
==> Installing imagemagick dependency: libpng
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/libpng-1.6.12.mavericks.bottle.tar.gz
curl: (7) Failed connect to downloads.sf.net:443; Operation timed out
Error: Failed to download resource "libpng"
Download failed: https://downloads.sf.net/project/machomebrew/Bottles/libpng-1.6.12.mavericks.bottle.tar.gz
Warning: Bottle installation failed: building from source.
==> Downloading https://downloads.sf.net/project/libpng/libpng16/1.6.12/libpng-1.6.12.tar.gz
curl: (7) Failed connect to downloads.sf.net:443; Operation timed out
Error: Failed to download resource "libpng"
Download failed: https://downloads.sf.net/project/libpng/libpng16/1.6.12/libpng-1.6.12.tar.gz
I have added --disable-openmp option, it also doesn't go well.
$ brew install imagemagick --disable-openmp
brew doctor command result has no problem.
$ brew doctor
Your system is ready to brew.
Have you tried a
$ brew update
$ brew install imagemagick --disable-openmp --build-from-source
Apparently that seemed to fix it for me on Mac OS 10.8 (Mountain Lion). Previously I checked out the latest imagemagick brew recipe with "brew versions imagemagick" and "git checkout e68e443", see here and here
I'm not certain whether the source of my problem was the same as the OP's, however (though this has an accepted answer already) I'll post this in case this solution works for others.
Using brew install imagemagick, I would encounter the following error:
curl: (52) Empty reply from server Error: Failed to download resource
"libpng" Download failed:
https://downloads.sf.net/project/libpng/libpng16/1.6.16/libpng-1.6.16.tar.xz
Which is similar, if less specific than the OP's message.
As it turned out, I already had a previous version of libpng installed (version 1.5.7). I then ran:
brew upgrade libpng
Followed by another brew install libpng, and this time it succeeded, as it now had the correct version needed.
This problem also occurs because https://downloads.sf.net/project/libpng/libpng16/1.6.16/libpng-1.6.16.tar.xz has a badly configured SSL certificate. Open the link in your browser and see if your browser complains.
If that's the case, you can manually download the file to /Library/Caches/Homebrew and run again.
Source: https://github.com/Homebrew/homebrew/issues/36703
For me it was upgrading to El Capitan. I found the simplest solution was to force remove homebrew:
sudo ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
then to re-install it:
sudo /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
then install imageMajick:
brew install ImageMagick
Depending on your setup you may not want to sudo. For me, its fine. Enjoy a snack while you manipulate images.
In my case the url was simply not correct, with which homebrew wanted to download the required file. I looked it up here http://sourceforge.net/projects/libpng/files/libpng16/older-releases/1.6.16/ by myself and copied it to /Library/Caches/Homebrew like #Dan suggested.
I then run brew install libpng again and it worked.
Follow this:
brew install imagemagick#6
Add below lines in to ~/.bash_profile file
export LDFLAGS="-L/usr/local/opt/imagemagick#6/lib" export
CPPFLAGS="-I/usr/local/opt/imagemagick#6/include" export
PKG_CONFIG_PATH="/usr/local/opt/imagemagick#6/lib/pkgconfig"
Install Rmagick
source ~/.bash_profile
gem install rmagick
If you are an Anaconda/Miniconda user on Mac OSX or Linux, you can install packages like imagemagick using conda.
conda install -c conda-forge imagemagick
https://anaconda.org/conda-forge/imagemagick
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.