Homebrew: dpkg is not configured to install software - macos

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

Related

brew cannot find ANY packages

I just got my Mac Pro from the shop after hard drive failure. I am trying to install my environment again.
I installed homebrew from the current link on the homebrew website:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
but I cannot install ANY package. Brew cannot find ANYTHING.
~ brew install rbenv
Error: No available formula with the name "rbenv"
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
==> Searching taps on GitHub...
Error: No formulae found in taps.
What is wrong?
I had the same issue and I was able to solve it by running the doctor command and follow the steps which need to be updated there.
My homebrew-core was not at the master branch.
brew doctor
git -C $(brew --repo homebrew/core) checkout master
And that's it. After that, I was able to run the rbenv install command.
brew search result
$ brew search rbenv
==> Formulae
rbenv rbenv-bundle-exec rbenv-chefdk rbenv-default-gems rbenv-vars
rbenv-aliases rbenv-bundler rbenv-communal-gems rbenv-gemset rbenv-whatis
rbenv-binstubs rbenv-bundler-ruby-version rbenv-ctags rbenv-use
install rbenv
$ brew install rbenv
==> Downloading https://github.com/rbenv/ruby-build/archive/v20200819.tar.gz
==> Downloading from https://codeload.github.com/rbenv/ruby-build/tar.gz/v20200819
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/rbenv-1.1.2.mojave.bottle.tar.gz
######################################################################## 100.0%
==> Installing dependencies for rbenv: ruby-build
==> Installing rbenv dependency: ruby-build
==> ./install.sh
==> Caveats
ruby-build installs a non-Homebrew OpenSSL for each Ruby version installed and these are never upgraded.
To link Rubies to Homebrew's OpenSSL 1.1 (which is upgraded) add the following
to your /Users/rchen/.bash_profile:
export RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl#1.1)"
Note: this may interfere with building old versions of Ruby (e.g <2.4) that use
OpenSSL <1.1.
==> Summary
🍺 /usr/local/Cellar/ruby-build/20200819: 509 files, 253.6KB, built in 5 seconds
==> Installing rbenv
==> Pouring rbenv-1.1.2.mojave.bottle.tar.gz
🍺 /usr/local/Cellar/rbenv/1.1.2: 36 files, 65KB
==> Caveats
==> ruby-build
ruby-build installs a non-Homebrew OpenSSL for each Ruby version installed and these are never upgraded.
To link Rubies to Homebrew's OpenSSL 1.1 (which is upgraded) add the following
to your /Users/rchen/.bash_profile:
export RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl#1.1)"
Note: this may interfere with building old versions of Ruby (e.g <2.4) that use
OpenSSL <1.1.
version test
$ rbenv --version
rbenv 1.1.2

Ruby Version Failure 2.7.0: Error: Permission denied # apply2files - /usr/local/share/Library/

As the title states, when I try install Ruby version 2.7.0 with rvm install ruby-2.7.0, I get the following output:
Ruby Version Failure 2.7.0: Error: Permission denied # apply2files - /usr/local/share/Library/Caches/Yarn/v6/npm-micromatch-3.1.10-70859bc95c9840952f359a068a3fc49f9ecfac23-integrity/node_modules/micromatch/lib/.DS_Stor
The full output is below:
==> Upgrading 3 outdated packages:
libtool 2.4.6_1 -> 2.4.6_2
libyaml 0.2.2 -> 0.2.5
pkg-config 0.29.2_2 -> 0.29.2_3
==> Upgrading libtool 2.4.6_1 -> 2.4.6_2
==> Downloading https://homebrew.bintray.com/bottles/libtool-2.4.6_2.catalina.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/af317b35d0a394b7ef55fba4950735b0392d9f31bececebf9c412261c23a01fc?response-content-disposition=attachment%3Bfilename%3D%22libtool-2.4.6_2.catalina.b
######################################################################## 100.0%
==> Pouring libtool-2.4.6_2.catalina.bottle.tar.gz
==> Caveats
In order to prevent conflicts with Apple's own libtool we have prepended a "g"
so, you have instead: glibtool and glibtoolize.
==> Summary
🍺 /usr/local/Cellar/libtool/2.4.6_2: 71 files, 3.7MB
==> `brew cleanup` has not been run in 30 days, running now...
Removing: /usr/local/Cellar/libtool/2.4.6_1... (71 files, 3.7MB)
Error: Permission denied # apply2files - /usr/local/share/Library/Caches/Yarn/v6/npm-micromatch-3.1.10-70859bc95c9840952f359a068a3fc49f9ecfac23-integrity/node_modules/micromatch/lib/.DS_Store
This is unrelated to rvm itself. To install required dependencies for your ruby, rvm used your installed homebrew. However, during cleanup of your installed bottles, homebrew encounters an error, possible because you one installed things with sudo previously.
Try brew doctor and follow its advice to fix your homebrew setup.

How to overcome the following opencv issue installation?

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

I cannot get solidity installed with homebrew on macOS Sierra. Installation hangs at boost

I have tried to install solidity on my Mac with
brew update
brew upgrade
brew tap ethereum/ethereum
brew install solidity
brew linkapps solidity
as suggested at solidity#binary-packages. But when I try to brew install solidity the installation process gets stuck right here when installing boost:
bash-3.2$ brew install solidity
==> Installing solidity from ethereum/ethereum
==> Installing dependencies for ethereum/ethereum/solidity: boost, cryptopp, gmp
==> Installing ethereum/ethereum/solidity dependency: boost
==> Using the sandbox
==> Downloading https://dl.bintray.com/boostorg/release/1.64.0/source/boost_1_64_0.tar.bz2
Already downloaded: /Users/Me/Library/Caches/Homebrew/boost-1.64.0.tar.bz2
==> Downloading https://github.com/boostorg/mpi/commit/f5bdcc1.patch
Already downloaded: /Users/Me/Library/Caches/Homebrew/boost--patch-c7af75a83fef90fdb9858bc988d64ca569ae8d940396b9bc60a57d63fca2587b.patch
==> Downloading https://github.com/boostorg/serialization/commit/1d86261.diff
Already downloaded: /Users/Me/Library/Caches/Homebrew/boost--patch-155f603a00975a1702808be072c1420964feac8323de39c111a9d3a363a4ed9a.diff
==> Patching
==> Applying f5bdcc1.patch
patching file boost/mpi/detail/mpi_datatype_primitive.hpp
patching file boost/mpi/detail/packed_iprimitive.hpp
patching file boost/mpi/detail/packed_oprimitive.hpp
Hunk #2 succeeded at 97 (offset -5 lines).
==> Applying 1d86261.diff
patching file boost/serialization/array.hpp
==> ./bootstrap.sh --prefix=/usr/local/Cellar/boost/1.64.0_1 --libdir=/usr/local/Cellar/boost/1.64.0_1/lib --without-icu --without-libraries=python,mp
==> ./b2 headers
==> ./b2 --prefix=/usr/local/Cellar/boost/1.64.0_1 --libdir=/usr/local/Cellar/boost/1.64.0_1/lib -d2 -j4 --layout=tagged --user-config=user-config.jam
I did find this brew hanging thread and tried to fix everything brew doctor gave me and I have the latest command line tools installed. I could not get it to work yet. Any ideas?
JK! Wow. I guess one of the manny things I tried must have worked. Now it still takes a very very long time but eventually it came to:
🍺 /usr/local/Cellar/boost/1.64.0_1: 12,630 files, 404.4MB, built in 17 minutes 38 seconds
17minutes. Wow.

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).

Resources