Homebrew link issue on Mac OS X (10.7.5) - macos

I'm having issues troubleshooting a link problem when installing Homebrew. I'm attempting to install it on Mac OS X (10.7.5). I have been unable to find a solution and could use help. The error I'm receiving is below.
tone$ brew link wget
Linking /usr/local/Cellar/wget/1.14... Warning: Could not link wget. Unlinking...
Error: Could not symlink file: /usr/local/Cellar/wget/1.14/share/man/man1/wget.1
Target /usr/local/share/man/man1/wget.1 already exists. You may need to delete it.
To force the link and overwrite all other conflicting files, do:
brew link --overwrite formula_name
To list all files that would be deleted:
brew link --overwrite --dry-run formula_name
I ran the following commands to get to this point
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
$ brew install wget

Related

Cannot install/link wget on macos

I'm trying to install wget on macOS.
It's not installed already:
foo#foo-MacBook-Pro ros2_foxy % wget
zsh: command not found: wget
running brew install gives:
foo#foo-MacBook-Pro ros2_foxy % brew install wget
Warning: wget 1.20.3_2 is already installed, it's just not linked
You can use `brew link wget` to link this version.
so trying to link:
foo#foo-MacBook-Pro ros2_foxy % brew link wget
Linking /usr/local/Cellar/wget/1.20.3_2...
Error: Could not symlink share/locale/be/LC_MESSAGES/wget.mo
/usr/local/share/locale/be/LC_MESSAGES is not writable.
'''
how to fix this?

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.

Can't install imagemagick with brew on Mac OS X mavericks

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

Qmake installed but not linked - Using Brew - Mac

I have installed Qmake using brew.
brew install qt
The results which the terminal brings is:
Warning: qt-4.8.6 already installed, it's just not linked
This is a problem with brew to install correct the things? because I am having the same "not linked" problem with PostgreSQL.
Thks
I found the problem:
The Brew can't write to the folder /usr/local/lib/
So I used the command: sudo chown -R $USER /usr/local/lib
I found a similar error here: Brew doctor says: "Warning: /usr/local/include isn't writable."
But this problem was with another folder permission.
The Brew can't write to the folder
/usr/local/lib/
So I used the command:
sudo chown -R $USER /usr/local/lib
After need uninstall and install qt again. (If you run reinstall the problem will continuous)
brew uninstall qt
brew install qt
I found a similar error here:
Brew doctor says: “Warning: /usr/local/include isn't writable.”
But this problem was with another folder permission.
Try
brew link qt
Which should tell brew to link the package.
If that doesn't work, someone else had a similar problem here: Error: The 'brew link' step did not complete successfully

Unable to brew link qt

So I just installed qt via brew in Mac OS X. It was unable to link it however.
When I try to run brew link qt or brew link --overwrite qt I get back the following:
tonybeninate$ brew link --overwrite qt
Linking /usr/local/Cellar/qt/4.8.4... Warning: Could not link qt. Unlinking...
Error: Directory not empty - /usr/local/opt/qt
Anyone have any suggestions? I've also tried running brew link -n qt and removing any files/dirs that were conflicting to no avail.
Try brew cleanup.
Even with above command, you might get similar error. To fix it, change permissions with
sudo chown -R $(whoami) /usr/local
If you are on Mac High Sierra, use
sudo chown -R $(whoami) $(brew --prefix)/*
Follow this post for more permissions related changes
Once permissions are done, try brew cleanup and your command brew link --overwrite qt

Resources