Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Dear knudfl,
i'm really thankful for ur reply.i have still error " tcl8.3.2 configuration failed! Exiting ..." when i'm running the following command
$ cd ns-allinone-2.31/ && export CC=gcc41 CXX=g++41 && ./install
And the output from the command $ uname -m is i686.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,493
Rep:
#61, #62.
I guess you will have to delete the downloaded gcc41-compat-4.1.2-ubuntu1210_i386.deb,
.. then download a new one, and reinstall with
$ sudo dpkg -i gcc41-compat-4.1.2-ubuntu1210_i386.deb
Quote:
bash: ns2.31_fhmip.patch: No such file or directory
Please copy the patch `ns2.31_fhmip.patch' to the directory where you do $ 'patch ....'
but i carried on the following steps:
1)gedit ~./bashrc
2) source ~./bashrc
3) ns
but % is not appeared and recommed me to run in terminal:
4) sudo apt-get install ns2
finally when i type the command ns, % is appeared.
may i know this steps i have done will be convenient for simulating about my study.
are there anything to edit and follow to get right installation?
could you give me the advices? thanks in advance.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,493
Rep:
# 64 .
Quote:
But I carried on the following steps:
1)gedit ~./bashrc
2) source ~./bashrc
Only required when you use the University Computer, and have no write permissions
to /usr/local/bin/. And : Adding the *PATH's to .bashrc doesn't always work.
The old "year 1997 text" ..
Quote:
"Please put ....
.
"IMPORTANT NOTICES:" (1) You MUST put ..
.. really makes no sense in a modern world, where you are using your own computer,
.. and can install 'ns' and 'nam' to a system PATH.
Dear sir,
i'm really thankful for ur every response.
i'm a beginner to use ubuntu & ns 2.
although i have tried and made the tests not only ur posts that
concerend about my installation but also from other links
I got confused and couldn't be able to understand what is the difference between the suggestions.
however, i'll try again every step you have posted.
i know my questions will make you irritated.
thank you very much for your care.
with best wishes,
ms thiri
And : Remember that the most tutorials are written by young students,
who are most often using Linux and ns2 for the fist time.
None of those authors have built ns2 (or any other application) thousands of times.
sudo apt-get install libpcap0.8-dev
Or : It could be an error with 'make depend'.
And : When an ns-allinone-2* has been built with ./install,
.. there should be no reason to use 'make depend'.
( I am never using 'make depend' after changes. 'make' will do.)
Files~ are backup for files that you edited.
It's your own decision if you want to delete them.
Avoiding files~ :
Use another Editor, like gedit. No visible backup. ( Hidden .backup ?).
Or use leafpad : No backups at all.
If you want a backup anyway : Make backups before you edit.
Like : cp Makefile Makefile-back ; cp Makefile.in Makefile.in-back.
I have made all changes as it was written in the Readme file in the patch of IEEE 802.11e EDCA.
when i tried the 9th step: " run ./configure; make clean; make depend; make in your ns directory"
Ive got: no such directory when i try to configure.
(im using cygwin on windows) . how can i configure the changes?
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,493
Rep:
← #69, @rana_abdallah.
The EDCA you are reading about in "Readme" is for ns-2.28.
Please use the patch for ns-2.35 :
** Start from scratch in a new folder in /home/<user-name>/
with a new unpacked ns-allinone-2.35.tar.gz :
$ tar xvf ns-allinone-2.35.tar.gz
The ns235 with the errors cannot be reused.
Example ...
$ cd ns-allinone-2.35/
$ patch -p0 < 802.11e-EDCA-ns235_091814.patch https://drive.google.com/file/d/0B7S...ew?usp=sharing
$ export CC=gcc-4.4 CXX=g++41 && ./install
... and the executable "ns -802.11e" is created.
$ cp ns ns235-EDCA
$ sudo cp ns235-EDCA /usr/local/bin/
$ ns235-EDCA multi_udpflows.tcl : Works OK, the file `out.trī ~800 MB is created.
1)Thank you for ur reply and ur patience
i have installed the patch and wrote what u have written
however, when i wrote : export CC=gcc-4.4 CXX=g++41 && ./install
ive got this:
ns-allinone-2.35 has not been tested under versions of Cygwin older than
1.7.1. Your version (1.5.21) appears to be older than that. Success of
the install process is therefore NOT GUARANTEED.
The above test indicates that your installation of Cygwin
is probably NOT SUITABLE for installing ns-2 allinone.
(More details can be found in the specific error message above.)
2) im using cygwin on windows so what are the neccesary command for cygwin? is sudo suitable on cygwin?
Please waiting ur reply
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,493
Rep:
← #71 .
Depends on which version of Cygwin you are using.
.. Or more important, the gcc and g++ version.
What's the output from :
a) $ gcc --version | grep gcc
b) $ g++ --version | grep g++
... Say you have gcc-4.7 : No ns2 will compile without errors.
** Actually you would could make things a lot easier :
Install a genuine 32bits (i386 / i686) Linux OS in VirtualBox,
or to a spare hard disk.
A normal Linux OS comes with several gcc/g++ versions,
which all can be installed at the same time.
And : You can get little or no help with {Cygwin / ns2}.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,493
Rep:
← #73 .
Quote:
the patch of ns-allinone 2.35 or 2.28 can't be used on this version of cygwin
May be ?
See post #72 : "You can get little or no help with {Cygwin / ns2}".
I.e. only you can find out. Just try :
You can have as many ns-allinone-2 as you want,
installed at the same time. But do never add any *PATH text to .bashrc.
im using cygwin ns-2.30.
The size of the patch of EDCA-802.11e_ns230.patch is 153 KB? no tcl file in it?? or is there a wrong installation?
Do u advice that i keep using the patch of 2.35 and install a linux OS or try to keep working on the cygwin?
I have to measure the QoS of IEEE 802.11e so i have to use the EDCA patch and HCCA patch so which version is suitable for both?
Thank you
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.