network-programmingsimulationns2nam

How to get nam working with ns2 simulator


Currently I have installed ns2 in my linux pc and when I run the following on terminal

$ ns sampleprog.tcl

all I get is

nam:

There should have been a nam pop up window opening instead. I don't know how to solve this problem as I have installed both ns2 and nam. I think it is due to me updating my Ubuntu 22.04 with which nam also got updated and is now not compatible with version of ns2. Before update nam was working fine. How should I go about solving this problem or maybe possibly degrading the version?

I tried updating to the latest version but to no avail. The network animator window that i was expecting doesn't open


Solution

  • I faced same problem in my nam 1.15 version,I downloaded nam 1.14 Deb file from this link a lower version. After downloading Deb file .Open terminal in folder where nam 1.14 Deb file is downloaded And run this command.

    $sudo dpkg --install nam_1.14_amd64.deb

    This solved my problem.