NS2 安装后入门教程
nam不能使用:
进入 /ns-allinone-2.35/nam-1.15 执行 ./configure 后使用 make 进行编译
如果报错 error: narrowing conversion of ‘192’ from ‘int’ to ‘char’
则修改 Makefile 文件48行
增加 -funsigned-char
例如:
CC = gcc
CPP = g++
CCOPT = -Wall -Wno-write-strings -funsigned-char
MKDEP = ./conf/mkdep
再 make 即可完成编译
随后 sudo cp nam /usr/local/bin 将nam可执行文件复制到 bin 目录中