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 12:13] 192.168.1.30informatica:linux:ns2 [2015/04/13 20:19] (current) – external edit 127.0.0.1
Line 8: Line 8:
 Listado de los aplicaciones a instalar: http://www.isi.edu/nsnam/ns/ns-build.html#pieces 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 Manual: http://wpage.unina.it/marcello.caleffi/ns2/fedora.html
 +
 +
 +
 +
 +
 +
 +
  
 ===== Uno a uno ===== ===== Uno a uno =====
Line 15: Line 22:
 He instalado algunos paquetes: He instalado algunos paquetes:
  
-  aptitude install ibX11-dev libXt-dev libXmu-dev+  aptitude install libx11-dev libxmu-dev libxmu-headers libxt-dev libtool
  
 Instalo por este orden: Instalo por este orden:
Line 22: Line 29:
 tcl tcl
 tk tk
-otcl+otcl ./configure --prefix=/usr/ --enable-shared --with-tcl=/usr/local/src/ns2_a_mano/tcl8.4.19/
 tclcl tclcl
 +ns2
 +nam
 </code> </code>
  
Line 36: Line 45:
 Solo en los configures le tengo que pasar la ruta a tcl, pero de momento me funciona Solo en los configures le tengo que pasar la ruta a tcl, pero de momento me funciona
  
-Por hacer:+**xgraph** 
 + 
 +  ./configure 
 + 
 +OK 
 + 
 +  make 
  
 <code> <code>
-ns2 +gcc -DHAVE_CONFIG_H -I. -I. -I.        -g    -c xgraph.c 
-nam +gcc -DHAVE_CONFIG_H -I. -I. -I.        -g    -c xgX.c 
-xgraph+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> </code>
 +  
  
 ===== Allinone ===== ===== Allinone =====
informatica/linux/ns2.1264076014.txt.gz · Last modified: 2015/04/13 20:19 (external edit)