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/21 11:31] 192.168.1.30informatica:linux:ns2 [2010/01/21 13:13] 192.168.1.30
Line 1: Line 1:
 +====== ns2 ======
 +
 +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: Please put:
  
Line 41: Line 158:
 For trouble shooting, please first read ns problems page For trouble shooting, please first read ns problems page
  
-  http://www.isi.edu/nsnam/ns/ns-problems.html. +http://www.isi.edu/nsnam/ns/ns-problems.html. 
  
 Also search the ns mailing list archive for related posts. 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