# 90
And you are sure that /usr/local/bin/ns is the "GPSR Keliu ns" executable. By the way, did you get the 4.7 MB .deb package installed ? And tested. → gpsr-keliu-ns-2.34-ubuntu10_i386.deb → /usr/local/bin/ns-gpsr-k - |
hi all, a great thanks for all people here, who are spending time to help us , really its amazing ... well , i have patched ns2.35 with ke liu's method , also i create a binary ns for only ns2.35 , i modify the file wireless-gpsr.tcl like in post #17 , but when i run wireless-gpsr.tcl an error appear like this : Code:
num_nodes is set 100 also i patched n2.33 according to the hls method , i create a binary ns only for ns2.33 , but when i run hls.tcl ; the follwing text appear in the terminal , and no nam tool opened : Code:
num_nodes is set 40 |
@knudfl: please tell me if what you post in post #23 is available to my case , i mean ubuntu 11.04, and when i tape gcc -v , it return me gcc 4.5.2 , so i have this version , can i apply what you post in #23 ? really i need help and thank you in advance |
# 93 :
First thing to do : Install "gpsr-hls-2.33-ubuntu10_i386.deb", post #69. If you want to try building it yourself (there is really no reason to do that), then install the gcc41-compat / g++41-compat compilers for Ubuntu 11.04: Please read the the answer to you yesterday, post # 9 here .. http://www.linuxquestions.org/questi...04-a-921068/#9 Checking all compilers with the 'which' command : $ which gcc-4.4 $ which g++-4.4 $ which gcc41 $ which g++41 And with "gcc -v" : $ g++41 -v $ g++-4.4 -v .... etc. etc. Install command, ref. #23 : For 11.04 it is .. cd ns-allinone-2.33/ns-2.33/ && patch -p1 < ns-2.33-hls.patch && tar xvf hls-files-ns233.tar.gz && cd ../ && export CC=gcc41 CXX=g++41 && ./install - |
@ knudfl , i have installed the binary package according to post #3 , http://www.linuxquestions.org/questi...-4175446277/#3 and i have ns-hls as binary ns and i install gcc and g++ according to post #9 , http://www.linuxquestions.org/questi...04-a-921068/#9 and i do the verification , the problem is that i'm confused is that what i download from link in #23 this file : https://docs.google.com/open?id=0B7S...alV2SGhJdk1hQQ replace the original file of hls patch " ns2-hls-patch" that i downloaded from here : http://www.cn.uni-duesseldorf.de/alu.../hls-ns2-patch or just it complete it ,and in the two cases where should i place those two folder , i hope that you excuse my confusion and help me . |
# 95 : None of the links in post #95 are valid. Are "half a copy" of a link.
The files hls-files-ns233.tar.gz are to make sure that all files in ns-2.33/gpsr/ etc. are present. The patch command behaves strange on some versions of Ubuntu, resulting in several missing files. Link https://docs.google.com/file/d/0B7S2...it?usp=sharing Quote:
Code:
cd ns-allinone-2.33/ns-2.33/ && patch -p1 < ns-2.33-hls.patch && tar xvf hls-files-ns233.tar.gz && cd ../ && export CC=gcc41 CXX=g++41 && ./install - |
thank you for your reply , i do the command , it generate to me that : Code:
patching file common/agent.h |
and when i tape just : cd ns-allinone-2.33 && export CC=gcc41 CXX=g++41 && ./install an error appear : Alloc.c:29: /usr/include/bits/socket.h:381:24: erreur: asm/socket.h : Aucun fichier ou dossier de ce type make: *** [tclAlloc.o] Erreur 1 tcl8.4.18 make failed! Exiting ... For problems with Tcl/Tk see http://www.scriptics.com i dont know where is the problem , some one can help me ? |
# 97
About $ patch -p1 < ns-2.33-hls.patch : $ cd ns-allinone-2.33/ns-2.33/ && patch -p1 < ns-2.33-hls.patch Looks like you applied the patch in the wrong location. Or did it twice in different locations ? This is the expected result : Code:
[knudfl@localhost ns-2.33]$ patch -p1 < ns-2.33-hls.patch Then better setup a new ns-allinone-2.33 for gpsr-hls. - |
i have placed manually the files : ns-2.33-hls.Makefile.patch and ns-2.33-hls.patch and ns-2.33-hls-patch.sh in home/manel/ns-allinone-2.33/ns-2.33 ( that's recommanded in the read me file that i found when i uncompressed the file ns2.33-hls-patch.tar.gz) and when i patch ns2.33 in the first time a folder named "ns-2.33-hls_working" was created in home/manel/ns-allinone-2.33 do i have a mistake in that , plz tell me and thankx in advance |
# 98 :
Later / updated versions of Ubuntu 11.04 have no link /usr/include/asm Can be fixed with : 1) cd /usr/include/ 2) sudo ln -s i386-linux-gnu/asm/ |
# 100 : README.txt : April 08, 2009.
No Ubuntu 11.04 four years ago. ( The patch alone works for one old versions of Ubuntu.) This works for Ubuntu 11.04 Code:
cd ns-allinone-2.33/ns-2.33/ && patch -p1 < ns-2.33-hls.patch && tar xvf hls-files-ns233.tar.gz && cd ../ && export CC=gcc41 CXX=g++41 && ./install |
i ecrase the old folder of ns2.33 and i uncompress a new one and i put it in home/manel gcc41 and g++41 is already installed but when i try to install it according to this post : http://www.linuxquestions.org/questi...04-a-921068/#9 an error appear like this : Alloc.c:29: /usr/include/bits/socket.h:381:24: erreur: asm/socket.h : Aucun fichier ou dossier de ce type make: *** [tclAlloc.o] Erreur 1 tcl8.4.18 make failed! Exiting ... For problems with Tcl/Tk see http://www.scriptics.com this is the first time that i see this error what you advice me to do and thanks |
hi i install ns2.33 and i want patch it with hls patch , i install first "gpsr-hls-2.33-ubuntu10_i386.deb" and it work i have ns-hls binary code in usr/local/bin , i download also the files "ns2.33-hls-patch.tar.gz" from the offcial site : http://www.cn.uni-duesseldorf.de/alu.../hls-ns2-patch and i extract it , also i download another file named "hls-files-ns233.tar.gz" recommanded in this post :#23 here : http://www.linuxquestions.org/questi...ml#post4625437 (i just download it , and i dont extract it) the two files in home/downloads/ so i hope that i install the right files , and when i try to patch my ns-allinone-2.33 according to post #94 here http://www.linuxquestions.org/questi...526/page7.html i just enter the first line (step by step) , this command cd ns-allinone-2.33/ns-2.33/ && patch -p1 < ns-2.33-hls.patch an error appear like this : "bash: ns-2.33-hls.patch: no file or folder in that type " that mean that my only problem here is the location of folders , can some one tell me where i put each one of the folders that i mention before cause "ns-2.33-hls.patch" which is a file from the folder home/downloads/ns2-hls-patch so its normally its'nt in the file ns-allinone-2.33/ns-2.33 should i place the file "ns-2.33-hls.patch" in "ns-allinone-2.33/ns-2.33 or there is another suggestion ? thanks in advance |
# 104
Quote:
copy ns-2.33-hls.patch and hls-files-ns233.tar.gz to ns-allinone-2.33/ns-2.33/ - |
All times are GMT -5. The time now is 04:17 AM. |