我在mac系统上安装最新版本的opencv时,遇到报错

brew update
brew edit opencv ( DBUILD_opencv_java=ON
brew install --build-from-source opencv

这里安装过程中报错:
Error: inreplace failed
build_shared/modules/core/version_string.inc:
expected replacement of “/usr/local/Homebrew/Library/Homebrew/shims/mac/super/” with “”