Install ns2.33 on fedora 17
Hi There,
I have try at several time to install ns 2.33 on Fedora 17 but I always get an error: Quote:
best regards. |
Welcome to LQ.
# yum install compat-gcc-34-c++ The install command for ns-allinone-2.33 is : $ cd ns-allinone-2.33/ && export CC=gcc34 CXX=g++34 && ./install You will probably have to start from scratch with a new unpacked ns-allinone-2.33.tar.gz Or : Do a 'make clean' in tcl8*/unix/, tk8*/unix/, otcl*/, tclcl*/, ns-2.33/, and delete all 'Makefile', where 'make clean' didn't delete them. . |
Hi,
Thanks for your reply and I'm very grateful for you. it seems that ns is intsalled now correctly. However, when i type ns in the terminal it is not working but when i type ./ns it will show % symbol and it work. by the way, how can I procede to install nam ? Best regards. |
Installing ns : cd ns-allinone-2.33/ns-2.33/
su make install ( 'make install' will copy ns to /usr/local/bin/ ). You can do the same in ns-allinone-2.33/nam-1.14/ EDIT : ns-allinone-2.33/nam-1.13/ ( If ./nam works.) If not, you can use a binary nam ( -1.14 ) : post # 4 here .. http://www.linuxquestions.org/questi...04-a-842109/#4 # cp nam /usr/local/bin/ . |
Hi,
In ns-allinone-2.33 i find nam-1.13 folder and not nam-1.14. when I see nam-1.13 folder i find many files but when i download the binary file i find only one file nam. must i copy it into nam1.13 folder ? best regards and thanks for your help. |
# 5
Quote:
Nam is a separate application. Any nam can be used. And : Nam 1.13, 1.14 are identical so far concerns Linux. Using the binary package nam-1.14.i586.tar.gz : tar xvf nam-1.14.i586.tar.gz su cp nam-1.14.i586/nam /usr/local/bin/ . |
Thanks. It is now working well.
|
Now, i have try to patch ns2.33 with ns-2.33_hwmp_proact_rev282.patch and ns-2.33_hwmp_proact_rev282.patch file.
I have copy these two file in ns-allinone-2.33 folder and type patch -p1< ns-2.33_hwmp_rev282.patch in terminal. the message below appear : can't find file to patch at input line 5 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |Index: ns/Makefile.in |=================================================================== |--- ns/Makefile.in (.../ns2_hwmp/trunk/ns) (revision 3) |+++ ns/Makefile.in (.../ns2_development/trunk/ns) (revision 282) -------------------------- File to patch: what is the porblem and how can i fix it best regards. |
# 8
Quote:
But anyway, the patch ns-2.33_hwmp_proact_rev282.patch uses funny directory names : Don't use it. The already patched package is the one to use. 1) cd ns-allinone-2.33/ 2) mv ns-2.33/ ns-2.33_orig 3) tar xvf ns-2.33_hwmp_rev282.tar.bz2 https://forge.iitp.ru/ns2/hwmp/ > > https://forge.iitp.ru/ns2/hwmp/ns-2....rev282.tar.bz2 4) mv ns-2.33_hwmp/ ns-2.33 5) export CC=gcc34 CXX=g++34 && ./install ... and your new binary ns ( "ns-hwmp" ) is created. It's a good idea to have a copy of both 'ns' in /usr/local/bin/, as they may behave different. ( The "ns-hwmp" may not work with non hwmp tcl files.) Copy 1 : The original ns renamed to ns-orig. Copy 2 : The new "ns hwmp" renamed to ns-hwmp. If you ever need a plain "ns", it's easy to make a copy of either to ns. (I would usually have about 20 different 'ns-<?>' in /usr/local/bin/). . |
Dear Sir,
I really appreciate you support. Thanks. By the way, i have already pacth the first version of ns to support multi interface : http://mohittahiliani.blogspot.com/2...interface.html and now i need to work on the same ns as i will run simulation supporting: 1- multi interface 2- HWMP 3- EDCA So how can I do it to make the patch for Multi interface ,HWMP and EDCA on the same ns. best regards. |
Quote:
Do you want to mix all three in one tcl file for a combined simulation ? How do you expect the patches to work together when they make different changes in the same files ? Please read the patches to know the different altered files. The usual approach is to have a version of ns-allinone-2.xx for each patching : You can have as many versions of ns-allinone-2.xx as you want, installed at the same time. But do not add any of them to a *PATH. Example : 3 installs of ns-2.33, 2 installs of ns-2.28, etc. etc. . |
Hi,
Yes exactlty the tcl file need these 3 patch at the same time. So what can I do ? Best regards. |
No feedback knudfl ?
what do you think so ? Best regards. |
# 12
Probable try out what works, and what isn't working. Suggest : Use several installs of ns-allinone-2.33/ and see what happens, when you apply the patches in different sequences : 1) Multi interface, HWMP, EDCA 2) EDCA, Multi interface, HWMP 3) HWMP, EDCA, Multi interface 4) HWMP, Multi interface, EDCA 5) EDCA, HWMP, Multi interface One of the installs may then work with a "combined simulations tcl file" ? Did you read the patches to learn which { aodv/* tcl/lib/* mac/* } files are getting overwritten by the next patch ? . |
Dear Sir,
I have follow this steps :Multi interface then try to install MAC 802.11e EDCA For the Patch Multi interface, all thing is OK but when try to follow the steps included in the readme file below: Quote:
Quote:
Best regards. |
All times are GMT -5. The time now is 01:57 AM. |