when i use NS2 through terminal i keep getting a segment fault (core dumped) message.
g_0zek@g-0zeK-pc:~$ ns lab1.tcl
g_0zek@g-0zeK-pc:~$ nam lab1.nam
Segmentation fault (core dumped)
despite that xgraph
works ok
the code in the tcl
seems ok as it was given from university and one friend of mine runs it fine.
Any ideas?
Best Answer
Do not install via terminal.
Download ns-allinone-2.35.tar.gz file from https://sourceforge.net/projects/nsnam/
Install the following dependicies
Extract
ns-allinone-2.35.tar.gz
open
ns-allinone-2.35/ns-2.35/linkstate/ls.h
file.go to line number 137.
change
to
then goto ns-allinone-2.35 directory
it takes some time
come to home directory
a text file will open
go to end of the file
add the following line
note:my user name is "isysway" you replace it with yours
then
if the modulo symbol comes you did it.