# 15
Quote:
# 14 : Did you solve the tcl8.4.18 issues ? Looks like you'd better start from scratch in /home/<user-name>/ with a new unpacked ns-allinone-2.31.tar.gz. And : Never use any commands as root, when you extract, and when you build software. No "root commands" in ns2, please. . |
Quote:
[majd@MSH ~]$ ls Desktop Downloads ns-allinone-2.31 Pictures Templates Documents Music ns-allinone-2.31.tar.gz Public Videos [majd@MSH ~]$ cd ns-allinone-2.31/ [majd@MSH ns-allinone-2.31]$ cd ns-2.31/indep-utils/cmu-scen-gen/setdest/ [majd@MSH setdest]$ ./make-scen.csh bash: ./make-scen.csh: /bin/csh: bad interpreter: No such file or directory [majd@MSH setdest]$ sh ./make-scen.csh ./make-scen.csh: line 18: syntax error near unexpected token `(' ./make-scen.csh: line 18: `foreach pt (0)' [majd@MSH setdest]$ csh ./make-scen.csh bash: csh: command not found... Similar command is: 'ssh' [majd@MSH setdest]$ |
# 17
Quote:
.... The reply is tcsh. # yum install tcsh And : You don't have to use 'csh ./make-scen.csh'. This will do : 'csh make-scen.csh' . |
thankssssss
Quote:
[majd@MSH ns-2.31]$ ns bash: ns: command not found... Similar command is: 'nc' |
# 19
If the file ns-allinone-2.31/ns-2.31/ns is present : cd ns-allinone-2.31/ns-2.31/ su make install && exit ... I.e. 'make install' copies 'ns' to /usr/local/bin/, and you can use the 'ns' command. . |
Quote:
for d in /usr/local/man/man1; do \ if [ ! -d $d ]; then \ mkdir -p $d ;\ fi;\ done /usr/bin/install -c -m 755 ns /usr/local/bin /usr/bin/install: cannot stat `ns': No such file or directory make: *** [install-ns] Error 1 [root@MSH ns-2.31]# exit exit [majd@MSH ns-2.31]$ ns bash: ns: command not found... Similar command is: 'nc' |
# 21.
Quote:
And you cannot install or use a file / command, that isn't present in ns-allinone-2.31/ns-2.31/. Are you building ns-allinone-2.31 with some modifications / patches ? Please specify. About your errors : Better delete all ns-allinone-2.31/ and start from scratch. In /home/majd/ : $ tar xvf ns-allinone-2.31.tar.gz && export CC=gcc34 CXX=g++34 && ./install ... Be aware that the export command is temporary : You will reset to gcc / g++ version 4.7.0, when you exit the terminal. . |
Quote:
$ tar xvf ns-allinone-2.31.tar.gz && export CC=gcc34 CXX=g++34 && ./install but when finish i type in terminal ns i have the same error [majd@MSH ns-2.31]$ ns bash: ns: command not found... Similar command is: 'nc' plz help me |
# 23
? Is the file ns-allinone-2.31/ns-2.31/ns present now ? ? If it is there, please read post # 20. . |
this all file in ns-2.31
[root@localhost ns-2.31]# ls adc delaybox Makefile.in satellite allinone diffserv makefile.vc sctp aodv diffusion mcast sensor-nets apps diffusion3 mobile src_rtg asim doc mpls tcl autoconf.h.in dsdv nix tcp autoconf-win32.h dsr ns.1 test-all BASE-VERSION empweb ns_tclsh.cc TODO.html baytcp emulate packmime tools bin FILES pgm tora bitmap gaf plm trace CHANGES.html HOWTO-CONTRIBUTE pushback validate classifier imep qs validate-full common indep-utils queue validate.out conf install-sh rap validate.win32 config.guess INSTALL.WIN32 README validate-wired config.h lib realaudio validate-wireless config.sub LICENSES release_steps.txt VERSION configure link routealgo webcache configure.in linkstate routing wpan COPYRIGHTS mac rtproto xcp |
Quote:
http://www.edaboard.com/thread118830.html |
# 25
What's the error message, when your build fails ? Are you building ns-allinone-2.31 with some modifications / patches ? ! Please answer. Missing respond : post # 22 ! # 26 Quote:
The binary 'ns' is hard coded to know the location of its libraries. (And: Setting a path to a non existing binary isn't going to make it work.) . |
Quote:
when type ./install its work but at the end this msg was written In file included from /home/majd/ns-allinone-2.31/tk8.4.14/unix/../generic/tkInt.h:21:0, from /home/majd/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.h:18, from /home/majd/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:16: /home/majd/ns-allinone-2.31/tk8.4.14/unix/../generic/tk.h:83:23: fatal error: X11/Xlib.h: No such file or directory compilation terminated. make: *** [tk3d.o] Error 1 tk8.4.14 make failed! Exiting ... For problems with Tcl/Tk see http://www.scriptics.com [majd@localhost ns-allinone-2.31]$ |
# 28
Quote:
These are the usual prerequisites for ns2 : # yum install \ gcc-c++ compat-gcc-34-c++ automake autoconf libtool libX11-devel \ libXext-devel libXau-devel libXmu-devel xorg-x11-proto-devel See post #1 : Xlib.h is from the package 'libX11-devel' Quote post #1 : " # yum install libX11-devel ... " . |
Done
Quote:
Please put /home/majd/ns-allinone-2.31/bin:/home/majd/ns-allinone-2.31/tcl8.4.14/unix:/home/majd/ns-allinone-2.31/tk8.4.14/unix into your PATH environment; so that you'll be able to run itm/tclsh/wish/xgraph. IMPORTANT NOTICES: (1) You MUST put /home/majd/ns-allinone-2.31/otcl-1.13, /home/majd/ns-allinone-2.31/lib, into your LD_LIBRARY_PATH environment variable. If it complains about X libraries, add path to your X libraries into LD_LIBRARY_PATH. If you are using csh, you can set it like: setenv LD_LIBRARY_PATH <paths> If you are using sh, you can set it like: export LD_LIBRARY_PATH=<paths> (2) You MUST put /home/majd/ns-allinone-2.31/tcl8.4.14/library into your TCL_LIBRARY environmental variable. Otherwise ns/nam will complain during startup. After these steps, you can now run the ns validation suite with cd ns-2.31; ./validate For trouble shooting, please first read ns problems page http://www.isi.edu/nsnam/ns/ns-problems.html. Also search the ns mailing list archive for related posts. please tell me how i can do this step by step? |
All times are GMT -5. The time now is 12:41 PM. |