LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-24-2014, 01:11 PM   #1
maryyum
LQ Newbie
 
Registered: Apr 2014
Posts: 9

Rep: Reputation: Disabled
Unhappy nam ns2.34 error


hello! i am a newbie to linux as well as ns-2.34 , working with it for my FYP on asymmetric mobile adhoc networks. All was going well untill now i dont know what actually happened my nam is not working properly it is showing the following error
Cannot connect to existing nam instance. Starting a new one...
as well as this one
*** !!! ***
nam cannot recognize the trace file tmp
Please make sure that the file is not empty and it is a nam trace

kindly guide me what to do ???
 
Old 04-24-2014, 02:36 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Welcome to LQ.

Is it the ns-allinone-2.34/nam-1.14/ ? Or is it an installed Ubuntu package ?

"Cannot connect to existing nam instance. Starting a new one..." :
→ Is the normal behavior.

Quote:
*** !!! ***
nam cannot recognize the trace file tmp
May be it isn't a usual "out.nam" that you are trying to open ?

Please make a nam test with a well tested out.nam :
The attached `Marc Greis´ example3.tcl will create the perfect out.nam
( Ref. http://www.isi.edu/nsnam/ns/tutorial/nsscript3.html )
-
Attached Files
File Type: txt example3.tcl.txt (1.3 KB, 25 views)
 
Old 04-26-2014, 03:00 PM   #3
maryyum
LQ Newbie
 
Registered: Apr 2014
Posts: 9

Original Poster
Rep: Reputation: Disabled
hello
Actually i am working with MCM , generated its scenario , a cbr file all that now i have a tcl script as well and after simulating the tcl file i get a nam and a trace file . Which i can visualize in nam but when i place in the commands
perl visualize.pl Obstacles.txt 10 simple-manet.nam
it gives his error
Cannot connect to existing nam instance. Starting a new one...
*** !!! ***
nam cannot recognize the trace file tmp
Please make sure that the file is not empty and it is a nam trace
 
Old 04-26-2014, 04:09 PM   #4
maryyum
LQ Newbie
 
Registered: Apr 2014
Posts: 9

Original Poster
Rep: Reputation: Disabled
and it is ns-allinone-2.35/nam-1.15 package
 
Old 04-26-2014, 04:38 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
# 4 .

MCM, Mission Critical Mobility model :
The " www.wltl.ee.upatras.gr/mcm/‎ " links are currently down,
have you got another link for the files ?

Ubuntu : Please specify your version, and :
? What is the output from the command $ uname -m <Enter>

-
 
Old 04-27-2014, 02:35 AM   #6
maryyum
LQ Newbie
 
Registered: Apr 2014
Posts: 9

Original Poster
Rep: Reputation: Disabled
http://www.wltl.ee.upatras.gr/mcm/
yup used the same mcm website ...my tcl script my scenario file and trafic file it gives out a .nam file as well as .tr
but when i try to visualize it perl visualize.pl Obstacles.txt 10 simple-manet.nam
it gives the error i stated above
 
Old 04-27-2014, 04:34 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
# 6 .

Did you check http://www.wltl.ee.upatras.gr/mcm/ ?
... The link is still down here.


Repeat : Ubuntu : Please specify your version, and :
? What is the output from the command $ uname -m <Enter>


-

Last edited by knudfl; 04-27-2014 at 04:41 AM.
 
Old 04-27-2014, 06:19 AM   #8
maryyum
LQ Newbie
 
Registered: Apr 2014
Posts: 9

Original Poster
Rep: Reputation: Disabled
Ubuntu version is 12.10
ns version is ns-allinone-2.35 package
yes i have used the same website for mcm simulation ....
 
Old 04-27-2014, 06:31 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
# 8 .

Did you do a check with the link right now ?
http://www.wltl.ee.upatras.gr/mcm/
.... The link doesn't work here.
Alternatively you can upload the MCM files as a package, to GoogleDocs,
then I will make a test build etc. with Ubuntu 12.10 - <?>.
The two "12.10" versions are Ubuntu 12.10-i686 and Ubuntu 12.10-x86_64 →

→ Repeat : Please show the output from the command $ uname -m
.. to decide if your OS is i686 or x86_64.
It's actually crucial, as not all protocols will work with both 12.10 versions.

-

Last edited by knudfl; 04-27-2014 at 06:35 AM.
 
Old 04-27-2014, 01:54 PM   #10
maryyum
LQ Newbie
 
Registered: Apr 2014
Posts: 9

Original Poster
Rep: Reputation: Disabled
i installed my ubuntu and ns-allinone-2.35 again and now when i ./configure ns-2.35 this error pops up
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
No .configure file found in current directory
Continuing with default options...
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ANSI C header files... (cached) yes
checking for string.h... (cached) yes
checking for main in -lXbsd... no
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... yes
checking for dcgettext in -lintl... no
checking for getnodebyname in -ldnet_stub... no
checking that g++ can handle -O2... no
checking if C++ libraries work without any namespace... no
checking if C++ libraries work with namespace std... yes
checking if STL works without any namespace... no
checking if STL works with namespace std... yes
checking should use STL... yes
./configure: line 5453: tclsh: command not found
checking for tcl.h... -I../include
checking for tclInt.h... -I../include
checking for libtcl... no
checking for init.tcl... ../lib/tcl8.5
checking for http.tcl... ../lib/tcl8.5/http1.0
checking Tcl http.tcl library... yes
checking for tclsh... no
checking for tclsh... no
checking for tclsh... no
checking for tclsh8.4... no
configure: error: Installation of tcl seems incomplete or can't be found automatically.
Please correct the problem by telling configure where tcl is
using the argument --with-tcl=/path/to/package
(perhaps after installing it),
or the package is not required, disable it with --with-tcl=no.
 
Old 04-27-2014, 03:01 PM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
# 10 .

"./configure" won't do, when it is ns-2.35. Is for all earlier versions.
Do a $ make clean in ns-2.35, and edit the Makefile.in : `mobile/obstacle.o´
then go to the top directory ns-allinone-2.35/,
and do $ ./install

