PDA

Ver la Versión Completa : No puedo instalar Network Simulator 2.29 en Suse Ayuda!!!


novatoSuse
07-oct-2006, 02:18
Hola a todos.

He intentado e intentado e intentado instalar el NETWORK SIMULATOR 2.29 (ns-allinone-2.29)

http://prdownloads.sourceforge.net/nsnam/ns-allinone-2.29.3.tar.gz?use_mirror=puzzle

en LINUX SUSE 10, pero no he podido.

Al principio me sacaba este error:

checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH

Entonces inslale estos dos paquetes con el Yast:
glibc-devel-2.3.5-40.i586.rpm
gcc-4.0.2_20050901-3.i586.rpm

pero ahora me saca estos errores que no tengo ni idea como arreglar:

/home/aulas/NS/ns-allinone-2.29/tk8.4.11/unix/../generic/tk3d.c:1307: error: syntax error before ‘)’ token
/home/aulas/NS/ns-allinone-2.29/tk8.4.11/unix/../generic/tk3d.c:1308: error: syntax error before ‘)’ token
/home/aulas/NS/ns-allinone-2.29/tk8.4.11/unix/../generic/tk3d.c: In function ‘TkDebugBorder’:
/home/aulas/NS/ns-allinone-2.29/tk8.4.11/unix/../generic/tk3d.c:1388: error: ‘borderPtr’ undeclared (first use in this function)
/home/aulas/NS/ns-allinone-2.29/tk8.4.11/unix/../generic/tk3d.c:1391: error: invalid operands to binary *
/home/aulas/NS/ns-allinone-2.29/tk8.4.11/unix/../generic/tk3d.c:1391: error: syntax error before ‘)’ token
/home/aulas/NS/ns-allinone-2.29/tk8.4.11/unix/../generic/tk3d.c:1394: error: request for member ‘borderTable’ in something not a structure or union
/home/aulas/NS/ns-allinone-2.29/tk8.4.11/unix/../generic/tk3d.c:1394: error: request for member ‘borderTable’ in something not a structure or union
/home/aulas/NS/ns-allinone-2.29/tk8.4.11/unix/../generic/tk3d.c:1396: error: syntax error before ‘)’ token
{entrada estándar}: Mensajes del ensamblador:
{entrada estándar}:13: Error: el símbolo `q' ya está definido
{entrada estándar}:25: Error: el símbolo `q' ya está definido
{entrada estándar}:31: Error: el símbolo `q' ya está definido
{entrada estándar}:37: Error: el símbolo `p' ya está definido
{entrada estándar}:79: Error: el símbolo `dy' ya está definido
{entrada estándar}:85: Error: el símbolo `dx' ya está definido
make: *** [tk3d.o] Error 1
tk8.4.11 make failed! Exiting ...
For problems with Tcl/Tk see http://www.scriptics.com

y muchos mas de ahi para arriba... :sho:

Ayuda!, alguien sabe que puede ser? Como lo arreglo? La verdad soy muuuuy novato en el Suse
Gracias de antemano

RedDwarf
07-oct-2006, 09:13
Algún motivo para no usar el 2.30?

y muchos mas de ahi para arriba... :sho:
Pues copialos. Concretamente el que interesa es el primero de todos.

novatoSuse
10-oct-2006, 02:58
Pues la verdad los errores comienzan a aparecer bien temprano... y salen muchos, pero al final para en el pedazo que copie.

Voy a buscar el 2.3 a ver si con ese si me sirve.

Cualquier cosa vuelvo y escribo, gracias

