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.
Related
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 -
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?
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
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
I'm trying to install opencv by brew ,
but showed me the following errors.
I knew i should tap "brew tap homebrew/homebrew-science"
but it didn't work.
is there any idea , or should i show what information by what command to fix the problem quickly.
thanks~
[local] $ brew update
Error: Permission denied - /var/folders/wt/ffjhmkgx4292wtm22b966mdc0000gn/T/.gitignore20130904-819-fdlv65-0 or /usr/local/Library/Formula/.gitignore
[local] $ sudo brew update
Already up-to-date.
[local] $ sudo brew install opencv
Warning: It appears you have MacPorts or Fink installed.
Software installed with other package managers causes known problems for
Homebrew. If a formula fails to build, uninstall MacPorts/Fink and try again.
Error: No available formula for opencv
[local] $ brew tap homebrew/homebrew-science
Error: Already tapped!
[local] $ sudo brew tap homebrew/homebrew-science
Error: Already tapped!
[local] $ sudo brew install opencv
Warning: It appears you have MacPorts or Fink installed.
Software installed with other package managers causes known problems for
Homebrew. If a formula fails to build, uninstall MacPorts/Fink and try again.
Error: No available formula for opencv
[local] $ brew install opencv
Warning: It appears you have MacPorts or Fink installed.
Software installed with other package managers causes known problems for
Homebrew. If a formula fails to build, uninstall MacPorts/Fink and try again.
Error: No available formula for opencv
if I tried to make manually by the tutorial http://tilomitra.com/opencv-on-mac-osx/
I will see the error after make -j8
_ff_xvid_rate_control_uninit in libavcodec.a(libxvid_rc.o)
"_xvid_plugin_lumimasking", referenced from:
_xvid_encode_init in libavcodec.a(libxvid.o)
"_xvid_plugin_single", referenced from:
_xvid_encode_init in libavcodec.a(libxvid.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/libopencv_highgui.2.4.6.dylib] Error 1
make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
make: *** [all] Error 2
I have recently encountered a similar problem building OpenCV using brew. The central issue was that OpenCV would not build properly when building against ffmpeg (it will try to do this if ffmpeg is also installed.)
As suggested here, the problem can be resolved by using the following brew command to build OpenCV, which forces an alternative version of the build environment (one of the top troubleshooting suggestions for brew):
brew install opencv --env=std
Hope this works for you too!