Homebrew issues since Mavericks update - homebrew

I upgraded to Mavericks the week before last and started experiencing problems with homebrew ever since. 'brew doctor' reports no issues but I'm currently trying to install Apache Thrift and it's failing. Any suggestions?
brew install thrift
==> Installing thrift dependency: boost
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/boost-1.54.0.mavericks.bottle.1
######################################################################## 100.0%
==> Pouring boost-1.54.0.mavericks.bottle.1.tar.gz
==> Caveats
The Boost bottle's module will not import into a Homebrew-installed Python.
If you use the Boost Python module then please:
brew install boost --build-from-source
==> Summary
🍺 /usr/local/Cellar/boost/1.54.0: 9865 files, 588M
==> Installing thrift
==> Downloading http://www.apache.org/dyn/closer.cgi?path=thrift/0.9.0/thrift-0.9.0.tar.gz
==> Best Mirror http://ftp.heanet.ie/mirrors/www.apache.org/dist/thrift/0.9.0/thrift-0.9.0.tar.gz
######################################################################## 100.0%
==> Patching
patching file lib/cpp/src/thrift/transport/TSocket.h
==> ./configure --prefix=/usr/local/Cellar/thrift/0.9.0 --libdir=/usr/local/Cellar/thrift/0.9.0/lib
==> make
make[4]: *** [ThreadManager.lo] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

You may want to follow this Jira ticket. https://issues.apache.org/jira/browse/THRIFT-2229

Looks like there is a pull request for homebrew to fix this issue. A temporary work around could be to change the compiler you're using, but I'd recommend just waiting for the patch to be rolled out.

I had a similar issue. You should try
brew update
And then continue with your install

Related

Install Ruby 2.0.0 on an old Mac OS 10.7.5 Lion

I have tried to upgrade the Ruby version on an old Mac I got, but without any success.
I know its possible because of this guy here asking how to upgrade from 2.2
Here is what I entered in the Terminal:
rvm install 2.0.0
Result:
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.7/x86_64/ruby-2.0.0-p648.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Installing requirements for osx.
Updating system................
Installing required packages: coreutils.....There were package installation errors, make sure to read the log.
Try `brew tap --repair` and make sure `brew doctor` looks reasonable.
Check Homebrew requirements https://github.com/Homebrew/homebrew/wiki/Installation
...
Error running 'requirements_osx_brew_libs_install coreutils',
please read /Users/DAN26/.rvm/log/1503823469_ruby-2.0.0-p648/package_install_coreutils.log
Requirements installation failed with status: 1.
Seems like "coreutils" is missing so I manage to install it by my self, however without success:
brew install coreutils
==> Downloading https://ftp.gnu.org/gnu/coreutils/coreutils-8.27.tar.xz
Already downloaded: /Users/DAN26/Library/Caches/Homebrew/coreutils-8.27.tar.xz
==> Downloading https://raw.githubusercontent.com/macports/macports-ports/61f1b0d/sysutils/coreutils/f
Already downloaded: /Users/DAN26/Library/Caches/Homebrew/coreutils--patch-df9bedeae2ca6d335147b5b4c3f19db2f36ff8c84973fd15fe1697de70538247.diff
==> Downloading https://raw.githubusercontent.com/macports/macports-ports/61f1b0d/sysutils/coreutils/f
Already downloaded: /Users/DAN26/Library/Caches/Homebrew/coreutils--patch-f7e2b21f04085f589c3d10c2f6ac5a4185e2b907e8bdb5bb6e4f93888d7ab546.diff
==> Patching
==> Applying patch-m4_gnulib-comp.m4-add-renameat.diff
patching file m4/gnulib-comp.m4
==> Applying patch-lib_gnulib.mk-add-renameat.c.diff
patching file lib/gnulib.mk
==> Downloading https://raw.githubusercontent.com/macports/macports-ports/61f1b0d/sysutils/coreutils/f
Already downloaded: /Users/DAN26/Library/Caches/Homebrew/coreutils--renameat_c-8.27.c
==> Downloading https://raw.githubusercontent.com/macports/macports-ports/61f1b0d/sysutils/coreutils/f
Already downloaded: /Users/DAN26/Library/Caches/Homebrew/coreutils--renameat_m4-8.27.m4
==> autoreconf -fiv
==> ./configure --prefix=/usr/local/Cellar/coreutils/8.27 --program-prefix=g --without-gmp
==> make install
Last 15 lines from /Users/DAN26/Library/Logs/Homebrew/coreutils/03.make:
src/ginstall -c src/truncate '/usr/local/Cellar/coreutils/8.27/bin/./gtruncate'
src/ginstall -c src/tsort '/usr/local/Cellar/coreutils/8.27/bin/./gtsort'
src/ginstall -c src/tty '/usr/local/Cellar/coreutils/8.27/bin/./gtty'
src/ginstall -c src/uname '/usr/local/Cellar/coreutils/8.27/bin/./guname'
src/ginstall -c src/unexpand '/usr/local/Cellar/coreutils/8.27/bin/./gunexpand'
src/ginstall -c src/uniq '/usr/local/Cellar/coreutils/8.27/bin/./guniq'
src/ginstall -c src/unlink '/usr/local/Cellar/coreutils/8.27/bin/./gunlink'
src/ginstall -c src/vdir '/usr/local/Cellar/coreutils/8.27/bin/./gvdir'
src/ginstall -c src/wc '/usr/local/Cellar/coreutils/8.27/bin/./gwc'
src/ginstall -c src/whoami '/usr/local/Cellar/coreutils/8.27/bin/./gwhoami'
src/ginstall -c src/yes '/usr/local/Cellar/coreutils/8.27/bin/./gyes'
src/ginstall -c src/ginstall '/usr/local/Cellar/coreutils/8.27/bin'
make[2]: *** [install-am] Error 2
make[1]: *** [install-recursive] Error 1
make: *** [install] Error 2
Do not report this issue to Homebrew/brew or Homebrew/core!
Error: You are using macOS 10.7.
We (and Apple) do not provide support for this old version.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.
Also I have tried to follow the steps for installing coreutils from source by this comment
wget https://ftpmirror.gnu.org/coreutils/coreutils-8.25.tar.xz
tar xJf coreutils-8.25.tar.xz
cd coreutils-8.25/
./configure --prefix=/usr/local
make
sudo make install
But after that retry to install Ruby 2.0.0 fail again for the same reason.
Can someone please help me to solve this problem?
Homebrew doesn’t support macOS 10.7. You can use Tigerbrew, a fork of Homebrew "that adds support for PowerPC Macs, and Macs running Tiger or Leopard" (quoting its homepage).

