How to overcome the following opencv issue installation? - macos

Hello I am trying to run a github repository:
https://github.com/oarriaga/face_classification
as follows:
MacBook-Pro:~/Downloads/face_classification-master$ pip install -r REQUIREMENTS.txt
Collecting keras==2.0.3 (from -r REQUIREMENTS.txt (line 1))
Using cached Keras-2.0.3.tar.gz
Collecting tensorflow==1.1.0 (from -r REQUIREMENTS.txt (line 2))
Using cached tensorflow-1.1.0-cp27-cp27m-macosx_10_11_x86_64.whl
Collecting pandas==0.19.1 (from -r REQUIREMENTS.txt (line 3))
Using cached pandas-0.19.1-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Collecting numpy==1.12.1 (from -r REQUIREMENTS.txt (line 4))
Using cached numpy-1.12.1-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Collecting h5py==2.7.0 (from -r REQUIREMENTS.txt (line 5))
Using cached h5py-2.7.0-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Collecting statistics (from -r REQUIREMENTS.txt (line 6))
Using cached statistics-1.0.3.5.tar.gz
Collecting opencv2-python==3.2.0 (from -r REQUIREMENTS.txt (line 9))
Could not find a version that satisfies the requirement opencv2-python==3.2.0 (from -r REQUIREMENTS.txt (line 9)) (from versions: )
No matching distribution found for opencv2-python==3.2.0 (from -r REQUIREMENTS.txt (line 9))
However I got an error with opencv then I tried:
MacBook-Pro:~/Downloads/face_classification-master$ pip3 install -r REQUIREMENTS.txt
Collecting keras==2.0.3 (from -r REQUIREMENTS.txt (line 1))
Using cached Keras-2.0.3.tar.gz
Requirement already satisfied: tensorflow==1.1.0 in /usr/local/lib/python3.6/site-packages (from -r REQUIREMENTS.txt (line 2))
Collecting pandas==0.19.1 (from -r REQUIREMENTS.txt (line 3))
Using cached pandas-0.19.1.tar.gz
Collecting numpy==1.12.1 (from -r REQUIREMENTS.txt (line 4))
Using cached numpy-1.12.1-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Requirement already satisfied: h5py==2.7.0 in /usr/local/lib/python3.6/site-packages (from -r REQUIREMENTS.txt (line 5))
Collecting statistics (from -r REQUIREMENTS.txt (line 6))
Using cached statistics-1.0.3.5.tar.gz
Collecting opencv2-python==3.2.0 (from -r REQUIREMENTS.txt (line 9))
Could not find a version that satisfies the requirement opencv2-python==3.2.0 (from -r REQUIREMENTS.txt (line 9)) (from versions: )
No matching distribution found for opencv2-python==3.2.0 (from -r REQUIREMENTS.txt (line 9))
I also tried:
MacBook-Pro:~/Downloads/face_classification-master$ brew install opencv3 --with-ffmpeg --with-tbb --with-contrib
==> Installing opencv3 from homebrew/science
==> Installing dependencies for homebrew/science/opencv3: cmake, pkg-config, lame, x264, xvid, ffmpeg, tbb
==> Installing homebrew/science/opencv3 dependency: cmake
==> Downloading https://homebrew.bintray.com/bottles/cmake-3.8.2.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring cmake-3.8.2.sierra.bottle.tar.gz
==> Using the sandbox
==> Caveats
Emacs Lisp files have been installed to:
/usr/local/share/emacs/site-lisp/cmake
==> Summary
🍺 /usr/local/Cellar/cmake/3.8.2: 2,208 files, 29.2MB
==> Installing homebrew/science/opencv3 dependency: pkg-config
==> Downloading https://homebrew.bintray.com/bottles/pkg-config-0.29.2.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring pkg-config-0.29.2.sierra.bottle.tar.gz
🍺 /usr/local/Cellar/pkg-config/0.29.2: 11 files, 627KB
==> Installing homebrew/science/opencv3 dependency: lame
==> Downloading https://homebrew.bintray.com/bottles/lame-3.99.5.sierra.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring lame-3.99.5.sierra.bottle.1.tar.gz
🍺 /usr/local/Cellar/lame/3.99.5: 26 files, 2MB
==> Installing homebrew/science/opencv3 dependency: x264
==> Downloading https://homebrew.bintray.com/bottles/x264-r2748.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring x264-r2748.sierra.bottle.tar.gz
🍺 /usr/local/Cellar/x264/r2748: 11 files, 3.3MB
==> Installing homebrew/science/opencv3 dependency: xvid
==> Downloading https://homebrew.bintray.com/bottles/xvid-1.3.4.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring xvid-1.3.4.sierra.bottle.tar.gz
🍺 /usr/local/Cellar/xvid/1.3.4: 9 files, 1.2MB
==> Installing homebrew/science/opencv3 dependency: ffmpeg
==> Downloading https://homebrew.bintray.com/bottles/ffmpeg-3.3.2.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring ffmpeg-3.3.2.sierra.bottle.tar.gz
🍺 /usr/local/Cellar/ffmpeg/3.3.2: 243 files, 50.7MB
==> Installing homebrew/science/opencv3 dependency: tbb
==> Downloading https://homebrew.bintray.com/bottles/tbb-2017_U7.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring tbb-2017_U7.sierra.bottle.tar.gz
==> Caveats
Python modules have been installed and Homebrew's site-packages is not
in your Python sys.path, so you will not be able to import the modules
this formula installed. If you plan to develop with these modules,
please run:
mkdir -p /Users/adolfocamachogonzalez/Library/Python/2.7/lib/python/site-packages
echo 'import site; site.addsitedir("/usr/local/lib/python2.7/site-packages")' >> /Users/adolfocamachogonzalez/Library/Python/2.7/lib/python/site-packages/homebrew.pth
==> Summary
🍺 /usr/local/Cellar/tbb/2017_U7: 119 files, 1.9MB
==> Installing homebrew/science/opencv3 --with-contrib --with-tbb --with-ffmpeg
==> Downloading https://github.com/opencv/opencv/archive/3.2.0.tar.gz
==> Downloading from https://codeload.github.com/opencv/opencv/tar.gz/3.2.0
######################################################################## 100.0%
==> Downloading https://github.com/opencv/opencv_contrib/archive/3.2.0.tar.gz
==> Downloading from https://codeload.github.com/opencv/opencv_contrib/tar.gz/3.2.0
######################################################################## 100.0%
==> Downloading https://raw.githubusercontent.com/opencv/opencv_3rdparty/81a676001ca8075ada498
######################################################################## 100.0%
==> cmake .. -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTA
==> make
==> make install
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local,
because opencv3 and opencv install many of the same files.
If you need to have this software first in your PATH run:
echo 'export PATH="/usr/local/opt/opencv3/bin:$PATH"' >> ~/.bash_profile
For compilers to find this software you may need to set:
LDFLAGS: -L/usr/local/opt/opencv3/lib
CPPFLAGS: -I/usr/local/opt/opencv3/include
For pkg-config to find this software you may need to set:
PKG_CONFIG_PATH: /usr/local/opt/opencv3/lib/pkgconfig
If you need Python to find bindings for this keg-only formula, run:
echo /usr/local/opt/opencv3/lib/python2.7/site-packages >> /usr/local/lib/python2.7/site-packages/opencv3.pth
mkdir -p /Users/adolfocamachogonzalez/Library/Python/2.7/lib/python/site-packages
echo 'import site; site.addsitedir("/usr/local/lib/python2.7/site-packages")' >> /Users/adolfocamachogonzalez/Library/Python/2.7/lib/python/site-packages/homebrew.pth
==> Summary
🍺 /usr/local/Cellar/opencv3/3.2.0: 498 files, 63.2MB, built in 6 minutes 58 seconds
After that when I tried to run code I got an error:
MacBook-Pro:~/Downloads/face_classification-master/src$ python video_test.py
Traceback (most recent call last):
File "video_test.py", line 1, in <module>
import cv2
ImportError: No module named cv2
So I really would like to appreciate support with this.

