Table of contents

ffmpeg configure error nasm/yasm not found or too old

Linux Jul 19, 2020 Viewed 5.7K Comments 0

Issue

On Linux/Unix, compile ffmpeg from source code. Run the following command.

$ git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg
$ cd ffmpeg
$ ./configure --prefix=/opt/ffmpeg
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.

Solution

It needs to install nasm or yasm.

Mac OS

brew install nasm

Ubuntu/Debian

Install nasm.

sudo apt install nasm

Install yasm.

sudo apt install yasm

RHEL/CentOS

Install nasm.

sudo yum install nasm

In the webpage https://pkgs.org/search/?q=yasm, download and install yasm. For example, on CentOS BaseOS x86_64.

$ wget http://mirror.centos.org/centos/8/PowerTools/x86_64/os/Packages/yasm-1.3.0-7.el8.x86_64.rpm
$ sudo yum install ./yasm-1.3.0-7.el8.x86_64.rpm
Updated Jul 19, 2020