On Fri, Oct 16, 2009 at 11:30 AM, nitin chandra <[email protected]> wrote:
> trying out TCLSH= . How do i set TCLSH? ....and should i give commands like
>
> # TCLSH=./configure --prefix=/opt/aolserver451 --with-tcl=/usr/lib
> --enable-threads | tee\  aol451_config.log
>
> and then
>
> # TCLSH=make | tee aol451_make.log
>
> #TCLSH=make install | tee aol451_install.log

the TCLSH environment var needs to be the full path plus executable.

Assume you install Tcl with --prefix=/web/tnt

Then I install AOLserver in, say /web/tnt, here is what I use:

$ make TCLSH=/web/tnt/bin/tclsh8.4
$ make TCLSH=/web/tnt/bin/tclsh8.4 install
...

or

$ ./configure TCHSH=/web/bin/tclsh8.4

or

$ /web/bin/tclsh8.4 nsconfig.tcl

But I usually create a new configure file called my-configure:

#!/bin/bash
export TCLSH=/web/tnt/bin/tclsh8.4

./configure --prefix=/web/tnt \
 --with-tcl=/web/tnt/lib \
 --enable-threads \
 --enable-shared \
 --enable-debug

The problem with nsconfig.tcl is it assumes you are installing in the
Tcl prefix. This is a good idea, it is best to keep your AOLserver and
Tcl installs combined, so you can maintain the Tcl setup for that
specific AOLserver.

Once you do nsconfig.tcl, you must use the TCLSH on each command line,
or export the var, as I did in the my-configure script.  Also, when
you do a "make clean", you also need the TCLSH var set.

tom jackson


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to 
<[email protected]> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.

Reply via email to