I'm trying to install gdal via homebrew so I can start working with topojson, but I keep getting this error and I'm not sure how to resolve it?
k-6177:Cellar k$ brew install gdal
==> Installing dependencies for gdal: libpng, giflib, libtiff, lzlib, proj, libgeotiff, geos, sqlite, freexl, libxml2, json-c, liblwgeom, libspatialite
Error: Cannot link libpng
Another version is already linked: /usr/local/Cellar/libpng/1.6.16
Looks like I just needed to change some permissions. I used the following command:
sudo chown -R $(whoami):admin /usr/local
I did brew unlink libpng (or any other "already linked" package).
Related
When I install watchman using brew install watchman, it got this Error: You must brew link pcre before watchman can be installed. So I try brew link pcre and brew link --overwrite pcre, I just got
linking /usr/local/Cellar/pcre/8.36...
Error: Could not symlink share/man/man3/pcre.3
/usr/local/share/man/man3 is not writable.
Can anyone help?
By design Homebrew (brew) requires the contents of /usr/local to be owned by you. You can fix it easily by running:
sudo chown -R `whoami` /usr/local
from your Terminal.
See here for further explanation.
first
sudo chown -R 'your name' /usr/local
then
brew link pcre -f
then
brew install watchman
it should work
I can't get FlowType to install on Mac OS using brew. I typed:
$> brew update
...
$> brew install flow
Error: You must `brew link objective-caml' before flow can be installed
$> brew link objective-caml
Linking /usr/local/Cellar/objective-caml/4.02.1_2...
Error: Could not symlink share/man/man3/Weak.S.3o
/usr/local/share/man/man3 is not writable.
$>
What's wrong?
Please Try change Permission
sudo chown -R $USER /usr/local/lib
The official installation method for flow is locally per-project using yarn (or npm).
yarn add --dev flow-bin
OR
With npm:
npm install --save-dev flow-bin
See the full instructions at https://flow.org/en/docs/install/
I'm trying to install wxWidgets on Mac OS X 10.9. It's already installed, but I'm having the problem described here. Someone suggested to add ENV.append_to_cflags "-stdlib=libc++". I did, but I'm not able to recompile the code.
$ brew install wxmac
Warning: wxmac-3.0.0 already installed
$ brew edit wxmac
=> ok, modifications done, now I want to recompile and reinstall
$ brew uninstall wxmac
Uninstalling /usr/local/Cellar/wxmac/3.0.0...
$ brew install wxmac
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/wxmac- 3.0.0.mavericks.bottle.2.tar.gz
Already downloaded: /Library/Caches/Homebrew/wxmac-3.0.0.mavericks.bottle.2.tar.gz
==> Pouring wxmac-3.0.0.mavericks.bottle.2.tar.gz
🍺 /usr/local/Cellar/wxmac/3.0.0: 775 files, 41M
How can I force homebrew to recompile?
Homebrew is installing wxmac in bottle form (a pre-compiled binary of wxmac). To build from source, add the --build-from-source flag when calling brew install:
$ brew install --build-from-source wxmac
To rebuild all installed FORMULAE from source:
$ brew list | xargs brew reinstall --build-from-source
Any help with this problem which I faced while trying gfortran using homebrew. Thank you very much in advance.
bash-3.2$ brew install gfortran
Warning: gfortran-4.8.0 already installed, it's just not linked
bash-3.2$ brew link gfortran
Linking /usr/local/Cellar/gfortran/4.8.0... Warning: Could not link gfortran. Unlinking...
Error: Could not symlink file: /usr/local/Cellar/gfortran/4.8.0/share/gcc-4.8.0/python
/libstdcxx/v6/printers.py
Target /usr/local/share/gcc-4.8.0/python/libstdcxx/v6/printers.py already exists.
You may need to delete it.
To force the link and delete this file, do:
brew link --overwrite formula_name
To list all files that would be deleted:
brew link --overwrite --dry-run formula_name
bash-3.2$
This looks like another GCC 4.8 installation, either from Homebrew or elsewhere, is conflicting with the gfortran install. GFortran is based on GCC so they can collide.
The gcc48 Homebrew formula looks like it has an undocumented conflict with gfortran. Both want to symlink /usr/local/share/gcc-4.8.0. I was able to reproduce your error with brew tap homebrew/versions; brew install gcc48; brew install gfortran
Head on over to the Homebrew issue tracker on GitHub and report this conflict as a bug.
As a workaround, if you don't need that GCC 4.8.0, either brew unlink gcc48 (if it's from homebrew) or uninstall it, and then try the gfortran install again.
UPDATE: Looks like the Homebrew folks are already aware of this issue. There is a fix for it included in this pull request (#19382).
Basically I am trying to install imagemagick using brew and got the following error.
[~]$ brew install imagemagick
==> Installing imagemagick dependency: libtiff
==> Downloading http://download.osgeo.org/libtiff/tiff-4.0.1.tar.gz
Already downloaded: /Library/Caches/Homebrew/libtiff-4.0.1.tar.gz
==> ./configure --prefix=/usr/local/Cellar/libtiff/4.0.1
==> make install
Error: The linking step did not complete successfully
The formula built, but is not symlinked into /usr/local
You can try again using `brew link libtiff'
==> Summary
/usr/local/Cellar/libtiff/4.0.1: 239 files, 3.7M, built in 42 seconds
Error: You must `brew link libtiff' before little-cms can be installed
[~]$ brew link libtiff
Linking /usr/local/Cellar/libtiff/4.0.1...
Error: Could not symlink file: /usr/local/Cellar/libtiff/4.0.1/share/man/man3/TIFFWriteDirectory.3tiff
Target /usr/local/share/man/man3/TIFFWriteDirectory.3tiff already exists. You may need to delete it.
Everytime I remove one, I get the error message asking me to remove another file. I have already removed like 20 of those files and I am not sure how many more are there. Is there a easier way of doing this?
Appreciate any advice.
Try this...
> brew link --overwrite libtiff