我正在尝试使用命令“ brew install opencv”安装opencv 但我正在经历以下错误
import * as vscode from 'vscode';
import properties from './properties.json';
import methods from './methods.json';
import events from './events.json';
const tabsCompletionItemProvider = {
provideCompletionItems(document: vscode.TextDocument, position: vscode.Position) {
// get all text until the `position` and check if it reads `chrome.tabs.`
// and iff so then complete if `log`, `warn`, and `error`
let linePrefix = document.lineAt(position).text.substr(0, position.character);
if (!linePrefix.endsWith('chrome.tabs.')) {
return undefined;
}
const propertiesCompletionItems = properties.map(prop => new vscode.CompletionItem(prop.name, vscode.CompletionItemKind.Property));
const methodsCompletionItems = methods.map(func => {
const completionItem = new vscode.CompletionItem(func.name, vscode.CompletionItemKind.Method);
completionItem.documentation = new vscode.MarkdownString(func.description);
return completionItem;
});
const eventsCompletionItems = events.map(e => new vscode.CompletionItem(e.name, vscode.CompletionItemKind.Event));
return [
...propertiesCompletionItems,
...methodsCompletionItems,
...eventsCompletionItems,
];
}
};
export default tabsCompletionItemProvider;
我确实尝试过$ 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
,但没有任何效果。
我能解决这个问题吗?
顺便说一句,我正在尝试将其安装在树莓派3B +上,我知道这没有关系。
在此先感谢