Issues installing 8.4 with pthread enabled
Posted by dibya.jyoti (dibya.jyoti), 5 September 2007Hi,
I am trying to install tcl8.4.15 with --enable-pthreads on Debian. I did follwing steps :
1. downloaded from http://prdownloads.sourceforge.net/tcl/tcl8.4.15-src.tar.gz
2. copied to /usr/local/src
3. untared and run /usr/local/src/tcl8.4.15/unix/configure --enable-pthreads.
5. make test
6. make install
In my tcl script whenever I give "package require Thread" , it gives me ::
can't find package Thread
"package require Thread"
(file "./sample.tcl" line 2)
Please help me to install tcl8.4 with thread enabled.
Posted by dibya.jyoti (dibya.jyoti), 6 September 2007Hi,
It will be really helpful if someone reply for this issue.
Thanks and regards,
Posted by admin (Graham Ellis), 6 September 2007on 09/06/07 at 12:42:23, dibya.jyoti wrote:
All I can say, I'm afraid, is "I don't know"
We get a certain proportion of questions that are so specific that very few people indeed can help ,,, and this is one of them. Your best approach might be a Debian Mailing list if the issue is debian specific, or an approach to the people who look after the pthreads module - you should find contact details in the source. But do check for comments about the problem in the source first, and research it thoroughly - typically such developers love INTERESTING questions but get pretty cheese off about questiosn that aren't properly researched, or where the writer demands an answer.
If you get it sorted, Jyoti, please come vback here and tell us what the answer was.
Posted by dibya.jyoti (dibya.jyoti), 7 September 2007Hi Graham,
Finally I am able to do that on my Debian 2.6.18-5-686. Here is the steps for that. Now I am going to try threading with TCL. Like how to reload 20 routers parallely without wasting time for each router to complete the reloading. All the thread will continue to reload each routers separately.
Here is steps to get the Thread enabled for TCL.
Thread package :: http://downloads.sourceforge.net/tcl/thread2.6.5.tar.gz?modtime=1160221454&big_mirror=1
TCL 8.4.15 :: http://prdownloads.sourceforge.net/tcl/tcl8.4.15-src.tar.gz
Steps :: First compile TCL 8.4.15 with threading support.
Copy the tar.gz into /usr/local/src and untar it.
./configure --enable-threads --enable-gcc
3. make install
Then compile and install Thread patch :
1. copy the tar.gz into /usr/local/src/
2. untar it.
3. ./configure --enable-pthreads
5. make install
How to verify thread is available ?
% package require Thread
If there is any issue then it will say : can't find package Thread
Posted by admin (Graham Ellis), 7 September 2007Thanks for that follow up ... it makes the thread more useful for anyone else who comes this way.
PH: 01144 1225 708225 • FAX: 01144 1225 899360 • EMAIL: email@example.com • WEB: http://www.wellho.net • SKYPE: wellho