[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NS installation and configuration question



On FreeBSD tcl/tk are installed under different directories under
/usr/local/{include,lib} so ns will not mess up versions. It's unclear
what's your case, but you can always check tcl version by typing 'set
tcl_version' inside ns. Note ns does not need tk. 

- Haobo

On Fri, 14 Jan 2000, Huiwen Li wrote:

> Hi, all,
> 
> I just noticed this problem although I have installed ns for several months.
> In my machine, there is an old version of Tcl and Tk, which is version7.4.
> At that time I installed the allinone package. So I didn't do much
> configuration. I found although install script was configured to use the
> right version under /ns-allinone-2.1b5, under the ns-2.1b5 directory,
> configure file was using the older version, because prefix is detected to be
> /usr/local/bin which includes the older version. I am wondering which one is
> ns exactly using? Should I recompile ns separately by configure it with
> ./configure --with-tcl=.....? Or should I define some path in my .cshrc
> file? When I type "which tclsh" it showed me both these versions with the
> newer one first, but when I type "info tclversion" it showed me 8.0. I am
> really confused. 
> 
> How to explain the Makefile for ns-2.1b5 then? It is as follows:
> 	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 	#
> 	# Various configurable paths (remember to edit Makefile.in, not
> Makefile)
> 	#
> 
> 	# Top level hierarchy
> 	prefix	= /usr/local
> 	# Pathname of directory to install the binary
> 	BINDEST	= /usr/local/bin
> 	# Pathname of directory to install the man page
> 	MANDEST	= /usr/local/man
> 
> 	BLANK	= # make a blank space.  DO NOT add anything to this line
> 
> 	# The following will be redefined under Windows (see WIN32 lable
> below)
> 	CC	= gcc
> 	CPP	= c++
> 	LINK	= $(CPP)
> 	MKDEP	= ./conf/mkdep
> 	TCLSH	= /usr/local/bin/tclsh
> 	TCL2C	= ../tclcl-1.0b8/tcl2c++
> 	AR	= ar rc $(BLANK)
> 
> 	RANLIB	= ranlib
> 	INSTALL	= /mod/gnu/bin/install -c
> 	LN	= ln
> 	TEST	= test
> 	RM	= rm -f
> 	PERL	= /usr/local/bin/perl
> 
> 
> 	CCOPT	= 
> 	STATIC	= 
> 	LDFLAGS	= $(STATIC)
> 	LDOUT	= -o $(BLANK)
> 
> 	DEFINE	= -DNO_TK -DTCLCL_CLASSINSTVAR  -DNDEBUG -mv8 -msupersparc
> -D__svr4__ -DUSE_SHM -DHAVE_LIBTCLCL1_0B8 -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A4
> -DHAVE_OTCL_H -DHAVE_LIBTK8_0 -DHAVE_TK_H -DHAVE_LIBTCL8_0 -DHAVE_TCL_H
> -DHAVE_CONFIG_H
> 
> 	INCLUDES = \
> 		-I.  \
> 		-I../tclcl-1.0b8 -I../otcl-1.0a4
> -I/var/PACKAGE/ns-allinone-2.1b5/ns-2.1b5/../tk8.0.4/generic
> -I../tcl8.0.4/generic 
> 
> 	LIB	= \
> 		-R../tclcl-1.0b8 -L../tclcl-1.0b8 -ltclcl -R../otcl-1.0a4
> -L../otcl-1.0a4 -lotcl
> -R/var/PACKAGE/ns-allinone-2.1b5/ns-2.1b5/../tk8.0.4/unix
> -L/var/PACKAGE/ns-allinone-2.1b5/ns-2.1b5/../tk8.0.4/unix -ltk8.0
> -R../tcl8.0.4/unix -L../tcl8.0.4/unix -ltcl8.0  \
> 		-lXext -lX11 \
> 		 -lsocket -lnsl -lintl -ldl -ldl \
> 		-lm -ldl 
> 	#	-L${exec_prefix}/lib \
> 
> 	CFLAGS	= $(CCOPT) $(DEFINE)
> 	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> 	Thank you for your time. I really appreciate any clarification.
> 
> 	Huiwen
> 
>