LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-16-2011, 11:18 AM   #16
AnasAmer
LQ Newbie
 
Registered: Aug 2011
Posts: 15

Rep: Reputation: Disabled
ns2.29 + sensor + phenom


Hi
I have been trying to install ns2 to support sensor networks i tried ns2.34 and ns2.29 but still have problem in the phenom routing agent
can you plz help
which version of ns2 to use
regards
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 10-13-2011, 06:33 AM   #17
irphan
LQ Newbie
 
Registered: Oct 2011
Posts: 6

Rep: Reputation: Disabled
Need to run SARA but nam is not working after installtion of ns-2.31

abc@ubuntu:~/ns-allinone-2.31/ns-2.31$ nam
nam:
[code omitted because of length]
: no event type or button # or keysym
while executing
"bind Listbox <MouseWheel> {
%W yview scroll [expr {- (%D / 120) * 4}] units
}"
invoked from within
"if {[tk windowingsystem] eq "classic" || [tk windowingsystem] eq "aqua"} {
bind Listbox <MouseWheel> {
%W yview scroll [expr {- (%D)}] units
}
bind Li..."
 
Old 10-13-2011, 07:31 AM   #18
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Post # 17 was answered here :

http://www.linuxquestions.org/questi...2-31-a-801695/
 
Old 11-07-2011, 11:36 AM   #19
qurilly007
LQ Newbie
 
Registered: Jul 2011
Posts: 2

Rep: Reputation: Disabled
help on "-llType",..shows invalid command name

Hey man..If you found the solution can't you post it here...so the others may get help help from it ?
 
Old 01-10-2012, 11:00 AM   #20
devilvsevil
LQ Newbie
 
Registered: Dec 2011
Posts: 6

Rep: Reputation: Disabled
I have followed your steps but i still get fail in the end.I was looking for solution of this error but can't find it.

Quote:
tclcl-1.17 has been installed successfully.
============================================================
* Build ns-2.29
============================================================
./install: 528: ./configure: not found
Ns configuration failed! Exiting ...
 
Old 01-11-2012, 05:14 AM   #21
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Post # 20. Still Ubuntu 10.04 ?

This is an old thread. The install can be done in a simpler way.
And the compilers are not the same for all Ubuntu versions.
Please start from scratch with :
tar xvf ns-allinone-2.29.3.tar.gz
http://sourceforge.net/projects/nsna...ar.gz/download

Ubuntu 10.04 and 10.10 :
cd ns-allinone-2.29/ && export CC=gcc-3.4 CXX=g++-4.1 && ./install

Please notice that gcc is now ver. 3.4. ( g++ is still ver. 4.1 ).

..
 
Old 04-15-2013, 10:49 AM   #22
Aska123
Member
 
Registered: Apr 2013
Posts: 197

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Ref. post # 6

sudo apt-get install \
libx11-dev libxmu-dev libxmu-headers libxt-dev libtool g++-4.1

If you want to use nam-1.11 ( any nam can be used ) :
http://bugs.gentoo.org/attachment.cgi?id=161242
cd ns-allinone-2.29.3/tk-8.4.11/
patch -p0 < tk-8.4-lastevent.patch

Edit some 'Makefile.in' :
otcl-1.11/, line 7 : CC = gcc-4.1
tclcl-1.17/, line 40 : CC = gcc-4.1
tclcl-1.17/, line 41 : CPP = g++-4.1
ns-2.29/ , line 36 : CC = gcc-4.1
ns-2.29/ , line 37 : CPP = g++-4.1
nam-1.11/, line 44 : CC = gcc-4.1
nam-1.11/, line 45 : CPP = g++-4.1

Do 'make clean' in otcl-1.11/ and next delete the 'Makefile'.
Now ./install will work.
..
how to use command make clean.
when i type make clean in otcl dir
it give me error
no make for target
 
Old 06-12-2013, 04:26 AM   #23
Ndia
LQ Newbie
 
Registered: May 2013
Posts: 23

Rep: Reputation: Disabled
Hi!
I have installed ns2.35 with mannasim framework and installation was successful,
when I run any .tcl file I get the following

[code omitted because of length]
: invalid command name "DataGenerator/TemperatureDataGenerator"
while executing
"DataGenerator/TemperatureDataGenerator set sensing_interval_ 0.0"


Kindly help,its urgent!
 
Old 06-12-2013, 06:25 AM   #24
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 23 .
Quote:
invalid command name "DataGenerator/TemperatureDataGenerator"
Looks like an ns2 with no mannasim. Are you sure the right 'ns' is used ?