As the error message states, you are missing the python bindings for opencv.
When installing with homebrew you have to add --with-python or/and --with-python3 to your command.
brew install opencv3 --with-ffmpeg --with-tbb --with-contrib --with-python

Related

UPX MacOS Monterey 12.6

I'm attempting to install upx in terminal using 'brew install upx'
the git repo is fetched and downloaded then the following error appears:
==> Downloading https://formulae.brew.sh/api/formula.json
######################################################################## 100.0%
==> Downloading https://formulae.brew.sh/api/cask.json
######################################################################## 100.0%
==> Fetching upx
######################################################################## 100.0%
==> Downloading https://github.com/upx/upx/releases/download/v3.96/upx-3.96-src.tar.xz
Already downloaded: /Users/***/Library/Caches/Homebrew/downloads/bd95b9b65d032f884c07f772fdbea03291bc6ba5d6b6a952c236ce39891f4c28--upx-3.96-src.tar.xz
==> Patching
Error: An exception occurred within a child process:
Errno::ENOENT: No such file or directory # rb_sysopen - /Users/***/Library/Caches/Homebrew/downloads/828bed0793519b45dcaa13c6897f0e919e7023816880e2d770a3e5ea3129dbc8--51f69a20e0287904398bbf4c72ba2f809a0b0850.patch
Does anybody have any advice on how to resolve this?
Many thanks

can't install mariadb because of Cannot link cmake

