Linux - NewbieThis 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
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 all
am having a problem with the rumor routing module in NS2
after i successfully installed the ns-allinone-2.34 software on Ubuntu 12.04 LTS the new module that i added succesfully runs and exits unexpectedly. can anyone using a working ns2 try the module on his platform to see wether it is my system or not. i tried all kind of export gcc41 and stuff, change the computer but still the same. i am clueless.
any help would be appreciated though.
PS: the module was working before and stopped working sometimes ago -
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513
Rep:
Quote:
the module was working before and stopped working sometimes ago
Ubuntu 12.04 isn't entirely ns2 friendly.
And you have probably done some package updates since you have built "rumor-ns234".
Updates that may prevent an executable ns working with the OS it was built on.
About "rumor.tar.gz.txt" : At least one edited file is missing :
* ns-2.34/common/packet.h, etc. etc.? ns-2.34/tcl/lib/ns-lib.tcl ?
* Please attach all edited files, not included in "rumor.tar.gz.txt".
Then I will find a more suitable OS ...
and build an executable "ns-rumor" that you can use with Ubuntu 12.04.
Ubuntu 12.04 isn't entirely ns2 friendly.
And you have probably done some package updates since you have built "rumor-ns234".
Updates that may prevent an executable ns working with the OS it was built on.
About "rumor.tar.gz.txt" : At least one edited file is missing :
* ns-2.34/common/packet.h, etc. etc.? ns-2.34/tcl/lib/ns-lib.tcl ?
* Please attach all edited files, not included in "rumor.tar.gz.txt".
Then I will find a more suitable OS ...
and build an executable "ns-rumor" that you can use with Ubuntu 12.04.
Which rumor tcl examples have you found ?
-
hi thanks for the reply, i attached the other files with a tcl script i use,
the makefile is not included, but to add a new module we need to add these lines after this in the makefile.in and re-run configure.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513
Rep:
# 3 : ns-2.35 would only make things worse. Besides that :
You can have as many versions of ns-allinone-2.xx as you want,
installed at the same time.
But do not add any *PATH text to .bashrc! Never required when it's your computer.
# 3 : Ref. ""rumor/rumor.o rumor/rumor_rtable.o rumor/rumor_rqueue.o \"".
Well, I added the objects to Makefile.in yesterday, at end of section "OBJ_CC" :
Hi knudfl
do you suggest that i use the version of ubuntu 10.10 And
A new module of rumor? Does it mean that the one i sent
to you did not work by your side as well? i'Am trying to make sens of it since from the rumor code i had i created my own module With a localisation scheme that was working and has stopped at the same time with that rumor code. And i am afraid
Downloading another rumor code wont help much as
the important one is the one i created myself: the rumor
just served for performance comparison.
Last edited by r0w225; 02-21-2014 at 12:51 AM.
Reason: correcting sms talk ; my bad
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513
Rep:
# 6 .
Quote:
Do you suggest that I use the version of ubuntu 10
Why ? Install the rumor package.deb with your `Package Installer', and you are going.
Ubuntu 10.10 is old and unsupported, but makes god ns2 results: 2.26 ..2.34 .
Quote:
Doea it mean that the one i sent
u did not work by ur side as well?
The code works OK, as you can try with $ ns-rumor wrls-rumor-a30node.tcl
.. Which also means that the 'ns' you originally created was OK,
until you updated Ubuntu 12.04 and got new system libraries.
sorry for that i was writting from my smartphone reason why.
then how can i avoid to update the version that i have, i mean even if i reinstall ubuntu 12.04 lTS from scratch i still need to do "sudo apt-get install update" to get the update and the other procedures that install the libraries, and i got stuck the same way as i dont know which update is creating this ! do you know how i can bypass this? by only installing the required system libraries?
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513
Rep:
# 8.
$ sudo apt-get update
.. will not update packages.
Will only refresh the package list : "Available packages".
Upgrading packages : No reason to avoid that.
Package updates are done to keep the OS safe.
About ns2 builds :
No need to do that, as most protocols are available as packages.deb .
If you want to edit ns2 c++ code and build the stuff yourself,
the old unsupported Ubuntu 10.10 is usable.
But : Ubuntu 10.10 is not recommended to be used as your main OS !
Okay!
thanks for the support, i will try all that and give the feedback when i'am done.
one more thing please! can these command be left over as well?
1) $ sudo apt-get dist-upgrade*
2) $ sudo apt-get install build-essential autoconf automake libxmu-dev
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513
Rep:
# 10 .
The package update command is : $ sudo apt-get upgrade
The ns2 prerequisites are :
$ sudo apt-get install g++ autoconf automake make patch libtool libxmu-dev xgraph
'build-essential' will install dpkg-dev, which is only required for building .deb packages. https://packages.debian.org/squeeze/build-essential
Quote : "If you do not plan to build Debian packages, you don't need this package."
i just installed the "rumor-ns-2.34-ubuntu10_i386.deb " that you created. when i run it am having the same issue, from the NAM and the TRACE file there is no exchange of packet.
initially from the NAM you could see the cunsumption of energy shown by a change of the color of the sensor nodes. and it seems to run the TCL in half i mean i have 30 nodes and my awk script gives me the energy left in the network at each node and the total, but when i tried it it gave me this:
Quote:
foxywilly@foxywilly-HP-Compaq-dc5800-Small-Form-Factor:~/Desktop$ awk -f energy_sum_add.awk wrls-rumor-a30node.tr
node (0) have 1.000000 energy
node (1) have 1.000000 energy
node (2) have 1.000000 energy
node (3) have 1.000000 energy
node (4) have 1.000000 energy
node (5) have 0.974200 energy
node (6) have 1.000000 energy
node (7) have 1.000000 energy
node (8) have 1.000000 energy
node (9) have 0.969900 energy
node (10) have 1.000000 energy
node (11) have 0.969900 energy
total left energy of 11 nodes network is 11.914000
which is actually wrong i dont know if by your side the nam was showing perfectely, if so then i guess i have to re-start all install including my ubuntu version from scratch and see.
But do not add any *PATH text to .bashrc! Never required when it's your computer.
i successfully installed ns-2.34 as indicated in your post #5 , but in the terminal when i type ns, it is teling me that ns is not installed.
do i have to be in a specific directory for ns to work now? i use to add the path to the bashrc to make my ns2 work.
hi
was trying to rebuild my os from scratch and a fresh ns2, but am having this error
Quote:
* Build tcl8.4.18
============================================================
./install: 431: ./install: autoconf: not found
loading cache ./config.cache
checking whether to use symlinks for manpages... no
checking whether to compress the manpages... no
checking whether to add a package name suffix for the manpages... no
checking for gcc... gcc41
checking whether the C compiler (gcc41 ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
tcl8.4.18 configuration failed! Exiting ...
Tcl is not part of the ns project. Please see www.Scriptics.com
to see if they have a fix for your platform.
is the g++compat41 packet causing this? or i lack some libraries?
====================
My bad have to do sudo dpkg -i gcc41-compat-4.1.2-ubuntu1210_i386.deb g++41-compat-4.1.2_i386.deb
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.