Example, ns-2.35 patched for mannasim :
https://github.com/paultsr/ns-allinone-2.35
>>> $ git clone https://github.com/paultsr/ns-allinone-2.35
$ cd ns-allinone-2.35/ && ./install
$ cd ns-2.35/ ; $ strip ns ; $ cp ns ns235-mannasim
$ ./ns235-mannasim mannasim-rede-plana.tcl : OK, no errors.
$ ./ns235-mannasim mannasim-rede-hierarquica.tcl : OK too.

And the four examples in ns-allinone-2.35/paultsr/sample-codes/ :
Nam and Xgraph will display the simulations.

-

Last edited by knudfl; 06-12-2013 at 06:28 AM.
 
Old 06-12-2013, 08:44 AM   #25
Ndia
LQ Newbie
 
Registered: May 2013
Posts: 23

Rep: Reputation: Disabled
Thanks for the reply:Actually I installed ns-2.35 from the said site which installed succesfully

Example, ns-2.35 patched for mannasim :
https://github.com/paultsr/ns-allinone-2.35
>>> $ git clone https://github.com/paultsr/ns-allinone-2.35
$ cd ns-allinone-2.35/ && ./install
$ cd ns-2.35/ ; $ strip ns ; $ cp ns ns235-mannasim
$ ./ns235-mannasim mannasim-rede-plana.tcl : OK, no errors.
$ ./ns235-mannasim mannasim-rede-hierarquica.tcl : OK too.

And the four examples in ns-allinone-2.35/paultsr/sample-codes/ :
Nam and Xgraph will display the simulations.


I did not understand what to do with this line:
$ cd ns-2.35/ ; $ strip ns ; $ cp ns ns235-mannasim


Am working on Cygwin
My request is kindly break it down for me I see how it works

Thanks
 
Old 06-12-2013, 09:38 AM   #26
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 25 .
Quote:
$ cd ns-2.35/ ; $ strip ns ; $ cp ns ns235-mannasim
$ cd ns-2.35/ : Means $ cd ns-allinone-2.35/ns-2.35/

$ strip ns : Standard procedure to strip out surplus symbols, if you wish.
Is usually done by 'make install'. Will reduce the file size.

$ cp ns ns235-mannasim : Two things : Make a backup of the file.
And to get a file with a recognizable name : If you have more than one
'ns' executable. Easy to use : $ ns235-mannasim mannasim-rede-plana.tcl
instead of $ ns file.tcl : Which is impossible with several 'ns's.
Or use : $ ./ns235-mannasim mannasim-rede-plana.tcl

.
 
Old 06-13-2013, 06:37 AM   #27
Ndia
LQ Newbie
 
Registered: May 2013
Posts: 23

Rep: Reputation: Disabled
I followed the above guidelines and now I get following error

user@user-PC /cygdrive/c/cygwin/home/user/ns-allinone-2.35/paultsr/sample-codes
$ ns reno.tcl
Error: Cannot open shared library: No such file or directory

Guide me on the same kindly
 
Old 06-13-2013, 08:12 AM   #28
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 27 .
Quote:
Error: Cannot open shared library: No such file or directory
Probably not the message you got. Usually the missing library name is shown.


$ ns reno.tcl : Better make a copy of the "ns from ns-235-with-mannasim"
to the folder with the examples. Or use a renamed 'ns' : ns235-mannasim.
And instead use $ ./ns reno.tcl , or $ ./ns235-mannasim reno.tcl

By using the plain name ns, you cannot be sure if it's an ns-2.29 'ns'.
Please always use renaming, if you have more than one 'ns'.

-
 
Old 06-14-2013, 12:45 AM   #29
Ndia
LQ Newbie
 
Registered: May 2013
Posts: 23

Rep: Reputation: Disabled
Finally I decided to remove ns2.29 and ns2.35 and installed ns2.35 afresh

Unfortunately when I still run any .tcl file it gives following:

$ ns tput.tcl
Error: Cannot open shared library: No such file or directory


Kindly help am really stuck!
 
Old 06-14-2013, 02:35 AM   #30
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 29 .

May be you have added some text to .bashrc ? .bash_profile ?
Please check your PATH : $ echo $PATH <Enter>
 
  


Reply

Tags
bittorrent-p2p, mannasim, mannasim-ns235, ns2



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 Problem Second GCC-Pass(or gettext sanity check problem) hoes Linux From Scratch 0 09-04-2005 10:20 AM
Sound Card problem(every time i install linux i have diffirent hardware problem) jacka1l Linux - Newbie 7 08-11-2005 06:10 AM
Lan configuration problem - NFS boot problem - RX&TX packets errors 242VDM242 Linux - Networking 4 11-25-2004 01:35 PM
perl problem? apache problem? cgi problem? WorldBuilder Linux - Software 1 09-17-2003 07:45 PM
Not as much of a Solaris problem rether hardware Ultra 10 problem (video card) neo77777 Solaris / OpenSolaris 7 06-24-2003 08:36 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:15 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
Open Source Consulting | Domain Registration