Я пытаюсь установить opencv с помощью команды 'brew install opencv'
но я иду через ошибку ниже
$ brew install opencv
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.sh: line 4: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.sh: line 4: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.sh: line 4: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory
==> Installing dependencies for opencv: xz, bzip2, libffi, python, sphinx-doc, cmake, eigen, yasm, aom, libpng, freetype, m4, berkeley-db, libbsd, expat, perl, autoconf, automake, gperf, libtool, json-c, python@2, util-linux, fontconfig, frei0r, gmp, libtasn1, libunistring, nettle, p11-kit, bison, help2man, flex, doxygen, libevent, unbound, coreutils, gnu-sed, libatomic_ops, bdw-gc, guile, libxml2, autogen, gnutls, lame, fribidi, ninja, meson, pcre, glib, pixman, linuxbrew/xorg/util-macros, linuxbrew/xorg/xtrans, linuxbrew/xorg/xcb-proto, linuxbrew/xorg/libpthread-stubs, linuxbrew/xorg/xorgproto, linuxbrew/xorg/libxau, linuxbrew/xorg/libxdmcp, mpfr, gawk, check, libxslt, linuxbrew/xorg/libxcb, linuxbrew/xorg/libx11, linuxbrew/xorg/libxext, linuxbrew/xorg/libxrender, cairo, gobject-introspection, graphite2, icu4c, harfbuzz, libass, ant, libbluray, libsoxr, libogg, libvorbis, libvpx, opencore-amr, jpeg, libtiff, little-cms2, openjpeg, opus, rtmpdump, flac, libsndfile, libsamplerate, ladspa-sdk, libmpc, isl@0.18, gcc, open-mpi, fftw, vamp-plugin-sdk, openjdk, rubberband, linuxbrew/xorg/libice, linuxbrew/xorg/libxfixes, linuxbrew/xorg/libxcursor, linuxbrew/xorg/libxscrnsaver, linuxbrew/xorg/libxxf86vm, linuxbrew/xorg/libxi, linuxbrew/xorg/libxinerama, linuxbrew/xorg/libxrandr, linuxbrew/xorg/xinput, speexdsp, libcap, pulseaudio, sdl2, snappy, speex, autoconf-archive, giflib, webp, leptonica, tesseract, theora, x264, x265, xvid, linuxbrew/xorg/libxv, ffmpeg, openblas, numpy, ilmbase, openexr, swig and tbb
==> Installing opencv dependency: xz
==> Downloading https://downloads.sourceforge.net/project/lzmautils/xz-5.2.4.tar
Already downloaded: /home/pi/.cache/Homebrew/downloads/60057e32fccba99ff98a423a0d5bbb3299325346de36997e4e59bb96a3c2da2e--xz-5.2.4.tar.gz
==> ./configure --disable-silent-rules --prefix=/home/linuxbrew/.linuxbrew/Cella
==> make check
Last 15 lines from /home/pi/.cache/Homebrew/Logs/xz/02.make:
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
unexpected output from xzgrep
FAIL: test_scripts.sh
=========================================
1 of 9 tests failed
Please report to lasse.collin@tukaani.org
=========================================
Makefile:592: recipe for target 'check-TESTS' failed
make[2]: *** [check-TESTS] Error 1
make[2]: Leaving directory '/tmp/xz-20190317-13623-1b6v6oo/xz-5.2.4/tests'
Makefile:715: recipe for target 'check-am' failed
make[1]: *** [check-am] Error 2
make[1]: Leaving directory '/tmp/xz-20190317-13623-1b6v6oo/xz-5.2.4/tests'
Makefile:613: recipe for target 'check-recursive' failed
make: *** [check-recursive] Error 1
Я пробовал brew update
и brew doctor
, но ничего не получалось.
Могу ли я, пожалуйста, решить эту проблему.
Кстати, я пытаюсь установить это на Raspberry Pi 3B +, я знаю, это не имеет значения.
Заранее спасибо