RE: itcl in insight

Robert Bu <[email protected]> Thu, 12 Mar 2015 03:53:01 +0000
Newsgroups gmane.comp.debugging.insight
Message-ID <[email protected]>
Hi Patrick,

RHEL has no pre-built package for itcl.
I installed itcl3.4 by "configure; make all; make install". But tcl cannot =
find it.  I tried to modify tclConfig.sh to tell tcl the package path of it=
cl. It fails.
Finally, I added the package loading script to tk/pkgIndex as following. Th=
en everything works fine. Thank you for your help.

# Robert: cannot tell tcl the path of itcl. So I add it here
if {![package vsatisfies [package present Tcl] 8.5]} {return}
package ifneeded Itcl 3.4 [list load [file join $dir .. itcl3.4 "libitcl3.4=
.so"] Itcl]

package ifneeded Itk 3.4 [list load [file join $dir .. itk3.4 "libitk3.4.so=
"] Itk]

package ifneeded Iwidgets 4.0.0 [list source [file join $dir .. iwidgets4.0=
.0 iwidgets.tcl]]

Best regards.
Robert Bu
=20
-----Original Message-----
From: Patrick Monnerat [mailto:[email protected]]=20
Sent: Wednesday, March 11, 2015 9:34 PM
To: Robert Bu; [email protected]
Subject: RE: itcl in insight

=20
Robert Bu wrote:
> Hi,
Hi Robert,

> I checked the config log in bundle/libgui. The configure script
checked for tcl, tk. However, it seems that it does not check for itcl.

Insight does not need itcl/itk development files at compile time anymore. T=
hus they are not checked. However you must have the runtime files installed=
 at execution time.

> Build and install is OK here on Redhat Enterprise 6.3 (RHEL-6.3,
x86_64). When I run insight, it complains:
> "Error: can't find package itcl 3.3"

> I tried to install itcl 3.3. It is a quite old version and does not
compile with my TCL (8.5.7). So I installed itcl 3.4.1. Can I tell insight =
to use my itcl 3.4.1?

The "3.3" is now only the lower version you need. Since Feb 16, insight is =
more tolerant about versions and package name spellings. If you have git-pu=
lled it recently, it can only be a path problem, not under control of insig=
ht.

Try:
$ wish
% package require itcl
...     <-- here you have either an error or the itcl installed version.
% package require Itcl
...     <-- here you have either an error or the Itcl installed version.

If both fail, this is definitely a path problem in one of tcl or itcl RHEL =
package.

Patrick