Here is an "installer" that should work on just about any linux system. Only dependency is 'wget' and and that is something installed on just about any linux box anyway:
#!/bin/bash
# getnasm.sh
if [[ $(/usr/bin/id -u) -ne 0 ]]; then
echo "getnasm.sh requires root"
exit
fi
if [ "$1" == "" ] ; then
echo "usage: getnasm.sh <VERSION>"
exit
else
NVERSION=$1
fi
# Download And Install
wget http://www.nasm.us/pub/nasm/releasebuilds/$NVERSION/nasm-$NVERSION.tar.bz2
tar xvf nasm-$NVERSION.tar.bz2
rm -rf nasm-$NVERSION.tar.bz2
cd nasm-$NVERSION
./configure && make && make install && make spotless
cd ..
#Installation Complete.
exit
This script takes the version of NASM you wish to install as an argument to the script and downloads, unpackages, builds, installs, and cleans-up after itself (leaving the source directory in the event that you wish to make any changes like custom standard macros).
bash-4.1$ ./getnasm.sh
getnasm.sh requires root
bash-4.1$ sudo su
bash-4.1# ./getnasm.sh
usage: getnasm.sh <VERSION>
bash-4.1# nasm -v
NASM version 0.99.05 compiled on Jul 29 2010
bash-4.1# ./getnasm.sh 2.09rc5
.... Lots of build stuff .....
bash-4.1# nasm -v
NASM version 2.09rc5 compiled on Jul 29 2010