Q:

nam error : Segmentation fault (core dumped)

I'm trying to use ns2 in ubuntu 14.04 (32 bit).  But I'm having a great trouble using nam
I can use ns2 command easily
$ ns example.tcl

But the nam is not working properly.  On executing the below command 
$ nam example.nam

I'm getting error 

Segmentation fault (core dumped)

I followed all the steps in below article.  But still not working properly
Segmentation fault (core dumped) in nam ubuntu 14.04

A:

If you have a ns2 installed manually in your system just go in the directory of ns2 for example ns2-allinone-2.35/ns-2.35/ then try to simulate your simulation in here and be sure that you use ./ns ./simulationfile.tcl instead of ns simulationfile.tcl.