OpenCv Install Trouble

I'm try to install openCV on my mac, but after running brew install opencv I get this error:
Devins-MacBook-Air:~ devinwieker$ brew install opencv
==> Installing opencv from homebrew/homebrew-science
==> Installing dependencies for opencv: gcc, readline, sqlite, gdbm, python, eigen, ilmbase,
==> Installing opencv dependency: gcc
==> Downloading http://ftpmirror.gnu.org/gcc/gcc-4.9.2/gcc-4.9.2.tar.bz2
Already downloaded: /Library/Caches/Homebrew/gcc-4.9.2.tar.bz2
==> ../configure --build=x86_64-apple-darwin13.4.0 --prefix=/usr/local/Cellar/gcc/4.9.2_1 --libdir=
==> make bootstrap
make[3]: *** [cc1plus] Error 1
rm gcc.pod
make[2]: *** [all-stage1-gcc] Error 2
make[1]: *** [stage1-bubble] Error 2
make: *** [bootstrap] Error 2
Anyone know what's going on?
I had the same problem I tried using "brew doctor" which you should definitely try, and if that was not helpful try updating Xcode and its developer tools.

brew install fontforge error yosemite

I'm on OS X Yosemite and am trying to install fontforge via brew. When I try to install it I get the following error. I'd like to use fontforge to try fontcustom and grunt-webfont. What does this error mean? Do I need to install something else first?
$ brew install fontforge --with-python
==> Downloading https://github.com/fontforge/fontforge/archive/2.0.20140101.tar.gz
Already downloaded: /Library/Caches/Homebrew/fontforge-2.0.20140101.tar.gz
==> ./autogen.sh
==> ./configure --prefix=/usr/local/Cellar/fontforge/2.0.20140101 --without-cairo
==> make
1 error generated.
make[2]: *** [libgdraw_la-gmatrixedit.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
I had exactly the same problem and reinstalling 10.10 XCode Command Line Tools solved it!
:-)
Good luck -

Error with "rvm requirements"

When I try to run "rvm requirements" it fails, giving me following error:
Checking requirements for osx.
Installing requirements for osx.
Updating system....
Installing required packages: libksba.....
Error running 'requirements_osx_brew_libs_install libksba',
showing last 15 lines of /Users/Hany/.rvm/log/1398501597/package_install_libksba.log
+ case "$1" in
+ [[ -t 1 ]]
+ return 1
+ printf %b 'There were package installation errors, make sure to read the log.
Try `brew tap --repair` and make sure `brew doctor` looks reasonable.
Check Homebrew requirements https://github.com/mxcl/homebrew/wiki/Installation\n'
There were package installation errors, make sure to read the log.
Try `brew tap --repair` and make sure `brew doctor` looks reasonable.
Check Homebrew requirements https://github.com/mxcl/homebrew/wiki/Installation
+ case "$_system_version" in
+ return 1
Requirements installation failed with status: 1.
I thought I would use homebrew to install individually. So I ran "brew install libksba"
==> Downloading ftp://ftp.gnupg.org/gcrypt/libksba/libksba-1.3.0.tar.bz2
Already downloaded: /Library/Caches/Homebrew/libksba-1.3.0.tar.bz2
==> ./configure --prefix=/usr/local/Cellar/libksba/1.3.0
==> make install
make[2]: *** [reader.lo] Error 1
1 error generated.
make[2]: *** [asn1-parse.lo] Error 1
make[1]: *** [install] Error 2
make: *** [install-recursive] Error 1
READ THIS: https://github.com/Homebrew/homebrew/wiki/troubleshooting
But this failed, saying it was already installed. Very confused here. Any help?

Homebrew install gdb with brewed python

I had brewed version of python 2.7.6 installed on OS X mavericks and now am trying to install gdb with --with-brewed-python option.
But I am getting the following error message. Why it is checking python in /usr/local instead of /usr/local/bin? I think this is why it is failing. Anyone has any idea?
brew install gdb --with-brewed-python
==> Downloading http://ftpmirror.gnu.org/gdb/gdb-7.6.2.tar.bz2
==> ./configure --prefix=/usr/local/Cellar/gdb/7.6.2 --with-system-readline --with-python=/usr/local
==> make
checking whether to use python... /usr/local
checking for python2.7... no
configure: error: no usable python found at /usr/local
make[1]: *** [configure-gdb] Error 1
make: *** [all] Error 2
READ THIS: https://github.com/Homebrew/homebrew/wiki/troubleshooting
If reporting this issue please do so at (not Homebrew/homebrew):
https://github.com/homebrew/homebrew-dupes/issues
try: brew -v install --with-brewed-python gdb
https://github.com/Homebrew/homebrew-dupes/issues/277

Resources