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

Greetings Wise Ones,

I'm a bit new to this, but have had not trouble installing modules in the past. This time I have been attempting to install Tk-804.027 under cygwin. What I understand from the "README.cygwin" is that I do not need to have xfree installed.

The folowing worked fine: perl Makefile.PL.

The next phase make failed with:

make[2]: Leaving directory `/cygdrive/e/temp/Tk-804.027/Xlib/X' gcc -c -I.. -I../pTk/mTk/xlib -DPERL_USE_SAFE_PUTENV -fno-strict-alia +sing -pipe -I/usr/local/include -DUSEIMPORTLIB -O2 -DVERSION=\"804.027\" -DXS_ +VERSION=\" 804.027\" "-I/usr/lib/perl5/5.8.5/cygwin-thread-multi-64int/CORE" -D +__WIN32__ -D_WIN32 -Wall -Wno-implicit-int -Wno-comment -Wno-unused -D__USE_FIXE +D_PROTOTYP ES__ Xlib.c In file included from ../pTk/tkWinPort.h:19, from ../pTk/tkPort.h:28, from Xlib.xs:7: ../pTk/mTk/xlib/X11/Xlib.h:1206:35: ../pTk/tkIntXlibDecls.h: No such f +ile or dir ectory make[1]: *** [Xlib.o] Error 1 make[1]: Leaving directory `/cygdrive/e/temp/Tk-804.027/Xlib' make: *** [subdirs] Error 2

Clearly it's still including XLib in spite of what the README had to say. Am I doing something wrong? Do I need to install xfree? Has anyone else attempted this? Any input would help at this point.

A humble novice

Replies are listed 'Best First'.
Re: Trouble installing TK under cygwin
by perlfan (Parson) on Mar 22, 2005 at 03:50 UTC
    Tk comes with ActiveState Perl by default.

    update: and yes, you can use AS Perl inside of Cygwin
      Thanks for the info,

      I installed and experimented with active perl last night. It does, as you say, have Tk built in. I would still like to get it to work in Cygwin, but at least now I have an alternative.

Re: Trouble installing TK under cygwin
by Courage (Parson) on Mar 22, 2005 at 06:34 UTC
    As I tend to say, Tcl::Tk is much easier to rebuild, very similar to perlTk except Tcl::Tk much more flexible and convenient in long run.

      I tried Tcl::Tk many, many moons ago. I've since forgotten what little I've learnt. I've invested some time now into learning Perl. I would like to harness what I have learnt, rather thant learn yet another language. The app I am writing is a prototype, so I don't have much time to learn something new.

      Perhaps when I get a little more time I'll look into it again.

        To clarify: Tcl::Tk is Perl module from CPAN to connect to Tcl/Tk, so those are different things: Tcl::Tk is a bridge from Perl to Tcl/Tk

        But you can use Tcl::Tk with perlTk syntax (see How Perl/Tk and Tcl::Tk are similar and other nodes on that wiki), so no Tcl/Tk knowledge is required, although you'll get more flexibility if some Tcl/Tk understanding will be.

        However, if you really have little time for experiments, may be Tcl::Tk is not a way to go.
        Still, I have an opinion that with Tcl::Tk you can *save* your efforts in GUI programming, due to less time spent on recompiling and better TIMTOWTDI.