TCL/TK linking on Centos 5 to see browser

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

TCL/TK linking on Centos 5 to see browser

Stephen-71
Hi all,

I would like to get the GNU Smalltalk browser working on Centos 5. (As
your probably know Centos 5 is built from sources of RedHat Linux
Enterprise 5)

On installing version 2.3.6, the ./configure isn't seeing tcl/tk , i.e.

./configure
... <snip> ...
Auxiliary libraries:
checking for nl_langinfo and CODESET... yes
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for iconv... yes
checking for iconv declaration...
          extern size_t iconv (iconv_t cd, char * *inbuf, size_t
*inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for initscr in -lncurses... yes
checking how to link with GMP... -lgmp
checking for mp_limb_t... yes
checking size of mp_limb_t... 4
checking for tclsh... no
checking for Tcl 8.x... no
checking for Tk 8.x... no
checking the include path for Tcl/Tk 8.x... not found
checking how to link with Tcl/Tk 8.x... not found
checking how to link with readline... -lreadline -ltermcap



Here is a package list from my installation of Centos
----------------------------
[root@cen5ogo projects_smalltalk]# rpm -qa | grep tcl
tclx-8.4.0-5.fc6
tclx-devel-8.4.0-5.fc6
tcl-8.4.13-3.fc6
tcl-devel-8.4.13-3.fc6

[root@cen5ogo projects_smalltalk]# rpm -qa | grep tk
atk-1.12.2-1.fc6
usermode-gtk-1.88-3.el5
tk-8.4.13-3.fc6
tk-devel-8.4.13-3.fc6
gtk2-2.10.4-16.el5
pygtk2-libglade-2.10.1-8.el5
authconfig-gtk-5.3.12-2.el5
gtkhtml2-2.11.0-3
gnome-python2-gtkhtml2-2.14.2-4.fc6
gtk2-devel-2.10.4-16.el5
gtk+-devel-1.2.10-56.el5
libgtk-java-2.8.7-3.el5
gtk2-engines-2.8.0-3.el5
pygtk2-2.10.1-8.el5
gtk+-1.2.10-56.el5
atk-devel-1.12.2-1.fc6



I was expecting that installing the tcl-devel and tk-devel files should
be enough for the ./configure phase to see tcl/tk is installed.
Does this mean I'll need to download source for tcl/tk and install to
/usr/local?

Thanks
Stephen


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: TCL/TK linking on Centos 5 to see browser

Stephen-71

>
> I was expecting that installing the tcl-devel and tk-devel files should
> be enough for the ./configure phase to see tcl/tk is installed.
> Does this mean I'll need to download source for tcl/tk and install to
> /usr/local?

It isn't a problem to locally install tcl/tk. Just checking if it is a bug.

Thanks
Stephen



_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: TCL/TK linking on Centos 5 to see browser

S11001001
In reply to this post by Stephen-71
On Sat, 2007-09-08 at 15:25 +1200, Stephen wrote:
> checking for tclsh... no
> checking for Tcl 8.x... no
> checking for Tk 8.x... no
> checking the include path for Tcl/Tk 8.x... not found
> checking how to link with Tcl/Tk 8.x... not found

On Fedora I always had to explicitly specify the path to tclConfig.sh
and tkConfig.sh.  Now I just --without-tcl because I don't have Tcl/Tk
installed at all, but this may only work with devo.

--
;;; Stephen Compall ** http://scompall.nocandysw.com/blog **
"Peta" is Greek for fifth; a petabyte is 10 to the fifth power, as
well as fifth in line after kilo, mega, giga, and tera.
  -- Lee Gomes, performing every Wednesday in his tech column
     "Portals" on page B1 of The Wall Street Journal

_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

signature.asc (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: TCL/TK linking on Centos 5 to see browser

Paolo Bonzini
Stephen Compall wrote:
> On Sat, 2007-09-08 at 15:25 +1200, Stephen wrote:
>> checking for tclsh... no
>> checking for Tcl 8.x... no
>> checking for Tk 8.x... no
>> checking the include path for Tcl/Tk 8.x... not found
>> checking how to link with Tcl/Tk 8.x... not found
>
> On Fedora I always had to explicitly specify the path to tclConfig.sh
> and tkConfig.sh.

If (both of) you give me your paths to *Config.sh, I can add support for
FC and Centos.

Paolo


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: TCL/TK linking on Centos 5 to see browser

S11001001
Paolo Bonzini wrote:
>> On Fedora I always had to explicitly specify the path to tclConfig.sh
>> and tkConfig.sh.
>
> If (both of) you give me your paths to *Config.sh, I can add support for
> FC and Centos.

Sorry, the server maintainers recently switched to Ubuntu, and it's been
ages since I built GST on there.  But CentOS is built on FC AFAIK, so
sdw's location should suffice.

--
;;; Stephen Compall ** http://scompall.nocandysw.com/blog **
But you know how reluctant paranormal phenomena are to reveal
themselves when skeptics are present. --Robert Sheaffer, SkI 9/2003


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: TCL/TK linking on Centos 5 to see browser

Stephen-71
In reply to this post by Paolo Bonzini
I've just built it, and used the GST browser. Very nice.

  ./configure --with-tcl=/usr/lib/ --with-tk=/usr/lib/


Cheers
Stephen

Paolo Bonzini wrote:

> Stephen Compall wrote:
>> On Sat, 2007-09-08 at 15:25 +1200, Stephen wrote:
>>> checking for tclsh... no
>>> checking for Tcl 8.x... no
>>> checking for Tk 8.x... no
>>> checking the include path for Tcl/Tk 8.x... not found
>>> checking how to link with Tcl/Tk 8.x... not found
>>
>> On Fedora I always had to explicitly specify the path to tclConfig.sh
>> and tkConfig.sh.
>
> If (both of) you give me your paths to *Config.sh, I can add support for
> FC and Centos.
>
> Paolo
>


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: TCL/TK linking on Centos 5 to see browser

Paolo Bonzini
Stephen wrote:
> I've just built it, and used the GST browser. Very nice.
>
>  ./configure --with-tcl=/usr/lib/ --with-tk=/usr/lib/

Can you do this:

tclsh
puts $tcl_library

Paolo


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: TCL/TK linking on Centos 5 to see browser

Stephen-71
>
> Can you do this:
>
> tclsh
> puts $tcl_library
>

[root@cen5ogo ~]# tclsh
% puts $tcl_library
/usr/share/tcl8.4


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: TCL/TK linking on Centos 5 to see browser

Paolo Bonzini
Stephen wrote:

>>
>> Can you do this:
>>
>> tclsh
>> puts $tcl_library
>>
>
> [root@cen5ogo ~]# tclsh
> % puts $tcl_library
> /usr/share/tcl8.4

Thanks.  The problem should be that /usr/lib/tcl8.4 does not exist, and
so neither does /usr/lib/tcl8.4/.. (which is how the script tries to
reach /usr/lib).

The following patch should work.

Paolo

--- orig/build-aux/tcltk.m4
+++ mod/build-aux/tcltk.m4
@@ -27,8 +27,10 @@ if test "x$with_tcl" = x || test "$with_
            test -f "$with_tcl/../../tclConfig.sh" &&
with_tcl="$with_tcl/../.." && break
            with_tcl=`echo "$with_tcl" | sed 's,\(.*\)/share,\1/lib,'`
            test -f "$with_tcl/tclConfig.sh" && break
-          test -f "$with_tcl/../tclConfig.sh" &&
with_tcl="$with_tcl/.." && break
-          test -f "$with_tcl/../../tclConfig.sh" &&
with_tcl="$with_tcl/../.." && break
+          with_tcl=`echo "$with_tcl" | sed 's,/[^/]*$,,'`
+          test -f "$with_tcl/tclConfig.sh" && break
+          with_tcl=`echo "$with_tcl" | sed 's,/[^/]*$,,'`
+          test -f "$with_tcl/tclConfig.sh" && break
          fi
         with_tcl=no
         TCLSH=no


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk