ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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 ...
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
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 ).
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
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"
$ 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
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
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 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'.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.