brew install ffmpeg 報錯:Error: No such file or directory @ dir_chdir Bottle installation failed:

報錯信息:

brew install ffmpeg?

==> Installing dependencies for ffmpeg: nasm, pkg-config, gettext, texi2html, lame, libogg, libvorbis, libvpx, opus, sdl2, snappy, theora, x264, x265, xvid and xz

==> Installing ffmpeg dependency: nasm

==> Downloading https://homebrew.bintray.com/bottles/na

Already downloaded: /Users/lidi/Library/Caches/Homebrew/downloads/aba39483dea4772cb4795d4f4b38ae52716d33772c969079ebcac1c11c80aebd--nasm-2.13.03.high_sierra.bottle.tar.gz

Error: No such file or directory @ dir_chdir - /usr/local/Cellar

Warning: Bottle installation failed: building from source.

==> Downloading https://www.nasm.us/pub/nasm/releasebui

Already downloaded: /Users/lidi/Library/Caches/Homebrew/downloads/28816079f19ed75d3c9db08761e9637cc93ff22bbd56b4d6d87697b60d4ca4a1--nasm-2.13.03.tar.xz

Error: An exception occurred within a child process:

? Errno::EPERM: Operation not permitted @ dir_s_mkdir - /usr/local/Cellar

由于登陸用戶不是HomeBrew的安裝用戶、所以報以上錯誤這里解決如下:

1.在當(dāng)前用戶重新安裝HomeBrew?

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

2.運(yùn)行brew install ffmpeg提示成功

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容