From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 73436 invoked by alias); 12 Mar 2015 11:28:30 -0000 Mailing-List: contact insight-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sourceware.org Received: (qmail 49779 invoked by uid 89); 12 Mar 2015 11:21:00 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-HELO: rtits2.realtek.com.tw Received: from rtits2.realtek.com (HELO rtits2.realtek.com.tw) (60.250.210.242) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 12 Mar 2015 11:21:00 +0000 X-SpamFilter-By: BOX Solutions SpamTrap 5.52 with qID t2C3r2xE006109, This message is accepted by code: ctloc85258 Received: from rsex2.realsil.com.cn (rsn1.realsil.com.cn[172.29.17.3](maybeforged)) by rtits2.realtek.com.tw (8.14.9/2.40/5.64) with ESMTP id t2C3r2xE006109 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Thu, 12 Mar 2015 11:53:04 +0800 Received: from RSEX2.realsil.com.cn ([::1]) by rsex2.realsil.com.cn ([::1]) with mapi id 14.03.0195.001; Thu, 12 Mar 2015 11:53:03 +0800 From: Robert Bu To: Patrick Monnerat , "insight@sourceware.org" Subject: RE: itcl in insight Date: Fri, 13 Mar 2015 02:05:00 -0000 Message-ID: <0BA358A6A1AD484EA0BECE9A36AA31754609364A@rsex2.realsil.com.cn> References: <0BA358A6A1AD484EA0BECE9A36AA317546093250@rsex2.realsil.com.cn> <201503120059.t2C0xULO031966@rtits1.realtek.com> In-Reply-To: <201503120059.t2C0xULO031966@rtits1.realtek.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-SW-Source: 2015-q1/txt/msg00013.txt.bz2 Message-ID: <20150313020500.P_4-92Hq4k0W54OQUZuw-0hmUE7q1j657ag1Ck_4TaY@z> 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:Patrick.Monnerat@datasphere.ch]=20 Sent: Wednesday, March 11, 2015 9:34 PM To: Robert Bu; insight@sourceware.org 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