Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing OpenCV with Brew never finishes

So I'm trying to install opencv using Homebrew but it isn't working. I used brew tap homebrew/science and then brew install opencv What happens is:

==> Installing opencv from homebrew/homebrew-science
==> Installing dependencies for homebrew/science/opencv: gcc, eigen, jpeg, libpng, libtiff, ilmbase, openexr, homebrew/python/numpy
==> Installing homebrew/science/opencv dependency: gcc
==> Downloading http://ftpmirror.gnu.org/gcc/gcc-5.1.0/gcc-5.1.0.tar.bz2
Already downloaded: /Library/Caches/Homebrew/gcc-5.1.0.tar.bz2
==> Patching
patching file gcc/jit/Make-lang.in
==> ../configure --build=x86_64-apple-darwin13.4.0 --prefix=/usr/local/Cellar/gcc/5.1.0 --libdir=/usr/local/Cellar/gcc/5.1.0/lib/gcc/5 --enable-langua
==> make bootstrap

And then it just doesn't stop, I've run it for close to an hour. The task on the top of the terminal window (you know, where it says bash generally) keeps rapidly changing, often to things like "ruby" but nothing gets outputted after this point.

Any ideas? Thanks.

like image 405
smntx Avatar asked Jun 23 '15 09:06

smntx


1 Answers

Note that it's actually compiling GCC at that point, which is expected to take a long time. Homebrew does provide pre-built binary bottles by default, so it's curious those aren't being used. Is your environment set to build everything from source? You could try brew install gcc --force-bottle

like image 172
ianml Avatar answered Oct 01 '22 02:10

ianml