Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to install tcl in linux

Status
Not open for further replies.

donglg

Programmer
Feb 18, 2003
2
SG
I am installing ActiveTcl 8.4.* in redhat linux 6.2. Before installation, there is already Tcl 8.0.*.in redhat linux 6.2. According to the instruction of ActiveTcl, I first extract the tar.gz file, then run ./install.sh. The ActiveTcl can be successfully installed in /usr/local (default) or other directory. Finally we set the path in .bash_profile file.
However I cannot use new tcl!!!!
1. when I execute "whereis tcl", the output is still old verions of tcl. The new version of tcl cannot be found. To my surprise, there is not the file called "tcl" in the ActiveTcl.
2. I install Tcl 8.4.* for using OpenCV software, which require the tcl>=8.3. When I install OpenCV, I am told that the version of tcl is still 8.0.*.

Who can help me? thanks
 
By default active tcl installs to /usr/local/ActiveTclxxx
Change to this directory and remove or rename your old
tclsh and wish binaries.
ex:rm /usr/bin/wish or mv /usr/bin/wish /usr/bin/wish.old

cd to the bin subdir in the ActiveTcl directory and do
something like
ln -s $PWD/wish /usr/bin/wish
ln -s $PWD/tclsh /usr/bin/tclsh

That's all there is to it really.
 
Thank you. I have executed the following
ln -s $PWD/wish /usr/bin/wish
ln -s $PWD/tclsh /usr/bin/tclsh

New wish and tchsh are built, however the problem still exist.

I checked "configure.in" of OpenCV and found the following

if test $TCL_MAJOR_VERSION -lt 8 -o $TCL_MINOR_VERSION -lt 3; then
AC_MSG_ERROR( You need tcl>=8.3 and you have $TCL_VERSION)
fi

I do not know where $TCL_VERSION come from, otherwise I can set it.
 
If you removed your old binaries and properly linked
ActiveTcl's tclsh and/or wish there should be no issue
now.
From a tclsh prompt type info tclversion.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top