當我給下面的命令安裝OpenCV的但不是在OS-X小牛鏈接錯誤信息
brew install homebrew/science/opencv
或
brew install opencv
我得到以下信息。
Warning: opencv-2.4.7.1 already installed, it's just not linked
任何想法如何解決這個問題。 根據鏈接,我在.bash_profile
中已經有了以下內容。
Installing openCV 2.4.2 on Mac OS X 10.9 (Mavericks)
export PYTHONPATH=/usr/local/Cellar/opencv/2.4.6.1/lib/python2.7/site-packages:$PYTHONPATH
Linking Python with Open CV on Mac
export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH
當我使用下面的命令做一個鏈接,我碰到下面的錯誤。
$brew link opencv
Linking /usr/local/Cellar/opencv/2.4.7.1... Warning: Could not link opencv. Unlinking...
Error: Could not symlink file: /usr/local/Cellar/opencv/2.4.7.1/lib/pkgconfig/opencv.pc
/usr/local/lib/pkgconfig is not writable. You should change its permissions.
任何想法如何解決這個問題?
謝謝。
我跟着這個鏈接來解決該問題。 http://stackoverflow.com/questions/16432071/how-to-fix-homebrew-permissions –