brew doctor obtener una advertencia en opencv

3

soy nuevo en mac os x. Leí que Homebrew es un buen administrador de paquetes y lo he probado.

También he leído que para instalar opencv 2.4 tengo que seguir estos pasos:

  • instalar cmake a través de homebrew
  • descargar opencv
  • cmake, sudo make

y lo he hecho. ahora tengo totalmente envoltorio de python en mi mac os x. pero ahora si escribo brew doctor tengo esas advertencias:

brew doctor
Warning: /usr/local/lib/pkgconfig isn't writable.
This can happen if you "sudo make install" software that isn't managed
by Homebrew.

If a brew tries to write a .pc file to this directory, the install will
fail during the link step.

You should probably 'chown' /usr/local/lib/pkgconfig
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected dylibs:
    /usr/local/lib/libopencv_calib3d.2.4.2.dylib
    /usr/local/lib/libopencv_contrib.2.4.2.dylib
    /usr/local/lib/libopencv_core.2.4.2.dylib
    /usr/local/lib/libopencv_features2d.2.4.2.dylib
    /usr/local/lib/libopencv_flann.2.4.2.dylib
    /usr/local/lib/libopencv_gpu.2.4.2.dylib
    /usr/local/lib/libopencv_highgui.2.4.2.dylib
    /usr/local/lib/libopencv_imgproc.2.4.2.dylib
    /usr/local/lib/libopencv_legacy.2.4.2.dylib
    /usr/local/lib/libopencv_ml.2.4.2.dylib
    /usr/local/lib/libopencv_nonfree.2.4.2.dylib
    /usr/local/lib/libopencv_objdetect.2.4.2.dylib
    /usr/local/lib/libopencv_photo.2.4.2.dylib
    /usr/local/lib/libopencv_stitching.2.4.2.dylib
    /usr/local/lib/libopencv_ts.2.4.2.dylib
    /usr/local/lib/libopencv_video.2.4.2.dylib
    /usr/local/lib/libopencv_videostab.2.4.2.dylib
Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected .pc files:
    /usr/local/lib

/pkgconfig/opencv.pc
Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run 'brew link' on these:

    git

¿Por qué? que pasa ¿Qué hacer?

    
pregunta nkint 23.01.2013 - 00:49

1 respuesta

2

El comando doctor de Homebrew es muy útil. Desde que instaló OpenCV desde la fuente en los mismos directorios que utiliza Homebrew, se queja de los archivos inesperados.

Para resolver el problema, solo siga las instrucciones cuidadosamente. Homebrew te dice exactamente lo que debes hacer:

  • Haga que el directorio /usr/local/lib/pkgconfig sea de escritura.
  • Eliminar los archivos .dylib ( /usr/local/lib/libopencv_*.dylib ) y .pc ofensivos ( /usr/local/lib/pkgconfig/opencv.pc ).
  • Ejecutar brew link git . (No relacionado directamente con OpenCV).
respondido por el jmk 04.02.2013 - 03:10

Lea otras preguntas en las etiquetas