How to Install Perl/Tk

Discussion in 'Programming/Scripts' started by matt_thumper, May 9, 2010.

  1. matt_thumper

    matt_thumper New Member

    Hi,

    I have downloaded and unpackaged Tk-804.028

    When I try to install it via the README.linux instructions I get:

    > perl Makefile.PL
    /opt/ActivePerl-5.10/bin/perl-static is installed in /opt/ActivePerl-5.10/lib okay
    PPM for perl5.010001
    Test Compiling config/perlrx.c
    Test Compiling config/pmop.c
    Test Compiling config/pregcomp2.c
    Test Compiling config/signedchar.c
    Test Compile/Run config/unsigned.c
    Test Compiling config/Ksprintf.c
    Test Compiling -DSPRINTF_RETURN_CHAR config/Ksprintf.c
    Test Compiling config/tod.c
    Test Compiling -DTIMEOFDAY_TZ config/tod.c
    Test Compiling -DTIMEOFDAY_NO_TZ config/tod.c
    Test Compiling -DTIMEOFDAY_DOTS config/tod.c
    Problem gettimeofday()
    Using -L/usr/lib to find /usr/lib/libX11.so.6.2.0
    Cannot find X include files via /usr/include
    Cannot find X include files anywhere at ./myConfig line 369.
    Compilation failed in require at Makefile.PL line 37.
    BEGIN failed--compilation aborted at Makefile.PL line 39.

    So I did this search:

    > find / -name 'libX11.so*' -print
    /usr/lib/libX11.so.6
    /usr/lib/libX11.so.6.2.0

    Anyone know what's wrong? Or more importantly how to resolve it?
    I'm running Red Hat Enterprise.

    Thanks,
    Matt
     
  2. matt_thumper

    matt_thumper New Member

    also problems with it as a package

    When I try to install the package I get very similar reults:

    <snip>
    Tk-804.028/pTk/mTk/tclGeneric/tclPanic.c
    Tk-804.028/pTk/mTk/tclGeneric/tclIndexObj.c
    Tk-804.028/pTk/mTk/tclGeneric/regerror.c
    Tk-804.028/pTk/mTk/tclGeneric/tclFCmd.c
    Tk-804.028/pTk/mTk/tclGeneric/tclThreadAlloc.c
    Tk-804.028/pTk/mTk/tclGeneric/tclCompCmds.c
    Tk-804.028/pTk/mTk/tclGeneric/tclAlloc.c

    CPAN.pm: Going to build S/SR/SREZIC/Tk-804.028.tar.gz

    /opt/ActivePerl-5.10/bin/perl-static is installed in /opt/ActivePerl-5.10/lib okay
    PPM for perl5.010001
    Test Compiling config/perlrx.c
    Test Compiling config/pmop.c
    Test Compiling config/pregcomp2.c
    Test Compiling config/signedchar.c
    Test Compile/Run config/unsigned.c
    Test Compiling config/Ksprintf.c
    Test Compiling -DSPRINTF_RETURN_CHAR config/Ksprintf.c
    Test Compiling config/tod.c
    Test Compiling -DTIMEOFDAY_TZ config/tod.c
    Test Compiling -DTIMEOFDAY_NO_TZ config/tod.c
    Test Compiling -DTIMEOFDAY_DOTS config/tod.c
    Problem gettimeofday()
    Using -L/usr/lib to find /usr/lib/libX11.so.6.2.0
    Cannot find X include files via /usr/include
    Cannot find X include files anywhere at ./myConfig line 369.
    Compilation failed in require at Makefile.PL line 37.
    BEGIN failed--compilation aborted at Makefile.PL line 39.
    Warning: No success on command[/opt/ActivePerl-5.10/bin/perl-static Makefile.PL INSTALLDIRS=site]
    SREZIC/Tk-804.028.tar.gz
    /opt/ActivePerl-5.10/bin/perl-static Makefile.PL INSTALLDIRS=site -- NOT OK
    Running make test
    Make had some problems, won't test
    Running make install
    Make had some problems, won't install
    Failed during this command:
    SREZIC/Tk-804.028.tar.gz : writemakefile NO '/opt/ActivePerl-5.10/bin/perl-static Makefile.PL INSTALLDIRS=site' returned status 512

    And:
    I'm on Red Hat 5.1.19.6

    Thanks Again,
    Matt
     
  3. falko

    falko Super Moderator Howtoforge Staff

    Please install the libX11-devel package and try again.
     
  4. matt_thumper

    matt_thumper New Member

    Wow That Didn't Work

    Wow, that didn't work.
    The x11 package and install screwed up Gnome and I had to completely reinstall Red Hat.
    That's not the answer.
    Won't try that again.
     
  5. alexrock23

    alexrock23 New Member

    Hello friends
    I was looking at p5-tk when I was having problem with PerlTK. But I could not find a single solitary site with info/manuals/docs about the package. And it appears that it is what Linux people call an 'orphaned' package. That is, there appears to be no maintainer of the code which to me, means that it is dead.
     
  6. kendustin7

    kendustin7 New Member

    I was having similar issue but after downloading libpng separately on my windows my problem was solved and never had any issue after that. I think you should also try this, may be possible you problem can be solved.
     

Share This Page