Brew links jpeg questions

I am trying to install opencv

on Mac OSX Lion.

brew install opencv

I am getting the following error (and several others like it)

Error: The linking step did not complete successfully
The formula built, but is not symlinked into /usr/local
You can try again using `brew link jpeg'

      

When i do

brew link jpeg
Linking /usr/local/Cellar/jpeg/8d... ln: wrjpgcom: File exists

      

I do not understand what it means? What should I do? Thanks to

+3


source to share


2 answers


Check the following files in the folder /usr/local

:

bin/cjpeg
bin/djpeg
bin/jpegtran
bin/rdjpgcom
bin/wrjpgcom
include/jconfig.h
include/jerror.h
include/jmorecfg.h
include/jpeglib.h
lib/libjpeg.8.dylib
lib/libjpeg.a
share/man/man1/cjpeg.1
share/man/man1/djpeg.1
share/man/man1/jpegtran.1
share/man/man1/rdjpgcom.1
share/man/man1/wrjpgcom.1

      



To brew link jpeg

succeed:

  • Delete (and back up) any of the above files
  • run again brew link jpeg

    .
+5


source


Find the wrjpgcom file outside the footer and delete it.



The problem is that Homebrew is trying to symbolize this file in / usr / local, but the destination for the symbolic link already exists as another file.

+3


source







All Articles