Training, Open Source computer languages
PerlPHPPythonMySQLApache / TomcatTclRubyJavaC and C++LinuxCSS 
Search for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
 
20.9.2014 - We have just updated our course layouts and descriptions and added our 2015 schedule.

Issues installing 8.4 with pthread enabled

Posted by dibya.jyoti (dibya.jyoti), 5 September 2007
Hi,
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.
4. make
5. make test
6. make install

In my tcl script whenever I give "package require Thread" , it gives me ::
can't find package Thread
while executing
"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 2007
Hi,
It will be really helpful if someone reply for this issue.

Thanks and regards,
-jyoti

Posted by admin (Graham Ellis), 6 September 2007
on 09/06/07 at 12:42:23, dibya.jyoti wrote:
Hi,
It will be really helpful if someone reply for this issue.

Thanks and regards,
-jyoti


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.

Thanks!

Posted by dibya.jyoti (dibya.jyoti), 7 September 2007
Hi 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.
1.cd /usr/local/src/tcl8.4.15<...>/unix
./configure --enable-threads --enable-gcc
2. make
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
4. make
5. make install

How to verify thread is available ?

/usr/local/bin/tclsh8.4
% package require Thread
2.6.5

If there is any issue then it will say : can't find package Thread

Thanks,
-jyoti.

Posted by admin (Graham Ellis), 7 September 2007
Thanks for that follow up ... it makes the thread more useful for anyone else who comes this way.

-- Graham



This page is a thread posted to the opentalk forum at www.opentalk.org.uk and archived here for reference. To jump to the archive index please follow this link.

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2014: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 899360 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho