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
informatica:linux:ns2 [2010/01/21 11:31] 192.168.1.30informatica:linux:ns2 [2015/04/13 20:19] (current) – external edit 127.0.0.1
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:
  
informatica/linux/ns2.1264073513.txt.gz · Last modified: 2015/04/13 20:19 (external edit)