User Tools

Site Tools


informatica:linux:ns2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
informatica:linux:ns2 [2010/01/11 10:21] 192.168.1.30informatica:linux:ns2 [2010/01/21 13:13] 192.168.1.30
Line 1: Line 1:
-Please put /usr/local/src/ns-allinone-2.34/bin:/usr/local/src/ns-allinone-2.34/tcl8.4.18/unix:/usr/local/src/ns-allinone-2.34/tk8.4.18/unix +====== ns2 ====== 
-into your PATH environment; so that you'll be able to run itm/tclsh/wish/xgraph.+ 
 +ns2 nam 
 + 
 +Aplicación para simular el rendimiento de una red. 
 + 
 +Wiki: http://nsnam.isi.edu/nsnam/index.php/User_Information 
 +Listado de los aplicaciones a instalar: http://www.isi.edu/nsnam/ns/ns-build.html#pieces 
 +Manual: http://wpage.unina.it/marcello.caleffi/ns2/fedora.html 
 + 
 + 
 + 
 + 
 + 
 + 
 + 
 + 
 +===== Uno a uno ===== 
 + 
 +Sigo http://wpage.unina.it/marcello.caleffi/ns2/fedora.html 
 + 
 +He instalado algunos paquetes: 
 + 
 +  aptitude install libx11-dev libxmu-dev libxmu-headers libxt-dev libtool 
 + 
 +Instalo por este orden: 
 + 
 +<code> 
 +tcl 
 +tk 
 +otcl ./configure --prefix=/usr/ --enable-shared --with-tcl=/usr/local/src/ns2_a_mano/tcl8.4.19/ 
 +tclcl 
 +ns2 
 +nam 
 +</code> 
 + 
 +Siempre con la secuencia: 
 + 
 +<code> 
 +./configure 
 +make 
 +make install 
 +</code> 
 + 
 +Solo en los configures le tengo que pasar la ruta a tcl, pero de momento me funciona 
 + 
 +**xgraph** 
 + 
 +  ./configure 
 + 
 +OK 
 + 
 +  make 
 + 
 + 
 +<code> 
 +gcc -DHAVE_CONFIG_H -I. -I. -I.        -g    -c xgraph.c 
 +gcc -DHAVE_CONFIG_H -I. -I. -I.        -g    -c xgX.c 
 +gcc -DHAVE_CONFIG_H -I. -I. -I.        -g    -c hard_devices.c 
 +gcc -DHAVE_CONFIG_H -I. -I. -I.        -g    -c dialog.c 
 +dialog.c: In function ‘make_msg_box’: 
 +dialog.c:780: warning: passing argument 2 of ‘getline’ from incompatible pointer type 
 +dialog.c:780: error: too few arguments to function ‘getline’ 
 +dialog.c: In function ‘getline’: 
 +dialog.c:899: error: argument ‘lptr’ doesn’t match prototype 
 +/usr/include/stdio.h:651: error: prototype declaration 
 +dialog.c:899: error: number of arguments doesn’t match prototype 
 +/usr/include/stdio.h:651: error: prototype declaration 
 +make: *** [dialog.o] Error 1 
 +</code> 
 + 
 +  make install 
 + 
 +<code> 
 +gcc -DHAVE_CONFIG_H -I. -I. -I.        -g    -c dialog.c 
 +dialog.c: In function ‘make_msg_box’: 
 +dialog.c:780: warning: passing argument 2 of ‘getline’ from incompatible pointer type 
 +dialog.c:780: error: too few arguments to function ‘getline’ 
 +dialog.c: In function ‘getline’: 
 +dialog.c:899: error: argument ‘lptr’ doesn’t match prototype 
 +/usr/include/stdio.h:651: error: prototype declaration 
 +dialog.c:899: error: number of arguments doesn’t match prototype 
 +/usr/include/stdio.h:651: error: prototype declaration 
 +make: *** [dialog.o] Error 1 
 +</code> 
 + 
 +Al arrancar ns: 
 + 
 +  ns: error while loading shared libraries: libotcl.so: cannot open shared object file: No such file or directory 
 + 
 +No funciona: 
 + 
 +  LD_LIBRARY_PATH+=/usr/local/src/ns2_a_mano/otcl-1.13/libotcl.so 
 +  TCL_LIBRARY+=/usr/local/src/ns2_a_mano/tcl8.4.19 
 +  TK_LIBRARY+=/usr/local/src/ns2_a_mano/tk8.4.19 
 + 
 +Ahora cuando ejecuto nam: 
 + 
 +<code> 
 +nam:  
 +[code omitted because of length] 
 +: no event type or button # or keysym 
 +    while executing 
 +"bind Listbox <MouseWheel>
 +%W yview scroll [expr {- (%D / 120) * 4}] units 
 +}" 
 +    invoked from within 
 +"if {[tk windowingsystem] eq "classic" || [tk windowingsystem] eq "aqua"} { 
 +bind Listbox <MouseWheel>
 +%W yview scroll [expr {- (%D)}] units 
 +
 +bind Li..." 
 +</code> 
 +   
 + 
 +===== Allinone ===== 
 + 
 +Please put
 + 
 +<code> 
 +/usr/local/src/ns-allinone-2.34/bin:/usr/local/src/ns-allinone-2.34/tcl8.4.18/unix:/usr/local/src/ns-allinone-2.34/tk8.4.18/unix 
 +</code> 
 + 
 +into your PATH environment; so that you'll be able to run 
 + 
 + itm/tclsh/wish/xgraph.
  
 IMPORTANT NOTICES: IMPORTANT NOTICES:
  
-(1) You MUST put /usr/local/src/ns-allinone-2.34/otcl-1.13/usr/local/src/ns-allinone-2.34/libinto your LD_LIBRARY_PATH environment variable.+(1) You MUST put 
 + 
 +<code> 
 +/usr/local/src/ns-allinone-2.34/otcl-1.13 
 +/usr/local/src/ns-allinone-2.34/lib 
 +</code> 
 + 
 +into your LD_LIBRARY_PATH environment variable. 
 If it complains about X libraries, add path to your X libraries into LD_LIBRARY_PATH. 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: If you are using csh, you can set it like:
Line 14: Line 146:
   export LD_LIBRARY_PATH=<paths>   export LD_LIBRARY_PATH=<paths>
  
-(2) You MUST put /usr/local/src/ns-allinone-2.34/tcl8.4.18/library into your TCL_LIBRARY environmental variable. Otherwise ns/nam will complain during startup.+(2) You MUST put 
  
 +  /usr/local/src/ns-allinone-2.34/tcl8.4.18/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 After these steps, you can now run the ns validation suite with
-cd ns-2.34; ./validate 
  
-For trouble shooting, please first read ns problems page  +  cd ns-2.34; ./validate 
-http://www.isi.edu/nsnam/ns/ns-problems.html. Also search the ns mailing list archive + 
-for related posts.+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.
  
informatica/linux/ns2.txt · Last modified: 2015/04/13 20:19 by 127.0.0.1