Forum » Programska oprema » Cnet "network simulator"
Cnet "network simulator"
urbecar ::
Že dobre 3 dni se trudim ištalirat Cnet. Probal sem na večih različnih distribucijah (pingo x.x oz FC2, najnovejši pingo oz. FC3, ter ubuntu). Pomagal sem si z temi in tem navodilom. Najbrž ni potrebno posebaj povedati da sem še čisto zelen kar se tiče linuxa.
Sedaj pa me zanima če je kdo (Mogoče kaki študent FERI-ja?) ta program že inštaliral. In kako je to naredil?
Sedaj pa me zanima če je kdo (Mogoče kaki študent FERI-ja?) ta program že inštaliral. In kako je to naredil?
urbecar ::
urbecar@um-sd06-p16:~/cnet-2.0.9/src$ locate libtcl
/usr/lib/libtcl8.4.so.0
Torej imam instaliran tcl 8.4, Datoteke libtcl8.4.so pa nimam.
Naredil sem vse kar pise v navodilih, nato pa se tisto kar pise v navodilih za FC. V obeh primerih mi napise ko poynem make tole
-ce v direktoriju cnet-2.0.9
urbecar@um-sd06-p16:~/cnet-2.0.9$ make
(cd src && make)
make[1]: Entering directory `/home/urbecar/cnet-2.0.9/src'
Linux 2.6.10-5-k7
make[2]: Entering directory `/home/urbecar/cnet-2.0.9/src'
gcc -ansi -O -Wall -fPIC -Ilibelf -I/usr/X11R6/include -c applicationlayer.c
make[2]: gcc: Command not found
make[2]: *** [applicationlayer.o] Error 127
make[2]: Leaving directory `/home/urbecar/cnet-2.0.9/src'
make[1]: *** [it] Error 2
make[1]: Leaving directory `/home/urbecar/cnet-2.0.9/src'
make: *** [it] Error 2
-ce v direktoriju cnet-2.0.9/src pa tole
urbecar@um-sd06-p16:~/cnet-2.0.9/src$ make
Linux 2.6.10-5-k7
make[1]: Entering directory `/home/urbecar/cnet-2.0.9/src'
gcc -ansi -O -Wall -fPIC -Ilibelf -I/usr/X11R6/include -c applicationlayer.c
make[1]: gcc: Command not found
make[1]: *** [applicationlayer.o] Error 127
make[1]: Leaving directory `/home/urbecar/cnet-2.0.9/src'
make: *** [it] Error 2
/usr/lib/libtcl8.4.so.0
Torej imam instaliran tcl 8.4, Datoteke libtcl8.4.so pa nimam.
Naredil sem vse kar pise v navodilih, nato pa se tisto kar pise v navodilih za FC. V obeh primerih mi napise ko poynem make tole
-ce v direktoriju cnet-2.0.9
urbecar@um-sd06-p16:~/cnet-2.0.9$ make
(cd src && make)
make[1]: Entering directory `/home/urbecar/cnet-2.0.9/src'
Linux 2.6.10-5-k7
make[2]: Entering directory `/home/urbecar/cnet-2.0.9/src'
gcc -ansi -O -Wall -fPIC -Ilibelf -I/usr/X11R6/include -c applicationlayer.c
make[2]: gcc: Command not found
make[2]: *** [applicationlayer.o] Error 127
make[2]: Leaving directory `/home/urbecar/cnet-2.0.9/src'
make[1]: *** [it] Error 2
make[1]: Leaving directory `/home/urbecar/cnet-2.0.9/src'
make: *** [it] Error 2
-ce v direktoriju cnet-2.0.9/src pa tole
urbecar@um-sd06-p16:~/cnet-2.0.9/src$ make
Linux 2.6.10-5-k7
make[1]: Entering directory `/home/urbecar/cnet-2.0.9/src'
gcc -ansi -O -Wall -fPIC -Ilibelf -I/usr/X11R6/include -c applicationlayer.c
make[1]: gcc: Command not found
make[1]: *** [applicationlayer.o] Error 127
make[1]: Leaving directory `/home/urbecar/cnet-2.0.9/src'
make: *** [it] Error 2
Zgodovina sprememb…
- spremenil: urbecar ()
Gandalfar ::
ce ti na veliko napise da nims compilerja, kaj ce bi si ga instaliral? :)
kaksen gcc paketek pa tko, probi se gor vrzt kar kaksna razvojna orodja
kaksen gcc paketek pa tko, probi se gor vrzt kar kaksna razvojna orodja
Zgodovina sprememb…
- spremenil: Gandalfar ()
urbecar ::
Uh. to je zame ene 10x premalo na velko. No v glavnem Prej sem mel Gori ubuntuja, ampak sem ga zamenjal s FC3, ker se tam vsaj malo znajdem. Spet sem naredil vse kar pise v navodilih, in obstal tule:
[root@URBE cnet-2.0.9]# make
(cd src && make)
make[1]: Entering directory `/home/urbecar/cnet-2.0.9/src'
Linux 2.6.9-1.667
make[2]: Entering directory `/home/urbecar/cnet-2.0.9/src'
gcc -ansi -O -Wall -fPIC -Ilibelf -I/usr/X11R6/include -c parser.c
parser.c: In function `node_defn':
parser.c:423: error: conflicting types for '__CN062'
parser.c:227: error: previous declaration of '__CN062' was here
make[2]: *** [parser.o] Error 1
make[2]: Leaving directory `/home/urbecar/cnet-2.0.9/src'
make[1]: *** [it] Error 2
make[1]: Leaving directory `/home/urbecar/cnet-2.0.9/src'
[root@URBE cnet-2.0.9]# make
(cd src && make)
make[1]: Entering directory `/home/urbecar/cnet-2.0.9/src'
Linux 2.6.9-1.667
make[2]: Entering directory `/home/urbecar/cnet-2.0.9/src'
gcc -ansi -O -Wall -fPIC -Ilibelf -I/usr/X11R6/include -c parser.c
parser.c: In function `node_defn':
parser.c:423: error: conflicting types for '__CN062'
parser.c:227: error: previous declaration of '__CN062' was here
make[2]: *** [parser.o] Error 1
make[2]: Leaving directory `/home/urbecar/cnet-2.0.9/src'
make[1]: *** [it] Error 2
make[1]: Leaving directory `/home/urbecar/cnet-2.0.9/src'
64202 ::
Pojdi v vrstico 423 v src/parser.c in jo zakomentiraj:
/*extern void init_reboot_args(int n, int argc, char **argv);*/
I am NaN, I am a free man!
64202 ::
Lahko bi malo lepse programiral, glede na to, da dajejo gcc-ju flag -ansi
I am NaN, I am a free man!
64202 ::
Meni? gcc 3.4.3 na ubuntuju. Samo je blo treba malo Makefile.linux pohekat, pa poti nastavit (-I /usr/include/tcl8.4 recimo)
I am NaN, I am a free man!
urbecar ::
64202
Ce zakomentiram tisto vrstico (423to) potem mi make pride do konca.
Gandalfar
gcc verzija je:
gcc (GCC) 3.4.3 20050227 (Red Hat 3.4.3-22.fc3)
Ce zakomentiram tisto vrstico (423to) potem mi make pride do konca.
Gandalfar
gcc verzija je:
gcc (GCC) 3.4.3 20050227 (Red Hat 3.4.3-22.fc3)
urbecar ::
Ko zakomentiram tisto vrstico:
- program sicer instalira:
[root@URBE cnet-2.0.9]# make install
(cd src && make)
make[1]: Entering directory `/home/urbecar/cnet-2.0.9/src'
Linux 2.6.11-1.27_FC3
make[2]: Entering directory `/home/urbecar/cnet-2.0.9/src'
make[2]: `cnet' is up to date.
make[2]: Leaving directory `/home/urbecar/cnet-2.0.9/src'
cp cnet ../cnet
make[1]: Leaving directory `/home/urbecar/cnet-2.0.9/src'
cp cnet /usr/local/bin/cnet && chmod 755 /usr/local/bin/cnet
mkdir -p /usr/local/cnetlib && chmod 755 /usr/local/cnetlib
cp cnetlib/* /usr/local/cnetlib && chmod 644 /usr/local/cnetlib/*
cp DOC/cnet.man /usr/local/man/man1/cnet.1 && chmod 644 /usr/local/man/man1/cnet.1
cp: ni mogoče ustvariti navadne datoteke ,/usr/local/man/man1/cnet.1`: No such file or directory
make: *** [install] Error 1
-vendar ko hočem zagnati program:
[root@URBE urbecar]# cnet -m 30 top
cnet: cannot locate "cnet.h"
- program sicer instalira:
[root@URBE cnet-2.0.9]# make install
(cd src && make)
make[1]: Entering directory `/home/urbecar/cnet-2.0.9/src'
Linux 2.6.11-1.27_FC3
make[2]: Entering directory `/home/urbecar/cnet-2.0.9/src'
make[2]: `cnet' is up to date.
make[2]: Leaving directory `/home/urbecar/cnet-2.0.9/src'
cp cnet ../cnet
make[1]: Leaving directory `/home/urbecar/cnet-2.0.9/src'
cp cnet /usr/local/bin/cnet && chmod 755 /usr/local/bin/cnet
mkdir -p /usr/local/cnetlib && chmod 755 /usr/local/cnetlib
cp cnetlib/* /usr/local/cnetlib && chmod 644 /usr/local/cnetlib/*
cp DOC/cnet.man /usr/local/man/man1/cnet.1 && chmod 644 /usr/local/man/man1/cnet.1
cp: ni mogoče ustvariti navadne datoteke ,/usr/local/man/man1/cnet.1`: No such file or directory
make: *** [install] Error 1
-vendar ko hočem zagnati program:
[root@URBE urbecar]# cnet -m 30 top
cnet: cannot locate "cnet.h"
urbecar ::
Naredil vendar je isto,samo pri make install ni več errorja. Se vedno pa mi program napise da ni cnet.h
File cnet.h imam.
[root@URBE cnet-2.0.9]# locate cnet.h
/home/urbecar/cnet-2.0.9/cnet.h
/home/urbecar/cnet-2.0.9/src/cnet.h
/home/urbecar/cnet-2.0.9/cnetlib/cnet.h
/usr/local/cnetlib/cnet.h
/usr/include/linux/if_arcnet.h
.
.
.
bi moral v kak file dodati tole?
INCLUDE = -I/usr/local/cnetlib
File cnet.h imam.
[root@URBE cnet-2.0.9]# locate cnet.h
/home/urbecar/cnet-2.0.9/cnet.h
/home/urbecar/cnet-2.0.9/src/cnet.h
/home/urbecar/cnet-2.0.9/cnetlib/cnet.h
/usr/local/cnetlib/cnet.h
/usr/include/linux/if_arcnet.h
.
.
.
bi moral v kak file dodati tole?
INCLUDE = -I/usr/local/cnetlib
Zgodovina sprememb…
- spremenil: urbecar ()
Vredno ogleda ...
Tema | Ogledi | Zadnje sporočilo | |
---|---|---|---|
Tema | Ogledi | Zadnje sporočilo | |
» | Crosscompiling Gnuradia za RPiOddelek: Operacijski sistemi | 1569 (1415) | poweroff |
» | [Windows]Qt 4.3.0 Open SourceOddelek: Programska oprema | 1455 (1168) | BigWhale |
» | GCC 4.0!Oddelek: Programiranje | 2530 (1774) | 64202 |
» | Problemi s compilanjem v Linux Slackware 9.1Oddelek: Operacijski sistemi | 1877 (1596) | Vesoljc |
» | Linux problemOddelek: Operacijski sistemi | 1132 (948) | dr.J |