在mac下安装ffmpeg时需要使用命令行调起文本编辑器,个人习惯使用ubuntu下的gedit,但是在ubuntu下gedit默认是安装的,但是mac下并没有,所以需要安装下。
1.打开终端,通过Homebrew查找下gedit
brew search gedit
2.找到gedit,安装:
brew install gedit
此时有错误提示
3、意外
我以为是因为没有python环境,就想着安习惯的python3.9,但是也是一个报错,按照下面的提示:
使用如下命令安装上了python3.8:
brew install --build-from-source python@3.8
但是用这个办法依然装不上gedit
4、解决Error,在终端执行命令安装the Apple Command Line Tools
xcode-select --install
此时系统会弹出app storp的小插件进行安装过程。
然后再使用最初的命令安装gedit即可:
brew install gedit