FFMpeg安装报"GNU assembler not found, install/update gas-preprocessor"

1.下载最新的gas-preprocessor.pl,地址是https://github.com/libav/gas-preprocessor
2.在终端中进入到下载下来的gas-preprocessor-master

cd 将下载下来的文件夹直接拖入到终端中

示例:

cd /Users/mrhuang/Downloads/gas-preprocessor-master 

3.将文件夹内的gas-preprocessor.pl文件拷贝到/usr/sbin/目录下

sudo cp 将下载下来的文件中的gas-preprocessor.pl拖到这里并在后面加上 /usr/local/bin

示例:

sudo cp /Users/mrhuang/Downloads/gas-preprocessor-master/gas-preprocessor.pl /usr/local/bin

4.修改/usr/sbin/gas-preprocessor.pl的文件权限为可执行权限

chmod +x gas-preprocessor.pl

5.复制一份gas-preprocessor.pl文件,将其放在ffmpeg文件包同一目录下


Xnip2022-09-12_22-20-37.jpg

6.切换到ffmpeg文件夹下再运行ffmpeg-build.sh,问题解决
终端示例:


Xnip2022-09-12_22-06-52.jpg

你可能感兴趣的:(FFMpeg安装报"GNU assembler not found, install/update gas-preprocessor")