novatoSuse
12-oct-2006, 02:30
El ns 2.29 lo instalaba con el comando ./install
pero en el ns 2.30 (http://nchc.dl.sourceforge.net/sourceforge/nsnam/ns-src-2.30.tar.gz) no veo ese archivo install como hago para instalarlo?

que pena preguntar cosas tan triviales.

----------------------------------------------

Por otro lado los primeros errores que saca al tratar de instalar el ns 2.29 son los siguientes:

aulas@ingen289:~/NS/ns-allinone-2.29> ./install
================================================== ==========
* Testing for Cygwin environment
================================================== ==========
Cygwin not detected, proceeding with regular install.
================================================== ==========
* Build XGraph-12.1
================================================== ==========
loading cache ./config.cache
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking if malloc debugging is wanted... no
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for X... (cached) no
checking for float.h... (cached) yes
checking for limits.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for unistd.h... (cached) yes
checking for strcasecmp... (cached) yes
creating ./config.status
creating Makefile
creating autoconf.h
autoconf.h is unchanged
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -c xgraph.c
In file included from xgraph.c:32:
xgraph.h:10:21: error: X11/Xos.h: No existe el fichero o el directorio
xgraph.h:11:22: error: X11/Xlib.h: No existe el fichero o el directorio
xgraph.h:12:23: error: X11/Xutil.h: No existe el fichero o el directorio
xgraph.h:13:28: error: X11/cursorfont.h: No existe el fichero o el directorio
In file included from xgraph.c:32:
xgraph.h:138: error: syntax error before ‘*’ token
xgraph.h:138: warning: data definition has no type or storage class
xgraph.h:139: error: syntax error before ‘*’ token
xgraph.h:139: warning: data definition has no type or storage class
xgraph.h:140: error: syntax error before ‘cmap’
xgraph.h:140: warning: data definition has no type or storage class
xgraph.h:177: error: syntax error before ‘Window’
xgraph.h:177: warning: no semicolon at end of struct or union
xgraph.h:179: warning: data definition has no type or storage class
xgraph.h:180: error: syntax error before ‘rewind’
xgraph.h:180: error: ‘rewind’ redeclared as different kind of symbol
/usr/include/stdio.h:655: error: previous declaration of ‘rewind’ was here
xgraph.h:180: warning: data definition has no type or storage class
xgraph.h:181: error: syntax error before ‘replot’
xgraph.h:181: warning: data definition has no type or storage class
xgraph.h:182: error: syntax error before ‘deriv’
xgraph.h:182: warning: data definition has no type or storage class
xgraph.h:185: error: syntax error before ‘}’ token
xgraph.h:185: warning: data definition has no type or storage class
xgraph.h:188: error: syntax error before ‘*’ token
xgraph.h:188: warning: data definition has no type or storage class
In file included from xgraph.c:33:
xtb.h:32: error: syntax error before ‘Window’
xtb.h:32: warning: no semicolon at end of struct or union
xtb.h:37: error: syntax error before ‘}’ token
xtb.h:37: warning: data definition has no type or storage class
xtb.h:39: error: syntax error before ‘*’ token
xtb.h:49: error: syntax error before ‘win’
xtb.h:49: error: syntax error before ‘*’ token
xtb.h:49: error: ‘xtb_register’ declared as function returning a function
xtb.h:49: error: ‘xtb_data’ redeclared as different kind of symbol
xtb.h:22: error: previous declaration of ‘xtb_data’ was here
xtb.h:49: error: syntax error before ‘info’
xtb.h:54: error: syntax error before ‘xtb_lookup’
xtb.h:54: error: syntax error before ‘win’
xtb.h:54: warning: data definition has no type or storage class
xtb.h:57: error: syntax error before ‘*’ token
xtb.h:60: error: syntax error before ‘win’
xtb.h:67: error: syntax error before ‘win’
xtb.h:67: error: syntax error before ‘win’
xtb.h:67: error: ‘xtb_bt_new’ declared as function returning a function
xtb.h:67: error: syntax error before ‘val’
xtb.h:74: error: syntax error before ‘win’
xtb.h:76: error: syntax error before ‘win’
xtb.h:78: error: syntax error before ‘win’
xtb.h:85: error: syntax error before ‘win’
xtb.h:85: error: syntax error before ‘win’
xtb.h:85: error: ‘xtb_br_new’ declared as function returning a function
xtb.h:85: error: syntax error before ‘val’
xtb.h:92: error: syntax error before ‘win’
xtb.h:94: error: syntax error before ‘win’
xtb.h:101: error: syntax error before ‘win’
xtb.h:104: error: syntax error before ‘win’
xtb.h:112: error: syntax error before ‘win’
xtb.h:112: error: syntax error before ‘win’
xtb.h:112: error: ‘xtb_ti_new’ declared as function returning a function
xtb.h:112: error: syntax error before ‘val’
xtb.h:118: error: syntax error before ‘win’
xtb.h:120: error: syntax error before ‘win’
xtb.h:122: error: syntax error before ‘win’
xtb.h:124: error: syntax error before ‘win’
xtb.h:126: error: syntax error before ‘win’
xtb.h:133: error: syntax error before ‘win’
xtb.h:136: error: syntax error before ‘win’
xtb.h:158: error: syntax error before ‘xtb_frame’
xtb.h:158: warning: no semicolon at end of struct or union
xtb.h:159: warning: data definition has no type or storage class
xtb.h:173: error: syntax error before ‘xtb_fmt_widget’
xtb.h:173: warning: no semicolon at end of struct or union
xtb.h:175: error: syntax error before ‘}’ token
xtb.h:175: warning: data definition has no type or storage class
xtb.h:179: error: syntax error before ‘*’ token
xtb.h:179: error: syntax error before ‘*’ token
xtb.h:179: warning: data definition has no type or storage class
xtb.h:181: error: syntax error before ‘*’ token
xtb.h:181: warning: data definition has no type or storage class
xtb.h:183: error: syntax error before ‘*’ token
xtb.h:183: warning: data definition has no type or storage class
xtb.h:185: error: syntax error before ‘*’ token
xtb.h:185: error: syntax error before ‘*’ token
xtb.h:185: warning: data definition has no type or storage class
xtb.h:187: error: syntax error before ‘xtb_frame’
xtb.h:189: error: syntax error before ‘*’ token
In file included from xgraph.c:35:
params.h:33: error: syntax error before ‘XColor’
params.h:33: warning: no semicolon at end of struct or union
params.h:34: warning: data definition has no type or storage class
params.h:38: error: syntax error before ‘XFontStruct’
params.h:38: warning: no semicolon at end of struct or union
params.h:39: warning: data definition has no type or storage class
params.h:61: error: syntax error before ‘param_pix’
params.h:61: warning: no semicolon at end of struct or union
params.h:62: warning: data definition has no type or storage class
params.h:66: error: syntax error before ‘}’ token
params.h:66: warning: data definition has no type or storage class
params.h:68: error: syntax error before ‘*’ token
params.h:71: error: syntax error before ‘*’ token
params.h:71: error: syntax error before ‘params’
params.h:71: warning: data definition has no type or storage class
params.h:81: error: syntax error before ‘param_temp’
params.h:82: warning: data definition has no type or storage class
params.h:83: error: syntax error before ‘param_null_color’
params.h:83: warning: data definition has no type or storage class
xgraph.c:55: error: syntax error before ‘*’ token
xgraph.c:55: warning: data definition has no type or storage class
xgraph.c:63: error: syntax error before ‘win_context’
xgraph.c:63: error: ‘XContext’ undeclared here (not in a function)
xgraph.c:63: error: syntax error before numeric constant
xgraph.c:67: warning: data definition has no type or storage class
xgraph.c:68: error: syntax error before ‘*’ token
xgraph.c:68: warning: data definition has no type or storage class
xgraph.c:69: error: syntax error before ‘cmap’
xgraph.c:69: warning: data definition has no type or storage class
xgraph.c: In function ‘main’:
xgraph.c:92: error: ‘Window’ undeclared (first use in this function)
xgraph.c:92: error: (Each undeclared identifier is reported only once
xgraph.c:92: error: for each function it appears in.)
xgraph.c:92: error: syntax error before ‘primary’
xgraph.c:94: error: ‘XEvent’ undeclared (first use in this function)
xgraph.c:95: error: ‘win_info’ undeclared (first use in this function)
xgraph.c:96: error: ‘Cursor’ undeclared (first use in this function)
xgraph.c:96: error: syntax error before ‘zoomCursor’
xgraph.c:98: error: ‘XColor’ undeclared (first use in this function)
xgraph.c:98: error: syntax error before ‘fg_color’
xgraph.c:115: warning: assignment makes pointer from integer without a cast
xgraph.c:129: error: request for member ‘intv’ in something not a structure or u
nion
xgraph.c:161: error: request for member ‘boolv’ in something not a structure or
union
xgraph.c:168: error: ‘XSegment’ undeclared (first use in this function)
xgraph.c:168: error: syntax error before ‘)’ token
xgraph.c:169: error: syntax error before ‘)’ token
xgraph.c:172: error: request for member ‘boolv’ in something not a structure or
union
xgraph.c:175: error: request for member ‘boolv’ in something not a structure or
union
xgraph.c:176: error: request for member ‘intv’ in something not a structure or u
nion
xgraph.c:183: error: request for member ‘boolv’ in something not a structure or
union
xgraph.c:185: error: request for member ‘boolv’ in something not a structure or
union
xgraph.c:187: error: request for member ‘boolv’ in something not a structure or
union
xgraph.c:189: error: request for member ‘boolv’ in something not a structure or
union
xgraph.c:191: error: request for member ‘boolv’ in something not a structure or
union
xgraph.c:196: error: request for member ‘boolv’ in something not a structure or
union
xgraph.c:199: error: request for member ‘dblv’ in something not a structure or u
nion
xgraph.c:200: error: request for member ‘dblv’ in something not a structure or u
nion
xgraph.c:201: error: request for member ‘dblv’ in something not a structure or u
nion
xgraph.c:209: error: request for member ‘intv’ in something not a structure or u
nion
xgraph.c:213: error: request for member ‘pixv’ in something not a structure or u
nion
xgraph.c:213: error: request for member ‘pixv’ in something not a structure or u
nion
xgraph.c:214: error: request for member ‘fontv’ in something not a structure or
union
xgraph.c:214: error: ‘XFontStruct’ undeclared (first use in this function)
xgraph.c:214: error: syntax error before ‘)’ token
xgraph.c:216: error: ‘primary’ undeclared (first use in this function)
xgraph.c:217: error: request for member ‘dblv’ in something not a structure or u
nion
xgraph.c:217: error: request for member ‘dblv’ in something not a structure or u
nion
xgraph.c:218: error: request for member ‘dblv’ in something not a structure or u
nion
xgraph.c:218: error: request for member ‘dblv’ in something not a structure or u
nion
xgraph.c:225: error: ‘zoomCursor’ undeclared (first use in this function)
xgraph.c:225: error: ‘XC_sizing’ undeclared (first use in this function)
xgraph.c:226: error: ‘fg_color’ undeclared (first use in this function)
xgraph.c:226: error: request for member ‘pixv’ in something not a structure or u
nion
xgraph.c:227: error: ‘bg_color’ undeclared (first use in this function)
xgraph.c:227: error: request for member ‘pixv’ in something not a structure or u
nion
xgraph.c:232: error: ‘theEvent’ undeclared (first use in this function)
xgraph.c:242: error: ‘Expose’ undeclared (first use in this function)
xgraph.c:244: error: ‘XWindowAttributes’ undeclared (first use in this function)
xgraph.c:244: error: syntax error before ‘win_attr’
xgraph.c:246: error: ‘win_attr’ undeclared (first use in this function)
xgraph.c:254: error: ‘KeyPress’ undeclared (first use in this function)
xgraph.c:256: error: ‘KeySym’ undeclared (first use in this function)
xgraph.c:256: error: syntax error before ‘)’ token
xgraph.c:271: error: ‘ButtonPress’ undeclared (first use in this function)
xgraph.c:285: error: request for member ‘intv’ in something not a structure or u
nion
xgraph.c:286: error: request for member ‘strv’ in something not a structure or u
nion
xgraph.c:289: error: request for member ‘dblv’ in something not a structure or u
nion
xgraph.c:289: error: request for member ‘dblv’ in something not a structure or u
nion
xgraph.c:290: error: request for member ‘dblv’ in something not a structure or u
nion
xgraph.c:290: error: request for member ‘dblv’ in something not a structure or u
nion
xgraph.c:295: error: request for member ‘strv’ in something not a structure or u
nion
xgraph.c:300: error: request for member ‘boolv’ in something not a structure or
union
xgraph.c: In function ‘ReversePix’:
xgraph.c:319: error: syntax error before ‘val’
xgraph.c:321: error: ‘val’ undeclared (first use in this function)
xgraph.c: At top level:
xgraph.c:499: error: syntax error before ‘Window’
xgraph.c:499: warning: data definition has no type or storage class
xgraph.c:507: error: syntax error before ‘{’ token
xgraph.c:509: warning: data definition has no type or storage class
xgraph.c:511: error: syntax error before numeric constant
xgraph.c:515: error: syntax error before numeric constant
xgraph.c:527: error: syntax error before ‘Window’
xgraph.c:527: warning: data definition has no type or storage class
xgraph.c:536: error: syntax error before ‘{’ token
xgraph.c:538: warning: data definition has no type or storage class
xgraph.c:540: error: syntax error before numeric constant
xgraph.c:543: warning: parameter names (without types) in function declaration
xgraph.c:543: warning: data definition has no type or storage class
xgraph.c:544: error: syntax error before ‘->’ token
xgraph.c:546: error: syntax error before numeric constant
xgraph.c:554: error: syntax error before ‘Window’
xgraph.c:554: warning: data definition has no type or storage class
...
y de ahi para abajo sigue mas instalacion y mas errores...

saben que esta pasando?

RedDwarf
12-oct-2006, 10:07
El ns yo solo lo vi de reojo cuando otra persona tuvo problemas al instalarlo, así que no se que decirte sobre lo de "./install". El procedimiento estándar es un ./configure && make && make install, pero si el ns usa cualquier otra cosa en principio debe explicarlo en un archivo README, INSTALL...

Sobre el fallo al compilar, instala el paquete xorg-x11-devel. Como lo he sabido? Pues es cuestión de acostumbrarse a estas cosas: los archivos ".h" están en los rpm "-devel", y el "X11" decía el resto.

Por otro lado no recuerdo que viene exactamente en el "allinone", pero tal vez tengas suficiente con el ns a secas. Por ejemplo, el tk8.4.11 que se veía en tu primer mensaje... Suse 10.1 ya viene con tk8.4.12.