操作系统: Centos7
在nasm官网上的到通过yum安装nasm的方法
首先在/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
这样就配置好了nasm的源.
通过这个源就可以使用命令安装nasm yum install nasm
注意: nasm官网的地址是 /etc/yum/yum.repos.d 我的系统是Centos7, 这个路径对于我的系统来说是错误的.