informatica:linux:ns2
                Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| informatica:linux:ns2 [2010/01/11 09:45] – creado 192.168.1.30 | informatica:linux:ns2 [2015/04/13 20:19] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | Please put / | + | ====== ns2 ====== | 
| - | into your PATH environment; | + | |
| + | ns2 nam | ||
| + | |||
| + | Aplicación para simular el rendimiento de una red. | ||
| + | |||
| + | Wiki: http:// | ||
| + | Listado de los aplicaciones a instalar: http:// | ||
| + | Manual: http:// | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | ===== Uno a uno ===== | ||
| + | |||
| + | Sigo http:// | ||
| + | |||
| + | He instalado algunos paquetes: | ||
| + | |||
| + | aptitude install libx11-dev libxmu-dev libxmu-headers libxt-dev libtool | ||
| + | |||
| + | Instalo por este orden: | ||
| + | |||
| + | < | ||
| + | tcl | ||
| + | tk | ||
| + | otcl ./configure --prefix=/ | ||
| + | tclcl | ||
| + | ns2 | ||
| + | nam | ||
| + | </ | ||
| + | |||
| + | Siempre con la secuencia: | ||
| + | |||
| + | < | ||
| + | ./ | ||
| + | make | ||
| + | make install | ||
| + | </ | ||
| + | |||
| + | Solo en los configures le tengo que pasar la ruta a tcl, pero de momento me funciona | ||
| + | |||
| + | **xgraph** | ||
| + | |||
| + |   ./ | ||
| + | |||
| + | OK | ||
| + | |||
| + | make | ||
| + | |||
| + | |||
| + | < | ||
| + | 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: | ||
| + | dialog.c: | ||
| + | dialog.c: In function ‘getline’: | ||
| + | dialog.c: | ||
| + | / | ||
| + | dialog.c: | ||
| + | / | ||
| + | make: *** [dialog.o] Error 1 | ||
| + | </ | ||
| + | |||
| + | make install | ||
| + | |||
| + | < | ||
| + | gcc -DHAVE_CONFIG_H -I. -I. -I. -g -c dialog.c | ||
| + | dialog.c: In function ‘make_msg_box’: | ||
| + | dialog.c: | ||
| + | dialog.c: | ||
| + | dialog.c: In function ‘getline’: | ||
| + | dialog.c: | ||
| + | / | ||
| + | dialog.c: | ||
| + | / | ||
| + | make: *** [dialog.o] Error 1 | ||
| + | </ | ||
| + | |||
| + | 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+=/ | ||
| + |   TCL_LIBRARY+=/ | ||
| + |   TK_LIBRARY+=/ | ||
| + | |||
| + | Ahora cuando ejecuto nam: | ||
| + | |||
| + | < | ||
| + | nam: | ||
| + | [code omitted because of length] | ||
| + | : no event type or button # or keysym | ||
| + | while executing | ||
| + | "bind Listbox < | ||
| + | %W yview scroll [expr {- (%D / 120) * 4}] units | ||
| + | }" | ||
| + | invoked from within | ||
| + | "if {[tk windowingsystem] eq " | ||
| + | bind Listbox < | ||
| + | %W yview scroll [expr {- (%D)}] units | ||
| + | } | ||
| + | bind Li..." | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== Allinone ===== | ||
| + | |||
| + | Please put: | ||
| + | |||
| + | < | ||
| + | / | ||
| + | </ | ||
| + | |||
| + | into your PATH environment; | ||
| + | |||
| + |  itm/ | ||
| IMPORTANT NOTICES: | IMPORTANT NOTICES: | ||
| - | (1) You MUST put / | + | (1) You MUST put | 
| - | 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 < | + | |
| - | If you are using sh, you can set it like: | + | |
| - | 		export LD_LIBRARY_PATH=< | + | |
| - | (2) You MUST put / | + | < | 
| - |      | + | / | 
| + | / | ||
| + | </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 you are using csh, you can set it like: | ||
| + | |||
| + |   setenv LD_LIBRARY_PATH < | ||
| + |    | ||
| + | If you are using sh, you can set it like: | ||
| + | |||
| + |   export LD_LIBRARY_PATH=< | ||
| + | |||
| + | (2) You MUST put | ||
| + | |||
| + |   / | ||
| + | |||
| + | 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; ./ | 
| - | http:// | + | |
| - | for related posts. | + | For trouble shooting, please first read ns problems page | 
| + | |||
| + | http:// | ||
| + | |||
| + | Also search the ns mailing list archive for related posts. | ||
informatica/linux/ns2.1263203142.txt.gz · Last modified:  (external edit)
                
                