How to install FFMPEG NASM assembler in Linux? | Install NASM Linux

How to Install NASM on Linux

image edited using nasm, learn how to install nasm

What is NASM?

  • Nasm is one the most popular assemblers in Linux
  • This installation process is same for each and every Linux Distros
  • Relocatable Dynamic Object File Format (RDOFF)
  • Nasm has its own binary Format RDOFF.



How to install FFMPEG NASM Assembler in Linux

There are 2 Methods to install FFMPEG Nasm ( nasm 2.31.01)

Method 1 (Manual Installation)

First create a directory, were we will download the nasm tar file

cd ~/ffmpeg_sources

Now Download the nasm using the below command

curl -O -L http://www.nasm.us/pub/nasm/releasebuilds/2.13.01/nasm-2.13.01.tar.bz2

Extract the download file

tar xjvf nasm-2.13.01.tar.bz2

cd nasm-2.13.01

After extracting run the scripts present in the downloaded folder which will start installing nasm

./autogen.sh

Set the path where you want to install nasm

./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin"

Continue the Installation

make
make install

To install Latest NASM version follow this Method
Method 2 (Install using the repository)

Below installation is conducted in Centos 7
Create this repo file and below text in it



vim /etc/yum.repos.d/nasm.repo

[nasm]
name=The Netwide Assembler
baseurl=http://www.nasm.us/pub/nasm/stable/linux/
enabled=1
gpgcheck=0

[nasm-testing]
name=The Netwide Assembler (release candidate builds)
baseurl=http://www.nasm.us/pub/nasm/testing/linux/
enabled=0
gpgcheck=0

[nasm-snapshot]
name=The Netwide Assembler (daily snapshot builds)
baseurl=http://www.nasm.us/pub/nasm/snapshots/latest/linux/
enabled=0
gpgcheck=0

Now install Nasm
sudo su
yum install nasm

Each every NASM version installation will be same.



Download the Nasm from the given link below and Follow the Method 1

http://www.nasm.us/pub/nasm/releasebuilds/?C=M;O=D

Important Links

Check the list of available NASM versions.

http://www.nasm.us/pub/nasm/releasebuilds/?C=M;O=D

Find Nasm Documents link

http://www.nasm.us/docs.php

Nasm useful links

http://www.nasm.us/links.php

One of our user suggested error in ubuntu, please check this out as well.

techouse

I love helping beautiful people like you. I love hanging out with my dogs.

You may also like...

2 Responses

  1. jay says:

    testing ffmpeg

  1. November 12, 2017

    […] Click here to install latest and standard way to install Nasm. […]

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.