I'm sorry if my question is a little newbie, i just get Mac in my job and I'm usually a Linux user...
I'm trying to install mariadb to use it after with python, i tried with brew. I know it's old version of macOS (and i can't do anything about it)
brew install mariadb
Running `brew update --auto-update`...
Warning: You are using macOS 10.14.
We (and Apple) do not provide support for this old version.
It is expected behaviour that some formulae will fail to build in this old version.
It is expected behaviour that Homebrew will be buggy and slow.
Do not create any issues about this on Homebrew's GitHub repositories.
Do not create any issues even if you think this message is unrelated.
Any opened issues will be immediately closed without response.
Do not ask for help from MacHomebrew on Twitter.
You may ask for help in Homebrew's discussions but are unlikely to receive a response.
Try to figure out the problem yourself and submit a fix as a pull request.
We will review it but may or may not accept it.
==> Fetching dependencies for mariadb: cmake, fmt, mecab, mecab-ipadic, msgpack, ca-certificates, openssl#1.1, pcre, groonga, pcre2, xz and zstd
==> Fetching cmake
==> Downloading https://github.com/Kitware/CMake/releases/download/v3.25.2/cmake-3.25.2.tar.gz
Already downloaded: /Users/cea/Library/Caches/Homebrew/downloads/b19b531ca705f5d1736fb10a83767e06ac2e8801a3f9f34ac8b4bd6e1697dda2--cmake-3.25.2.tar.gz
==> Fetching fmt
==> Downloading https://github.com/fmtlib/fmt/archive/9.1.0.tar.gz
Already downloaded: /Users/cea/Library/Caches/Homebrew/downloads/d39fe7ae376a7198a34490e5acb665b0112ea585720eb917c496bb050bc76c62--fmt-9.1.0.tar.gz
==> Fetching mecab
==> Downloading https://ghcr.io/v2/homebrew/core/mecab/manifests/0.996-3
Already downloaded: /Users/cea/Library/Caches/Homebrew/downloads/21431e68751945bd7900be15e222a38b4402841088e6d5669b4f48c56dc614b3--mecab-0.996-3.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/mecab/blobs/sha256:ef261d203140305ca8c9e4b7311c61176a17325df9454610d3eb33a312c4d3c5
Already downloaded: /Users/cea/Library/Caches/Homebrew/downloads/45441007488c38750c14c63895eccd562a5af40519f48eed3e35ce6eb10fbb13--mecab--0.996.mojave.bottle.3.tar.gz
==> Fetching mecab-ipadic
==> Downloading https://ghcr.io/v2/homebrew/core/mecab-ipadic/manifests/2.7.0-20070801
Already downloaded: /Users/cea/Library/Caches/Homebrew/downloads/011316e018929eb52aa0a17e2d6634fe3804c07bf44859f3cc7a0b4baf0e3cea--mecab-ipadic-2.7.0-20070801.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/mecab-ipadic/blobs/sha256:30967b4167d34f05c79f185d71a40198fff4067d0cce82aed59383548c898681
Already downloaded: /Users/cea/Library/Caches/Homebrew/downloads/f5097a021ff29918177e2d4279101124910e2f287932a3619641988e92f66a76--mecab-ipadic--2.7.0-20070801.mojave.bottle.tar.gz
==> Fetching msgpack
==> Downloading https://github.com/msgpack/msgpack-c/releases/download/c-5.0.0/msgpack-c-5.0.0.tar.gz
Already downloaded: /Users/cea/Library/Caches/Homebrew/downloads/c58619083eaba272e9c477c3c0deb886dc539140f009dd42dc2634e8db0378a3--msgpack-c-5.0.0.tar.gz
==> Fetching ca-certificates
==> Downloading https://ghcr.io/v2/homebrew/core/ca-certificates/manifests/2023-01-10
Already downloaded: /Users/cea/Library/Caches/Homebrew/downloads/927414ed081d996b84d938be6af4d2639403b4d2bee3cc29268d0844999da180--ca-certificates-2023-01-10.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/ca-certificates/blobs/sha256:11fe9d0a98a2ac454fa1db95762a697c3340f46560ff27e5e9db8fdeb003f17e
Already downloaded: /Users/cea/Library/Caches/Homebrew/downloads/ca2448928ab98c455b5e46d4a6604247a151ab0f4e60553dbb5c6aecd2e1df3c--ca-certificates--2023-01-10.all.bottle.tar.gz
==> Fetching openssl#1.1
==> Downloading https://www.openssl.org/source/openssl-1.1.1t.tar.gz
Already downloaded: /Users/cea/Library/Caches/Homebrew/downloads/ec3feb171aa63b32c30a6e7423e78f743f92d1ef984b66b0ea548d08220c0ce6--openssl-1.1.1t.tar.gz
==> Fetching pcre
==> Downloading https://ghcr.io/v2/homebrew/core/pcre/manifests/8.45
Already downloaded: /Users/cea/Library/Caches/Homebrew/downloads/4a3bba0e8d1899c13ac3442d2c49df6c1999948bdc0943f2f179693257d82545--pcre-8.45.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/pcre/blobs/sha256:a42b79956773d18c4ac337868cfc15fadadf5e779d65c12ffd6f8fd379b5514c
Already downloaded: /Users/cea/Library/Caches/Homebrew/downloads/456b31dd91116840800d9cc2f35c6f2ebde8cfe8513e6d08dd6974f3309dc4f9--pcre--8.45.mojave.bottle.tar.gz
==> Fetching groonga
==> Downloading https://packages.groonga.org/source/groonga-normalizer-mysql/groonga-normalizer-mysql-1.2.1.tar.gz
Already downloaded: /Users/cea/Library/Caches/Homebrew/downloads/8bc84be3a691a3cf950cf2576dac8b64884fd7f4f91026475399827c9d96fd6b--groonga-normalizer-mysql-1.2.1.tar.gz
==> Downloading https://packages.groonga.org/source/groonga/groonga-13.0.0.tar.gz
Already downloaded: /Users/cea/Library/Caches/Homebrew/downloads/31a0c28bde3252bed7d10bba33dec5ef45e6a5379da383e40c28f668bb03878d--groonga-13.0.0.tar.gz
==> Fetching pcre2
==> Downloading https://github.com/PCRE2Project/pcre2/releases/download/pcre2-10.42/pcre2-10.42.tar.bz2
Already downloaded: /Users/cea/Library/Caches/Homebrew/downloads/7f4d74ac3e447b9fed53bce4202af3921ffc5ae1469894e7e1b10bda2145a15b--pcre2-10.42.tar.bz2
==> Fetching xz
==> Downloading https://downloads.sourceforge.net/project/lzmautils/xz-5.4.1.tar.gz
Already downloaded: /Users/cea/Library/Caches/Homebrew/downloads/ca0c062e8ecb14160415874ad277c80d73d9a9d00aa926ff11a32e877f6651fe--xz-5.4.1.tar.gz
==> Fetching zstd
==> Downloading https://github.com/facebook/zstd/archive/v1.5.4.tar.gz
Already downloaded: /Users/cea/Library/Caches/Homebrew/downloads/a7632ef95a5b612da27d37abb163299230d9f9394c53a8385de8c57a366c2ebe--zstd-1.5.4.tar.gz
==> Fetching mariadb
==> Downloading https://downloads.mariadb.com/MariaDB/mariadb-10.10.3/source/mariadb-10.10.3.tar.gz
Already downloaded: /Users/cea/Library/Caches/Homebrew/downloads/182c68feeae25618d12662bea09676695697b3545a81c63d59850e574372c312--mariadb-10.10.3.tar.gz
==> Installing dependencies for mariadb: cmake, fmt, mecab, mecab-ipadic, msgpack, ca-certificates, openssl#1.1, pcre, groonga, pcre2, xz and zstd
Error: Cannot link cmake
Another version is already linked: /usr/local/Cellar/cmake/3.24.2
i tried to upgrade cmake in case of but i wasn't a better try:
==> Upgrading 1 outdated package:
cmake 3.24.2 -> 3.25.2
==> Fetching cmake
==> Downloading https://github.com/Kitware/CMake/releases/download/v3.25.2/cmake-3.25.2.tar.gz
Already downloaded: /Users/cea/Library/Caches/Homebrew/downloads/b19b531ca705f5d1736fb10a83767e06ac2e8801a3f9f34ac8b4bd6e1697dda2--cmake-3.25.2.tar.gz
==> Upgrading cmake
3.24.2 -> 3.25.2
Error: Permission denied # apply2files - /usr/local/share/emacs/site-lisp/cmake
if someone has any solutions for me thanks!

On Mac Big Sur, how do i build unison with a specific version of ocaml?

I'm using Mac OS Big Sur (11.5.6). I have installed the following version of ocaml (via opam) ...
$ ocaml --version
The OCaml toplevel, version 4.08.1
However, when I build unison via homebrew, it seems to use a different version of ocaml ...
$ brew install unison
Warning: Treating unison as a formula. For the cask, use homebrew/cask/unison
==> Downloading https://ghcr.io/v2/homebrew/core/unison/manifests/2.51.4
Already downloaded: /Users/davea/Library/Caches/Homebrew/downloads/731ecb00a5b8f50a21a06345e0a9c56f0fe26cf0c3675d3f3b76eab5f093875e--unison-2.51.4.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/unison/blobs/sha256:4e0e92dbed77b5a10ccaf2ed146707fc92d1332d30
Already downloaded: /Users/davea/Library/Caches/Homebrew/downloads/f7cbad912db8a26e9d39b963c8d8ef33f5772b3091540064fc1f22b294f6170c--unison--2.51.4.big_sur.bottle.tar.gz
==> Pouring unison--2.51.4.big_sur.bottle.tar.gz
🍺 /usr/local/Cellar/unison/2.51.4: 9 files, 3.5MB
and then
$ unison -version
unison version 2.51.4 (ocaml 4.12.0)
How do I build unison tied to the version of ocaml I have installed? (I have to use this specific ocaml version because I'm trying to sync with an Ubuntu unison instance taht is built with the same ocaml version, 4.08.1).
Edit: In response to the answer given, here is the output ...
(venv) localhost:~ davea$ opam switch create 4.08.1
[ERROR] There already is an installed switch named 4.08.1
(venv) localhost:~ davea$ eval $(opam env)
(venv) localhost:~ davea$ opam install unison
The following actions will be performed:
∗ install conf-pkg-config 2 [required by conf-gtk2]
∗ install ocamlfind 1.9.1 [required by lablgtk]
∗ install dune 2.9.1 [required by unison]
∗ install conf-gtk2 1 [required by lablgtk]
∗ install lablgtk 2.18.11 [required by unison]
∗ install unison 2.51.4
===== ∗ 6 =====
Do you want to continue? [Y/n] n
(venv) localhost:~ davea$ opam install unison
The following actions will be performed:
∗ install conf-pkg-config 2 [required by conf-gtk2]
∗ install ocamlfind 1.9.1 [required by lablgtk]
∗ install dune 2.9.1 [required by unison]
∗ install conf-gtk2 1 [required by lablgtk]
∗ install lablgtk 2.18.11 [required by unison]
∗ install unison 2.51.4
===== ∗ 6 =====
Do you want to continue? [Y/n] Y
The following system packages will first need to be installed:
gtk+
<><> Handling external dependencies <><><><><><><><><><><><><><><><><><><><> 🐫
Let opam run your package manager to install the required system packages?
(answer 'n' for other options) [Y/n] Y
+ /usr/local/bin/brew "install" "gtk+"
- ==> Downloading https://ghcr.io/v2/homebrew/core/python/3.9/manifests/3.9.7
- ==> Downloading https://ghcr.io/v2/homebrew/core/python/3.9/blobs/sha256:41d99040ba87c30b59dda54f1718aa05c584c0c3e6dc366bd63589e6dfd6cb25
- ==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:41d99040ba87c30b59dda54f1718aa05c584c0c3e6dc366bd63589e6dfd6cb25?se=2021-09-23T14%3A10%3A00Z&sig=vZ7IzeI51lHvcMcOfcXrq%2Fzi0Js0c76XJICAyrQ0INw%3D&sp=r&spr=https&sr=b&sv=2019-12-12
- ==> Downloading https://ghcr.io/v2/homebrew/core/glib/manifests/2.70.0
- ==> Downloading https://ghcr.io/v2/homebrew/core/glib/blobs/sha256:7d4a5cf540591f124ee50ee8c344ba823d170946350e71559a52a0e21eb38a81
- ==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:7d4a5cf540591f124ee50ee8c344ba823d170946350e71559a52a0e21eb38a81?se=2021-09-23T14%3A10%3A00Z&sig=8JuRVXDfoNygxKUGvnc6hutAHuvGbGFKPlNhEOIASG4%3D&sp=r&spr=https&sr=b&sv=2019-12-12
- ==> Downloading https://ghcr.io/v2/homebrew/core/atk/manifests/2.36.0
- ==> Downloading https://ghcr.io/v2/homebrew/core/atk/blobs/sha256:8321e0ee7364e1de1a3667c50954b4b4f629cba7c2d8077114c4a5bc38a24655
- ==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:8321e0ee7364e1de1a3667c50954b4b4f629cba7c2d8077114c4a5bc38a24655?se=2021-09-23T14%3A10%3A00Z&sig=WUNRZqXdIeKx9YmYYVd%2BuEOExE9j%2BzUyUe8hMHIDSPk%3D&sp=r&spr=https&sr=b&sv=2019-12-12
- ==> Downloading https://ghcr.io/v2/homebrew/core/gdk-pixbuf/manifests/2.42.6
- ==> Downloading https://ghcr.io/v2/homebrew/core/gdk-pixbuf/blobs/sha256:f4cf795b20c84fb5074ceeeeaf7b1d22e164b7af13adb6d0b95e3655d867fd41
- ==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:f4cf795b20c84fb5074ceeeeaf7b1d22e164b7af13adb6d0b95e3655d867fd41?se=2021-09-23T14%3A10%3A00Z&sig=hhcQ%2F5EFeBLzLqcpb0Afv7iJjiDcx4mbPCxvhuNLNeA%3D&sp=r&spr=https&sr=b&sv=2019-12-12
- ==> Downloading https://ghcr.io/v2/homebrew/core/hicolor-icon-theme/manifests/0.17
- ==> Downloading https://ghcr.io/v2/homebrew/core/hicolor-icon-theme/blobs/sha256:f4cd50751f22d1aae6156ce3e552dbe0afb21ce1aaa5a7cc7ce284c867a20865
- ==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:f4cd50751f22d1aae6156ce3e552dbe0afb21ce1aaa5a7cc7ce284c867a20865?se=2021-09-23T14%3A10%3A00Z&sig=PmkhRHr6vorYEgdj%2BUE74Hvt3nBfe7k%2BJobwblE9sJM%3D&sp=r&spr=https&sr=b&sv=2019-12-12
- ==> Downloading https://ghcr.io/v2/homebrew/core/xorgproto/manifests/2021.5
- ==> Downloading https://ghcr.io/v2/homebrew/core/xorgproto/blobs/sha256:97763c1171ba9dc0772b5fa107c8dad9b19c3e73963d84887fb2d8c02a1ab59e
- ==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:97763c1171ba9dc0772b5fa107c8dad9b19c3e73963d84887fb2d8c02a1ab59e?se=2021-09-23T14%3A10%3A00Z&sig=7pySREcGBElThEN5fWsusgIzGVDF2ddWqXl6QkrRhsM%3D&sp=r&spr=https&sr=b&sv=2019-12-12
- ==> Downloading https://ghcr.io/v2/homebrew/core/libx11/manifests/1.7.2
- ==> Downloading https://ghcr.io/v2/homebrew/core/libx11/blobs/sha256:7aee5576a2669a20c9c0421a5afdce633130aeebe3f610c646f15dd5fe299f34
- ==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:7aee5576a2669a20c9c0421a5afdce633130aeebe3f610c646f15dd5fe299f34?se=2021-09-23T14%3A10%3A00Z&sig=YOaeIU59FwbPrGVgu1pC%2FGUEPd2htp9Sir%2FqmYtLHJQ%3D&sp=r&spr=https&sr=b&sv=2019-12-12
- ==> Downloading https://ghcr.io/v2/homebrew/core/gobject-introspection/manifests/1.70.0
- ==> Downloading https://ghcr.io/v2/homebrew/core/gobject-introspection/blobs/sha256:96e7c0007fa6a2b1d602d28761df216109f55d7e6722da1f5e04086960be6a09
- ==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:96e7c0007fa6a2b1d602d28761df216109f55d7e6722da1f5e04086960be6a09?se=2021-09-23T14%3A10%3A00Z&sig=G3QlEMTc6GjLDFUXIdRpdMz8C%2BkQQMgoJUBrk9y0P90%3D&sp=r&spr=https&sr=b&sv=2019-12-12
- ==> Downloading https://ghcr.io/v2/homebrew/core/graphite2/manifests/1.3.14
- ==> Downloading https://ghcr.io/v2/homebrew/core/graphite2/blobs/sha256:ddc468a1eec491aed5d5b05b22d0cffa38b6059d87eab747301011507fcf6366
- ==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:ddc468a1eec491aed5d5b05b22d0cffa38b6059d87eab747301011507fcf6366?se=2021-09-23T14%3A10%3A00Z&sig=W9QP7bDobJcVcDKhN8XlMqX2%2BtBqCbBex81R1BggOAE%3D&sp=r&spr=https&sr=b&sv=2019-12-12
- ==> Downloading https://ghcr.io/v2/homebrew/core/harfbuzz/manifests/3.0.0
- ==> Downloading https://ghcr.io/v2/homebrew/core/harfbuzz/blobs/sha256:578a6aa32fa88436cafddd4bce9cf3c4779f748e3c8f664b486b712550f4ece2
- ==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:578a6aa32fa88436cafddd4bce9cf3c4779f748e3c8f664b486b712550f4ece2?se=2021-09-23T14%3A10%3A00Z&sig=BfXMcJbbmkUw1EFHsFviwbspkUI67cPQ80UjcTdiEQU%3D&sp=r&spr=https&sr=b&sv=2019-12-12
- ==> Downloading https://ghcr.io/v2/homebrew/core/pango/manifests/1.48.10
- ==> Downloading https://ghcr.io/v2/homebrew/core/pango/blobs/sha256:ea25146681018c99e13404ee299f006679397c082a388c486c7a685ec8d8eca9
- ==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:ea25146681018c99e13404ee299f006679397c082a388c486c7a685ec8d8eca9?se=2021-09-23T14%3A10%3A00Z&sig=nwfoY3lC2NalHPwxW6qJDzick%2FAGd1lzxYYkZ6ak1yU%3D&sp=r&spr=https&sr=b&sv=2019-12-12
- ==> Downloading https://ghcr.io/v2/homebrew/core/gtkx/manifests/2.24.33
- ==> Downloading https://ghcr.io/v2/homebrew/core/gtkx/blobs/sha256:8ead5b96878ad431ac3e23dc3bd20bb4eac509c63c231e594986a0fa331e157f
- ==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:8ead5b96878ad431ac3e23dc3bd20bb4eac509c63c231e594986a0fa331e157f?se=2021-09-23T14%3A10%3A00Z&sig=ujScKou3PGTD2gN0pGkJgOD%2FI7bmPtFVs3caMP8uPYE%3D&sp=r&spr=https&sr=b&sv=2019-12-12
- ==> Installing dependencies for gtk+: python#3.9, glib, atk, gdk-pixbuf, hicolor-icon-theme, xorgproto, libx11, gobject-introspection, graphite2, harfbuzz and pango
- ==> Installing gtk+ dependency: python#3.9
- ==> Pouring python#3.9--3.9.7.big_sur.bottle.tar.gz
- Error: The `brew link` step did not complete successfully
- The formula built, but is not symlinked into /usr/local
- Could not symlink bin/2to3
- Target /usr/local/bin/2to3
- already exists. You may want to remove it:
- rm '/usr/local/bin/2to3'
-
- To force the link and overwrite all conflicting files:
- brew link --overwrite python#3.9
-
- To list all files that would be deleted:
- brew link --overwrite --dry-run python#3.9
-
- Possible conflicting files are:
- /usr/local/bin/2to3 -> /Library/Frameworks/Python.framework/Versions/3.9/bin/2to3
- /usr/local/bin/2to3-3.9 -> /Library/Frameworks/Python.framework/Versions/3.9/bin/2to3-3.9
- /usr/local/bin/idle3 -> /Library/Frameworks/Python.framework/Versions/3.9/bin/idle3
- /usr/local/bin/idle3.9 -> /Library/Frameworks/Python.framework/Versions/3.9/bin/idle3.9
- /usr/local/bin/pydoc3 -> /Library/Frameworks/Python.framework/Versions/3.9/bin/pydoc3
- /usr/local/bin/pydoc3.9 -> /Library/Frameworks/Python.framework/Versions/3.9/bin/pydoc3.9
- /usr/local/bin/python3 -> /Library/Frameworks/Python.framework/Versions/3.9/bin/python3
- /usr/local/bin/python3-config -> /Library/Frameworks/Python.framework/Versions/3.9/bin/python3-config
- /usr/local/bin/python3.9 -> /Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9
- /usr/local/bin/python3.9-config -> /Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9-config
- ==> /usr/local/Cellar/python#3.9/3.9.7/bin/python3 -m ensurepip
- ==> /usr/local/Cellar/python#3.9/3.9.7/bin/python3 -m pip install -v --no-deps -
- ==> Summary
- 🍺 /usr/local/Cellar/python#3.9/3.9.7: 3,080 files, 54.7MB
- ==> Installing gtk+ dependency: glib
- ==> Pouring glib--2.70.0.big_sur.bottle.tar.gz
- 🍺 /usr/local/Cellar/glib/2.70.0: 444 files, 21MB
- ==> Installing gtk+ dependency: atk
- ==> Pouring atk--2.36.0.big_sur.bottle.tar.gz
...
- ==> Installing imagemagick dependency: libidn
- ==> Pouring libidn--1.38.big_sur.bottle.tar.gz
- 🍺 /usr/local/Cellar/libidn/1.38: 73 files, 1MB
- ==> Installing imagemagick dependency: ghostscript
- ==> Pouring ghostscript--9.54.0.big_sur.bottle.tar.gz
- 🍺 /usr/local/Cellar/ghostscript/9.54.0: 683 files, 149.0MB
- ==> Installing imagemagick dependency: liblqr
- ==> Pouring liblqr--0.4.2_1.big_sur.bottle.1.tar.gz
- 🍺 /usr/local/Cellar/liblqr/0.4.2_1: 25 files, 174.9KB
- ==> Installing imagemagick dependency: libomp
- ==> Pouring libomp--12.0.1.big_sur.bottle.tar.gz
- 🍺 /usr/local/Cellar/libomp/12.0.1: 9 files, 1.5MB
- ==> Installing imagemagick dependency: imath
- ==> Pouring imath--3.1.3.big_sur.bottle.tar.gz
- Error: The `brew link` step did not complete successfully
- The formula built, but is not symlinked into /usr/local
- Could not symlink lib/libImath.dylib
- Target /usr/local/lib/libImath.dylib
- is a symlink belonging to ilmbase. You can unlink it:
- brew unlink ilmbase
-
- To force the link and overwrite all conflicting files:
- brew link --overwrite imath
-
- To list all files that would be deleted:
- brew link --overwrite --dry-run imath
-
- Possible conflicting files are:
- /usr/local/lib/libImath.dylib -> /usr/local/Cellar/ilmbase/2.5.5/lib/libImath.dylib
- ==> Summary
- 🍺 /usr/local/Cellar/imath/3.1.3: 49 files, 920.2KB
- ==> Installing imagemagick dependency: openexr
- ==> Pouring openexr--3.1.1.big_sur.bottle.tar.gz
- Error: The `brew link` step did not complete successfully
- The formula built, but is not symlinked into /usr/local
- Could not symlink include/OpenEXR/Iex.h
- Target /usr/local/include/OpenEXR/Iex.h
- is a symlink belonging to ilmbase. You can unlink it:
- brew unlink ilmbase
-
- To force the link and overwrite all conflicting files:
- brew link --overwrite openexr
-
- To list all files that would be deleted:
- brew link --overwrite --dry-run openexr
-
- Possible conflicting files are:
- /usr/local/include/OpenEXR/Iex.h -> /usr/local/Cellar/ilmbase/2.5.5/include/OpenEXR/Iex.h
- /usr/local/include/OpenEXR/IexBaseExc.h -> /usr/local/Cellar/ilmbase/2.5.5/include/OpenEXR/IexBaseExc.h
- /usr/local/include/OpenEXR/IexErrnoExc.h -> /usr/local/Cellar/ilmbase/2.5.5/include/OpenEXR/IexErrnoExc.h
- /usr/local/include/OpenEXR/IexExport.h -> /usr/local/Cellar/ilmbase/2.5.5/include/OpenEXR/IexExport.h
- /usr/local/include/OpenEXR/IexForward.h -> /usr/local/Cellar/ilmbase/2.5.5/include/OpenEXR/IexForward.h
- /usr/local/include/OpenEXR/IexMacros.h -> /usr/local/Cellar/ilmbase/2.5.5/include/OpenEXR/IexMacros.h
- /usr/local/include/OpenEXR/IexMathExc.h -> /usr/local/Cellar/ilmbase/2.5.5/include/OpenEXR/IexMathExc.h
- /usr/local/include/OpenEXR/IexMathFloatExc.h -> /usr/local/Cellar/ilmbase/2.5.5/include/OpenEXR/IexMathFloatExc.h
- /usr/local/include/OpenEXR/IexMathIeeeExc.h -> /usr/local/Cellar/ilmbase/2.5.5/include/OpenEXR/IexMathIeeeExc.h
- /usr/local/include/OpenEXR/IexNamespace.h -> /usr/local/Cellar/ilmbase/2.5.5/include/OpenEXR/IexNamespace.h
- /usr/local/include/OpenEXR/IexThrowErrnoExc.h -> /usr/local/Cellar/ilmbase/2.5.5/include/OpenEXR/IexThrowErrnoExc.h
- /usr/local/include/OpenEXR/IlmThread.h -> /usr/local/Cellar/ilmbase/2.5.5/include/OpenEXR/IlmThread.h
- /usr/local/include/OpenEXR/IlmThreadExport.h -> /usr/local/Cellar/ilmbase/2.5.5/include/OpenEXR/IlmThreadExport.h
- /usr/local/include/OpenEXR/IlmThreadForward.h -> /usr/local/Cellar/ilmbase/2.5.5/include/OpenEXR/IlmThreadForward.h
- /usr/local/include/OpenEXR/IlmThreadMutex.h -> /usr/local/Cellar/ilmbase/2.5.5/include/OpenEXR/IlmThreadMutex.h
- /usr/local/include/OpenEXR/IlmThreadNamespace.h -> /usr/local/Cellar/ilmbase/2.5.5/include/OpenEXR/IlmThreadNamespace.h
- /usr/local/include/OpenEXR/IlmThreadPool.h -> /usr/local/Cellar/ilmbase/2.5.5/include/OpenEXR/IlmThreadPool.h
- /usr/local/include/OpenEXR/IlmThreadSemaphore.h -> /usr/local/Cellar/ilmbase/2.5.5/include/OpenEXR/IlmThreadSemaphore.h
- /usr/local/lib/libIex.dylib -> /usr/local/Cellar/ilmbase/2.5.5/lib/libIex.dylib
- /usr/local/lib/libIlmThread.dylib -> /usr/local/Cellar/ilmbase/2.5.5/lib/libIlmThread.dylib
- ==> Summary
- 🍺 /usr/local/Cellar/openexr/3.1.1: 194 files, 5.9MB
- ==> Installing imagemagick
- ==> Pouring imagemagick--7.1.0-8.big_sur.bottle.tar.gz
- 🍺 /usr/local/Cellar/imagemagick/7.1.0-8: 799 files, 30.3MB
- Removing: /usr/local/Cellar/imagemagick/7.0.9-21... (1,480 files, 23.6MB)
- ==> Upgrading libspatialite
- 5.0.1 -> 5.0.1_1
- ==> Installing dependencies for libspatialite: libxml2 and proj#7
- ==> Installing libspatialite dependency: libxml2
- ==> Pouring libxml2--2.9.12.big_sur.bottle.tar.gz
- 🍺 /usr/local/Cellar/libxml2/2.9.12: 280 files, 10.7MB
- ==> Installing libspatialite dependency: proj#7
- ==> Pouring proj#7--7.2.1.big_sur.bottle.tar.gz
- 🍺 /usr/local/Cellar/proj#7/7.2.1: 59 files, 19.2MB
- ==> Installing libspatialite
- ==> Pouring libspatialite--5.0.1_1.big_sur.bottle.tar.gz
- Error: Cannot install macvim because conflicting formulae are installed.
- vim: because vim and macvim both install vi* binaries
-
- Please `brew unlink vim` before continuing.
-
- Unlinking removes a formula's symlinks from /usr/local. You can
- link the formula again after the install finishes. You can --force this
- install, but the build may fail or cause obscure side effects in the
- resulting software.
- 🍺 /usr/local/Cellar/libspatialite/5.0.1_1: 40 files, 24.6MB
- Removing: /usr/local/Cellar/libspatialite/5.0.1... (40 files, 24.6MB)
- ==> Upgrading macvim
- 8.1-151_1 -> 8.2-171_1
[ERROR] System package install failed with exit code 1 at command:
brew install gtk+
You can now try to get them installed manually.
When you are done: check again and continue? [Y/n] Y
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><> 🐫
⬇ retrieved ocamlfind.1.9.1 (http://download.camlcity.org/download/findlib-1.9.1.tar.gz)
⬇ retrieved lablgtk.2.18.11 (https://github.com/garrigue/lablgtk/archive/2.18.11.tar.gz)
∗ installed conf-pkg-config.2
∗ installed conf-gtk2.1
⬇ retrieved unison.2.51.4 (https://github.com/bcpierce00/unison/archive/refs/tags/v2.51.4.tar.gz)
⬇ retrieved dune.2.9.1 (https://github.com/ocaml/dune/releases/download/2.9.1/dune-2.9.1.tbz)
∗ installed ocamlfind.1.9.1
∗ installed dune.2.9.1
∗ installed lablgtk.2.18.11
[ERROR] The compilation of unison.2.51.4 failed at "dune build -p unison -j 7".
#=== ERROR while compiling unison.2.51.4 ======================================#
# context 2.1.0 | macos/x86_64 | ocaml-base-compiler.4.08.1 | git+https://github.com/ocaml/opam-repository.git
# path ~/.opam/4.08.1/.opam-switch/build/unison.2.51.4
# command ~/.opam/opam-init/hooks/sandbox.sh build dune build -p unison -j 7
# exit-code 1
# env-file ~/.opam/log/unison-92589-1f358e.env
# output-file ~/.opam/log/unison-92589-1f358e.out
### output ###
# cc src/fsmonitor/linux/inotify_stubs.o (exit 1)
# (cd _build/default/src/fsmonitor/linux && /usr/bin/cc -O2 -fno-strict-aliasing -fwrapv -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O2 -fno-strict-aliasing -fwrapv -g -I /Users/davea/.opam/4.08.1/lib/ocaml -I ../../lwt -o inotify_stubs.o -c inotify_stubs.c)
# inotify_stubs.c:22:10: fatal error: 'sys/inotify.h' file not found
# #include <sys/inotify.h>
# ^~~~~~~~~~~~~~~
# 1 error generated.
<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><> 🐫
┌─ The following actions failed
│ λ build unison 2.51.4
└─
┌─ The following changes have been performed
│ ∗ install conf-gtk2 1
│ ∗ install conf-pkg-config 2
│ ∗ install dune 2.9.1
│ ∗ install lablgtk 2.18.11
│ ∗ install ocamlfind 1.9.1
└─
# Run eval $(opam env) to update the current shell environment
The former state can be restored with:
/usr/local/bin/opam switch import
"/Users/davea/.opam/4.08.1/.opam-switch/backup/state-20210923140118.export"
(venv) localhost:~ davea$ unison -version
unison version 2.51.4 (ocaml 4.12.0)
The switch that you have installed has no impact on what is installed by homebrew, which is using its own ocaml installation. You might be able to force a specific ocaml version with homebrew. Or install unison from opam.
opam switch create 4.08.1
eval $(opam env)
opam install unison

Homebrew permission denied on file I own with rwx permissions

I have a 2016 MacBook Pro (w/ touchbar) and Mac OS Sierra (10.12.3). I freshly installed Homebrew (v1.1.9) and ran brew install gcc49. It appears to install all dependencies fine, but once it gets to gcc, I get
Error: Permission denied - /Users/<me>/Library/Caches/Homebrew/gcc#4.9-4.9.3.tar.bz2
Original permissions after downloaded by Homebrew:
-rw-r--r-- 1 <me> <company_domain> 86M Jun 26 2015 /Users/<me>/Library/Caches/Homebrew/gcc#4.9-4.9.3.tar.bz2
I tried setting to 755 and group to admin, but no luck:
-rwxr-xr-x 1 <me> admin 86M Jun 26 2015 /Users/<me>/Library/Caches/Homebrew/gcc#4.9-4.9.3.tar.bz2
> brew install gcc49
Updating Homebrew...
==> Using the sandbox
==> Downloading https://ftpmirror.gnu.org/gcc/gcc-4.9.3/gcc-4.9.3.tar.bz2
Already downloaded: /Users/<me>/Library/Caches/Homebrew/gcc#4.9-4.9.3.tar.bz2
Error: Permission denied - /Users/<me>/Library/Caches/Homebrew/gcc#4.9-4.9.3.tar.bz2
I then chowned the directory to be group admin instead of the company domain. It already had 775 permissions. Still no luck.
I have seen several posts where people had to chown directories to make homebrew happy, but I don't see permission issues on the given file or directory.
brew doctor reports some unexpected dylibs, header, and .pc files. I'm not sure if those came from my company's Mac OS image.
Am I overlooking something obvious? I appreciate any help.
Here is the entire initial install output:
> brew install gcc49
==> Installing dependencies for gcc#4.9: gmp#4, mpfr#2, libmpc#0.8, isl#0.12, cloog
==> Installing gcc#4.9 dependency: gmp#4
==> Downloading https://homebrew.bintray.com/bottles/gmp#4-4.3.2.sierra.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring gmp#4-4.3.2.sierra.bottle.1.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.
This is an alternate version of another formula.
For compilers to find this software you may need to set:
LDFLAGS: -L/usr/local/opt/gmp#4/lib
CPPFLAGS: -I/usr/local/opt/gmp#4/include
==> Summary
🍺 /usr/local/Cellar/gmp#4/4.3.2: 20 files, 2.4M
==> Installing gcc#4.9 dependency: mpfr#2
==> Downloading https://homebrew.bintray.com/bottles/mpfr#2-2.4.2.sierra.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring mpfr#2-2.4.2.sierra.bottle.1.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.
This is an alternate version of another formula.
For compilers to find this software you may need to set:
LDFLAGS: -L/usr/local/opt/mpfr#2/lib
CPPFLAGS: -I/usr/local/opt/mpfr#2/include
==> Summary
🍺 /usr/local/Cellar/mpfr#2/2.4.2: 25 files, 2.7M
==> Installing gcc#4.9 dependency: libmpc#0.8
==> Downloading https://homebrew.bintray.com/bottles/libmpc#0.8-0.8.1.sierra.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring libmpc#0.8-0.8.1.sierra.bottle.1.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.
This is an alternate version of another formula.
For compilers to find this software you may need to set:
LDFLAGS: -L/usr/local/opt/libmpc#0.8/lib
CPPFLAGS: -I/usr/local/opt/libmpc#0.8/include
==> Summary
🍺 /usr/local/Cellar/libmpc#0.8/0.8.1: 12 files, 273.8K
==> Installing gcc#4.9 dependency: isl#0.12
==> Downloading https://homebrew.bintray.com/bottles/isl#0.12-0.12.2.sierra.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring isl#0.12-0.12.2.sierra.bottle.1.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.
This is an alternate version of another formula.
For compilers to find this software you may need to set:
LDFLAGS: -L/usr/local/opt/isl#0.12/lib
CPPFLAGS: -I/usr/local/opt/isl#0.12/include
==> Summary
🍺 /usr/local/Cellar/isl#0.12/0.12.2: 57 files, 2.9M
==> Installing gcc#4.9 dependency: cloog
==> Downloading https://homebrew.bintray.com/bottles/cloog-0.18.4_1.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring cloog-0.18.4_1.sierra.bottle.tar.gz
🍺 /usr/local/Cellar/cloog/0.18.4_1: 35 files, 442.4K
==> Installing gcc#4.9
==> Using the sandbox
==> Downloading https://ftpmirror.gnu.org/gcc/gcc-4.9.3/gcc-4.9.3.tar.bz2
==> Downloading from http://mirror.easthsia.com/gnu/gcc/gcc-4.9.3/gcc-4.9.3.tar.bz2
######################################################################## 100.0%
Error: Permission denied - /Users/<me>/Library/Caches/Homebrew/gcc#4.9-4.9.3.tar.bz2
Try to sudo chown -R <me>:admin /usr/local/* and try again. You may need to restore some user or group ownership recursively (which this command will do).

Homebrew: dpkg is not configured to install software

After running brew install dpkg, dpkg is successfully installed; but, like homebrew says below, cannot install or uninstall any software.
==> Caveats
This installation of dpkg is not configured to install software, so
commands such as `dpkg -i`, `dpkg --configure` will fail.
Full installation output:
MacBook-Air:~ james$ brew install dpkg
==> Installing dependencies for dpkg: gnu-tar, xz
==> Installing dpkg dependency: gnu-tar
==> Downloading https://homebrew.bintray.com/bottles/gnu-tar-1.28.yosemite.bottle.2.tar.gz
######################################################################## 100.0%
==> Pouring gnu-tar-1.28.yosemite.bottle.2.tar.gz
==> Caveats
gnu-tar has been installed as "gtar".
If you really need to use it as "tar", you can add a "gnubin" directory
to your PATH from your bashrc like:
PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH"
==> Summary
🍺 /usr/local/Cellar/gnu-tar/1.28: 13 files, 1.6M
==> Installing dpkg dependency: xz
==> Downloading https://homebrew.bintray.com/bottles/xz-5.2.1.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring xz-5.2.1.yosemite.bottle.tar.gz
🍺 /usr/local/Cellar/xz/5.2.1: 59 files, 1.7M
==> Installing dpkg
==> Downloading https://homebrew.bintray.com/bottles/dpkg-1.17.25_1.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring dpkg-1.17.25_1.yosemite.bottle.tar.gz
==> Caveats
This installation of dpkg is not configured to install software, so
commands such as `dpkg -i`, `dpkg --configure` will fail.
==> Summary
🍺 /usr/local/Cellar/dpkg/1.17.25_1: 246 files, 5.3M

Resources