解决centos7.4编译ffmpeg提示nasm/yasm not found or too old. Use --disable-x86asm for a crippled build报错

报错信息如下:

nasm/yasm not found or too old. Use --disable-x86asm for a crippled build.  
  
If you think configure made a mistake, make sure you are using the latest  
version from Git.  If the latest version fails, report the problem to the  
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.  
Include the log file "ffbuild/config.log" produced by configure as this will help  
solve the problem. 

百度搜索相关解决方法,均是安装 yasm ,但是在  centos7.4 ,即使安装了yasm 也会继续提示 nasm/yasm not found or too old. Use --disable-x86asm for a crippled build.  

这里的报错很明显还有一个nsam 需要安装,安装上去即可

以下是相关安装过程:

1、安装nasm:(centos 7.4 安装了yasm还是无法安装的情况下可以安装这个)

wget https://www.nasm.us/pub/nasm/releasebuilds/2.10.07/nasm-2.10.07.tar.gz
tar -zxvf nasm-2.10.07.tar.gz
cd nasm-2.10.07
./configure
make && make install

或者使用yum安装nasm:

yum install nasm

查看版本

nasm --version

2、安装yasm:

wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz
tar -zxvf yasm-1.3.0.tar.gz
cd yasm-1.3.0
./configure
make && make install

或者使用yum安装yasm:

yum install yasm

查看版本

yasm --version

3、安装ffmpeg:

wget https://ffmpeg.org/releases/ffmpeg-6.1.2.tar.gz
tar -zxvf ffmpeg-6.1.2.tar.gz
mkdir /usr/local/ffmpeg
cd ffmpeg-6.1.2
./configure --prefix=/usr/local/ffmpeg
make && make install

打开配置文件,在最后PATH添加环境变量,:wq 保存退出:

vi /etc/profile
export PATH=$PATH:/usr/local/ffmpeg/bin

加载新环境变量

source /etc/profile

查看版本

ffmpeg -version

4、简单使用ffmpeg :

ffprobe -i 双声道.wav -v quiet -print_format json -show_format -show_streams

一些相关链接:

linux下FFmpeg编译和解决nasm/yasm not found or too old错误_yasm、nasm not found-CSDN博客

 NASM编译器之下载安装使用_nasm下载-CSDN博客

Linux平台FFmpeg工具安装流程_ffmpeg安装教程linux-CSDN博客

linux下FFmpeg编译和解决nasm/yasm not found or too old错误_yasm、nasm not found-CSDN博客

Linux快速安装FFmpeg、ffprobe、ffplay以及在Linux上的使用_linux ffmpeg-CSDN博客

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值