[ns]Problem by nam-1.9 and xgraph-12.1(ns-allinone-2.26)
musta fatu
merci_danke at yahoo.de
Sun Jul 3 13:13:51 PDT 2005
Hi all,
who knows the solution the following problems?
after to run my script tcl,I get the error:
for nam:
--------
ns: stop: couldn't execute "nam": no such file or
directory
while executing
"exec nam $opt(namfile) &"
(procedure "stop" line 12)
invoked from within
"stop"
for xgraph:
-----------
ns: finish: couldn't execute "xgraph": no such file or
directory
while executing
"exec xgraph out(0).tr out(1).tr out(2).tr out(3).tr
-geometry 800x400 &"
(procedure "finish" line 8)
invoked from within
"finish"
>>I installed nam-1.7 , xgraph-12.1 and get the
following message:
nam-1.9
barca at linux:~/ns-allinone-2.26/nam-1.9> ./configure
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler...
yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none
needed
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
No .configure file found in current directory
Continuing with default options...
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler...
(cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached)
none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler...
yes
checking whether g++ accepts -g... yes
checking for ANSI C header files... (cached) yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for string.h... (cached) yes
checking for main in -lXbsd... no
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... yes
checking for dcgettext in -lintl... no
checking for getnodebyname in -ldnet_stub... no
checking that g++ can handle -O2... no
checking for zlib.h... -I/usr/include
checking for libz1.1.3... -L/usr/lib -lz
checking for X11 header files
checking for X11 library archive
checking for XOpenDisplay in -lX11... no
checking for libXext.a
checking for tcl.h... -I../include
checking for libtcl8.3... -L../lib -ltcl8.3
checking for init.tcl... ../lib/tcl8.3
checking for tclsh8.3.2... no
checking for tclsh8.3... ../bin/tclsh8.3
checking for tk.h... -I../include
checking for libtk8.3... -L../lib -ltk8.3
checking for tk.tcl... ../lib/tk8.3
checking for libtcldbg... no
checking for otcl.h... -I../otcl-1.0a8
checking for libotcl1.0a8... -L../otcl-1.0a8 -lotcl
checking for tclcl.h... -I../tclcl-1.0b13
checking for libtclcl... -L../tclcl-1.0b13 -ltclcl
checking for tcl2c++... ../tclcl-1.0b13
checking return type of random... long
checking for int8_t... yes
checking for int16_t... yes
checking for int32_t... yes
checking for u_int8_t... yes
checking for u_int16_t... yes
checking for u_int32_t... yes
checking for strtoq... yes
checking for strtoll... yes
checking for long... yes
checking size of long... 4
checking for __int64_t... no
checking for long long... yes
checking for int64_t... yes
checking which kind of 64-bit int to use... int64_t
checking for snprintf... yes
No explicit static compilation flag; setting V_STATIC
to ""
checking for dlopen in -ldl... yes
checking for a BSD-compatible install...
/usr/bin/install -c
configure: creating ./config.status
config.status: creating Makefile
config.status: creating autoconf.h
config.status: autoconf.h is unchanged
barca at linux:~/ns-allinone-2.26/nam-1.9> make
rm -f nam
g++ -o nam \
tkcompat.o tkUnixInit.o xwd.o netview.o
netmodel.o edge.o packet.o node.o main.o trace.o
queue.o drop.o animation.o agent.o feature.o route.o
transform.o paint.o state.o monitor.o anetmodel.o
random.o rng.o view.o graphview.o netgraph.o
tracehook.o lan.o psview.o group.o editview.o tag.o
address.o animator.o wnetmodel.o nam_stream.o
enetmodel.o testview.o parser.o trafficsource.o
lossmodel.o queuehandle.o gen/version.o gen/nam_tcl.o
-L/home/ns-allinone-2.26/tclcl-1.0b13 -ltclcl
-L/home/ns-allinone-2.26/otcl-1.0a8 -lotcl
-L/home/ns-allinone-2.26/lib -ltk8.3
-L/home/jafour/ns-allinone-2.26/lib -ltcl8.3
-L/usr/lib -lz -L/usr/X11R6/lib -lXext -lX11 -lnsl
-ldl -lm
/home/ns-allinone-2.26/lib/libtcl8.3.a(tclUnixPipe.o)(.text+0xdd):
In function `TclpCreateTempFile':
: the use of `tmpnam' is dangerous, better use
`mkstemp'
main.o(.text+0x574): In function `cmd_version(void*,
Tcl_Interp*, int, char**)':
: undefined reference to `version'
collect2: ld returned 1 exit status
make: *** [nam] Fehler 1
barca at linux:~/ns-allinone-2.26/nam-1.9>
xgraph-12.1
barca at linux:~/ns-allinone-2.26> cd xgraph-12.1
barca at linux:~/ns-allinone-2.26/xgraph-12.1>
./configure
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... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
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) libraries /usr/X11R6/lib,
headers /usr/X11R6/include
checking for dnet_ntoa in -ldnet... (cached) no
checking for dnet_ntoa in -ldnet_stub... (cached) no
checking for gethostbyname... (cached) yes
checking for connect... (cached) yes
checking for remove... (cached) yes
checking for shmat... (cached) yes
checking for IceConnectionNumber in -lICE... (cached)
yes
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
barca at linux:~/ns-allinone-2.26/xgraph-12.1> make
barca at linux:~/ns-allinone-2.26/xgraph-12.1>
kinf regards
___________________________________________________________
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de
More information about the Ns-users
mailing list