I am trying to install OpenCV for python but what I need to do first is install some prerequisites using homebrew and it has all gone fine until I type in the command:
brew install eigen tbb
And thus the error displays:
Error: An unexpected error occurred during the `brew link` step
The formula built, but is not symlinked into /usr/local
I have looked at other solutions on SO but I am hesitant to try it in fear that I might lose documents/change directories/etc. If anyone has had a similar problem or can help me, PLEASE HELP!!
Related
Im trying to install libomp on my mac using the following command:
brew install libomp
But everytime I get an error like this:
Warning: No available formula with the name "libomp".
==> Searching for similarly named formulae and casks...
Error: No formulae or casks found for libomp.
I already uninstall and install Homebrew twice, uninstall/install and updated the lightgbm package, and nothing seems to work.
I was able to install other packages so is not a problem with my computer or anything like that.
Does anyone know how can I fix that?
Run the following to ensure your Homebrew is up to date.
brew update
Then install libomp like this
brew install libomp
and updated the lightgbm package
I'm not sure if this means the lightgbm Python package, the lightgbm CLI installed via Homebrew, or something else...but either way, the presence of those things should not impact whether or not Homebrew is able to install libomp on your system.
I've been trying to install dlib library for a while now and have tried almost all the solutions available on the web.
While installing this file I'm facing an error:
ERROR: dlib-19.7.0-cp36-cp36m-win_amd64.whl is not a supported wheel on this platform.
Help me. Any suggestions?
You need to install Cmake first as it is required for Dlib, get installation files from here or use pip install cmake.
Then install Anaconda 3.
Then run, pip install dlib to install dlib making sure that you're using python2, instead of python3.
I’m running Ubuntu 20.04.1 on Hyper-V in Windows 10, and I need to install LibIconv (in order to install ClamAV through a Homebrew package).
When I run brew install clamav or brew install libiconv I get this:
libiconv: is not needed on Linux, where iconv.h is provided by glibc
Error: An unsatisfied requirement failed this build.
So far, I’ve made sure I have all the other dependencies for ClamAV listed here. However, I’m having trouble installing LibIconv. I also made an attempt using these instructions, but I don’t think I was successful because I still get that error above. I'm pretty new to the command line, so I appreciate any help.
I tried installing gfortran using homebrew before I needed to install pythonbrew. I need pythonbrew to install and use the misopy package on my iMac. I keep getting this error when I want to install gfortran:
> brew install gfortran
Error: You must `brew link gmp' before gfortran can be installed
I tried reinstalling gmp using homebrew in mac and this did not help. Can someone help me in this regard?
Ok, I solved the problem. I did not completely remove the swig/gfortran/libpng files and their dependecies. If this information helps others installing pythonbrew and python 2.7 in mac.
I followed this guys instruction to start with in first place:
https://gist.github.com/audy/4012573
Do not mind his swearing I can understand where that comes from! :-)
KR
I am trying since two days to install OpenCV 2.3.0 or 2.3.1 on my mac 10.6.8 snow leopard. I followed the following commands
$ cd /Users/ateendra/Desktop/OpenCV-2.3.0/
$ mkdir build
$ cd build/
$ cmake -D CMAKE_OSX_ARCHITECTURES=i386 -D CMAKE_C/CXX_FLAGS=-m32 ..
$ ccmake .
$ make -j8
$ sudo make install
now i get the following errors
/Users/ateendra/Desktop/OpenCV-2.3.0/modules/highgui/src/grfmt_exr.hpp:83: error: reference to ‘PixelType’ is ambiguous
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers /QuickdrawTypes.h:193: error: candidates are: typedef SInt8 PixelType
/opt/local/include/OpenEXR/ImfPixelType.h:49: error: enum Imf::PixelType
/Users/ateendra/Desktop/OpenCV-2.3.0/modules/highgui/src/grfmt_exr.hpp:83: error: ‘PixelType’ does not name a type
make[2]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/src/loadsave.o] Error 1
make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
Well, this is a common problem to compile opencv under mac os, though it is usually solvable by modifying opencv sources a bit. (I faced this problem twice, and I always changed sources a bit to make everything compile).
However, the last time I was installing opencv, I've just used brew:
brew install opencv
Didn't have any problems with it.
I've managed to install OpenCV 2.3.1 on OSX 10.6.8, but I've done it using MacPorts, (which I recommend as it deals with dependencies and building for you):
Make sure you've got Apple Developer Tools installed (or at least XCode with the command line tools)
Install MacPorts (if you haven't done so already)
Install OpenCV via MacPorts:
sudo port install opencv
For more details see Build via MacPorts on the wiki.
I also have to mention that I did run into an error, but that was because of a previous existing dylib in the wrong place.