On Sat, Oct 17, 2009 at 12:00:21AM +0530, nitin chandra wrote:

> How do i know which tclsh is correct?

One thing that would help to know is to check whether your tclsh is in
fact built with thread support or not.  I'm not actually sure what the
best way is to do that; perhaps Tcl has some command to tell you that
directly, but if so I don't know it.  However, this will probably
answer that question:

$ ldd /usr/bin/tclsh8.4
  linux-gate.so.1 =>  (0xb7f93000)
  libtcl8.4.so.0 => /usr/lib/libtcl8.4.so.0 (0xb7ec7000)
  libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7ec3000)
  libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7ea9000)
  libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7e83000)
  libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7d20000)
  /lib/ld-linux.so.2 (0xb7f94000)

Note the "libpthread.so".  That means that this particular tclsh
binary is liked against the system pthread library, which strongly
implies that this tclsh was built multi-threaded.

Remember that you may have multiple Tcl binaries and libraries
installed on your box, you need to make sure you are building
AOLserver against the correct one.  In older (4.0.x and earlier)
versions of AOLserver, you'd do that with a configure option of
"--with-tcl=/usr/lib/tcl8.4" or the like.  The newer 4.5.x AOLserver
build system might require something slightly different, but it should
be in the install instructions.

-- 
Andrew Piskorski <[email protected]>
http://www.piskorski.com/


--
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