-
The link http://www.wltl.ee.upatras.gr/mcm/ is up again.
But I can't unzip the package mcm.zip ( 'unzip' or '7z x' ).
? How did you unpack "mcm.zip" ?
EDIT : The downloaded mcm.zip is 4.8 kB !

-

Last edited by knudfl; 04-27-2014 at 05:00 PM.
 
Old 04-29-2014, 07:43 AM   #12
maryyum
LQ Newbie
 
Registered: Apr 2014
Posts: 9

Original Poster
Rep: Reputation: Disabled
for unzipping mcm use this command

tar -xzvf mcm11.tar.gz

secondly i have to patch mcm with ns-2.35 but every time i try to run install_mcm it dosent work

./install_mcm dosent works either
sudo install_mcm dosent work
how to install it?????
 
Old 04-29-2014, 09:11 AM   #13
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
# 12 .
Quote:
tar -xzvf mcm11.tar.gz
Please supply a link to "mcm11.tar.gz".

Or upload mcm11.tar.gz to e.g. `Google Docs,
and show a link to the package.

-
 
Old 04-29-2014, 09:16 AM   #14
maryyum
LQ Newbie
 
Registered: Apr 2014
Posts: 9

Original Poster
Rep: Reputation: Disabled
i am sorry actually i renamed my mcm "mcm11"
follow the same command for mcm

how do i run install_mcm ???
 
Old 04-29-2014, 09:25 AM   #15
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
# 14 .

Please upload a usable package "mcm.?" to Google Docs.
 
  


Reply

Tags
mcm, ns2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] ns2.29 -nam Ndia Linux - Software 1 05-26-2013 04:20 AM
[SOLVED] error while executing nam in ns2.34 on ubuntu 10.04 Aska123 Linux - Software 2 04-12-2013 07:04 AM
help me, error run command "nam" on ns2, (allionne2.33, ubuntu10.10, vmware 8.04) vuichoigiaitri Linux - Networking 1 08-17-2012 03:48 AM
nam not working ns2.33 fabe856 Linux - Software 3 04-20-2012 02:03 PM
[SOLVED] NS2 Nam Issue atb2010 Linux - Newbie 2 03-17-2011 10:52 AM


All times are GMT -5. The time now is 06:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration