Download package from here
Extract package at home
Unpack the archive into a directory, which creates a subdirectory nasm-X. XX.
cd to nasm-X. XX and type “./configure” . This shell script will find the best C compiler to use and set up Makefiles accordingly.
Type make to build the nasm and ndisasm binaries.
Type “sudo make install” to install nasm and ndisasm in /usr/local/bin and to install the man pages.