brew doctor get warning on opencv

3

Sono nuovo su mac os x. Ho letto che homebrew è un buon gestore di pacchetti e l'ho provato.

Ho anche letto che per installare opencv 2.4 devo seguire questi passaggi:

  • installa cmake tramite homebrew
  • scarica opencv
  • cmake, sudo make

e l'ho fatto. ora ho completamente il wrapper python nel mio mac os x. ma ora se scrivo brew doctor ho questi avvisi:

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

perché ?? Cosa c'è che non va? cosa fare?

    
posta nkint 23.01.2013 - 00:49
fonte

1 risposta

2

Il comando doctor di Homebrew è molto utile. Poiché hai installato OpenCV dal sorgente nelle stesse directory utilizzate da Homebrew, si lamenta dei file imprevisti.

Per risolvere il problema, segui attentamente le istruzioni. Homebrew ti dice esattamente cosa devi fare:

  • Rendi la directory /usr/local/lib/pkgconfig scrivibile.
  • Elimina i file .dylib ( /usr/local/lib/libopencv_*.dylib ) e .pc ( /usr/local/lib/pkgconfig/opencv.pc ).
  • Esegui brew link git . (Non direttamente correlato a OpenCV.)
risposta data 04.02.2013 - 03:10
fonte

Leggi altre domande sui tag