Error during GPSR installation in NS2
After adding patchfile according to the instructions given by you,am getting following error when i run make after make clean.
In file included from tools/random.cc:40: ./config.h:60:19: error: tclcl.h: No such file or directory In file included from tools/random.h:42, from tools/random.cc:41: tools/rng.h:343: error: ‘FILE’ has not been declared make: *** [tools/random.o] Error 1 please give me solution to this problem... THANQ... |
Which GPSR patch ? A link please.
? http://www.cs.binghamton.edu/~kliu/r...ndex.html#gpsr ? Or ? And which version of ns-allinone-2.xx ? GPSR links #5 http://www.linuxquestions.org/questi...hp?p=4847675#5 . |
GPSR Patch file link:http://www.cn.uni-duesseldorf.de/alu.../hls-ns2-patch
ns2 version:ns2.29 |
http://www.cn.uni-duesseldorf.de/alu.../hls-ns2-patch
Installing ns-allinone-2.29.3 + the GPSR-hls patch on Fedora : 1) tar xvf ns-allinone-2.29.3.tar.gz 2) cd ns-allinone-2.29/ns-2.29/ 3) zcat ns2-hls-patch.tar.gz | patch -p1 : EDIT : See post # 11. 4) cd ../ 5) export CC=gcc34 CXX=g++34 && ./install ... and the binary "ns" is created. |
Installation of gpsr in ns2
when I entered ./install from ns-allinone2.29 folder,following error is occured
Tcl.cc: In member function ‘void Tcl::eval(char*)’: Tcl.cc:182: warning: deprecated conversion from string constant to ‘char*’ Tcl.cc: In member function ‘int TclObject::traceVar(const char*, TclObject*)’: Tcl.cc:421: warning: deprecated conversion from string constant to ‘char*’ Tcl.cc: In static member function ‘static int TclClass::create_shadow(void*, Tcl_Interp*, int, const char**)’: Tcl.cc:509: warning: deprecated conversion from string constant to ‘char*’ Tcl.cc:511: warning: deprecated conversion from string constant to ‘char*’ Tcl.cc: In static member function ‘static int TclClass::dispatch_instvar(void*, Tcl_Interp*, int, const char**)’: Tcl.cc:566: error: invalid conversion from ‘const char*’ to ‘char*’ Tcl.cc:571: warning: deprecated conversion from string constant to ‘char*’ Tcl.cc: In member function ‘virtual void TclClass::bind()’: Tcl.cc:603: warning: deprecated conversion from string constant to ‘char*’ Tcl.cc:605: warning: deprecated conversion from string constant to ‘char*’ make: *** [Tcl.o] Error 1 tclcl-1.17 make failed! Exiting ... how to resolve this error |
# 5
Well, the build command isn't simply ./install but : 'export CC=gcc34 CXX=g++34 && ./install' Required is : # yum install compat-gcc-34-c++ All prerequisites : # yum install \ gcc-c++ compat-gcc-34-c++ automake autoconf libtool libX11-devel \ libXext-devel libXau-devel libXmu-devel xorg-x11-proto-devel . |
INSTALLATION OF GPSR in NS2
will u plz give me the correct link from where I have to download ns2.29.3. the file which i was downloaded was getting 3errors at the the time of extract.
one more doubt is.... is it possible to install gpsr from the given procedure.you said that both gpsr and ns2 will get installed.is it possible???? is there any other simple procedure to install gpsr along with ns2??? |
ERROR IN Tcl.cc
when i entered "export CC=gcc34 CXX=g++34 && ./install" from ns-allinone-2.29 folder am getting following error
creating 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... gcc34 checking whether the C compiler (gcc34 ) works... no configure: error: installation or configuration problem: C compiler cannot create executables. tcl8.3.2 configuration failed! Exiting ... reply me plz........ |
# 8
Quote:
# yum install gcc-c++ compat-gcc-34-c++ ... and afterwards check that the g++, gcc34, g++34 binaries are present : 1) $ rpm -qa | grep gcc-34 2) $ which gcc34 3) $ which g++34 4) $ ls /usr/bin/gcc* 5) $ ls /usr/bin/g++* ( Both g++ and g++34 must be present.) And : Please tell if you are not installing with yum. A dependency could be missing ? ( glibc-devel, glibc-common, glibc-headers, kernel-headers ? ) # 7 : Google .. ns-allinone-2.29.3.tar.gz .. → the first hit is http://sourceforge.net/projects/nsna...allinone-2.29/ > http://heanet.dl.sourceforge.net/pro...-2.29.3.tar.gz . |
Error in patchfile
when zcat ns2-hls-patch.tar.gz | patch -p1 is entered then error is as follows
patching file ../ns-2.29-hls_working/ns-2.29/tcl/mobility/gpsr.tcl Hunk #1 FAILED at 1. 1 out of 1 hunk FAILED -- saving rejects to file ../ns-2.29-hls_working/ns-2.29/tcl/mobility/gpsr.tcl.rej patching file trace/cmu-trace.cc Reversed (or previously applied) patch detected! Assume -R? [n] y patching file trace/cmu-trace.h Reversed (or previously applied) patch detected! Assume -R? [n] y Reply me... |
# 9, # 10.
Better : patch -p1 < <path to ns-2.29-hls.patch> I guess that it was pure luck that I got no errors, as the ns2-hls-patch.tar.gz contains 3 files. Suggest : Do not try to patch the same ns-allinone-2.29/ more than one time. Delete ns-allinone-2.29/ or use a new directory for a new unpacked ns-allinone-2.29.3.tar.gz LQ, GPSR-hls http://www.linuxquestions.org/questi...526/page2.html . |
Generating Graphs
I added gpsr patch file successfully in ns2.29.how can I generate graphs for .tcl files.I executed hls.tcl file which is in ns2.29 folder.I got hls.tr file as output file.But I have to generate graphs for that files.what's the procedure for generating graphs????
|
ns2-hls-patch.tar
Hello eveyone!
I need file: ns2-hls-patch.tar. who have this file? If you have it, can you send it to me? |
# 13 , @diennd20 : Welcome to LQ.
All GPSR info at LQ http://www.linuxquestions.org/questions/tags/gpsr/ * The latest build example + "patch package", post #5 here ... http://www.linuxquestions.org/questi...-4175498876/#5 - |
All times are GMT -5. The time now is 08:16 PM. |