dale_chip has asked for the wisdom of the Perl Monks concerning the following question:

hi i am on centos 5 and using perl 5.8.8
i want to use the tcl module with perl.
i downloaded the package at cspan
tcl-0.95.tar.gz(http://search.cpan.org/CPAN/authors/...cl-0.95.tar.gz) and did what it said.

This is from the README :
1. Tweak Makefile.PL is necessary only if your Tcl include files could not be found automatically by Makefile.PL script. Normally you just make sure you have right tcl in your path at a moment of running Makefile.PL script.
2. perl Makefile.PL make
3. Before installing, you can run the small test suite with make test if you wish.
4. make install
-> i dont know much about tweaking so left it and ran perl Makefile.PL
but it returned some warning.
This is the output :
tclsh=/usr/bin/tclsh tcl_library=/usr/share/tcl8.4 tcl_version=8.4 LIBS = -ltcl8.4 Use of uninitialized value in concatenation (.) or string at Makefile. +PL line 204. INC = DEFINE = Use of uninitialized value in string at Makefile.PL line 220. Writing Makefile for Tcl
Then running make gave errors.
tclsh is in my path ( this was required, in README).
can any one help

Replies are listed 'Best First'.
Re: Problem installing tcl
by vkon (Curate) on Aug 26, 2008 at 11:46 UTC
    (for the record - I am maintainer of Tcl module, but you should use tcltk at perl dot org mailing list for problems using the module)

    unfortunately the logic of Makefile.PL is twisted - I was always against making it complicated
    but it grows by adding more and more include paths from different $^O variants.

    You can use --include=/your/path/to/tcl/include-files to specify those, but even better is to --usestubs on linux, because this portion of makefile.pl is not broken. So try following command line:

    perl Makefile.PL --usestubs

    I guess this Makefile.PL needs serious cleaning upon next release.

    HTH,
    Vadim.

      thanx that worked in one go :)