The first step: first determine if the system has installed NASM---------------> Open terminal, execute Whereis nasm; if nasm:/usr/bin/nasm is displayed, it is already installed, if only NASM: is displayed, it is not installed.
Second cloth: to the official website to download the latest version of the source code compiled http://www.nasm.us/, such as nasm-x.xx. Ta. gz,x.xx. is the version number.
The third step starts the installation,
First, download the resulting compressed package, unzip: Tar xzvf nasm-x.xx. ta. gz;
Then CD nasm-x. XX and enter the ./configure {Configure script will look for the most appropriate C compiler and generate the corresponding makefile file}
Then enter make to create NASM and ndisasm binary code
Last enter make install for installation (this step requires root access)
The make install will load NASM and ndisasm into the/usr/local/bin and install the corresponding man pages.
If you want to verify that the installation is successful, enter Whereis NASM (see first step)
Compilation environment building under Linux (NASM)