Find the answer to your Linux question:
Results 1 to 6 of 6
Hi, I just downloaded Tk-804.028 and try to install it (according to the README.linux) but 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 ...
  1. #1
    Just Joined!
    Join Date
    Apr 2010
    Posts
    18

    Question Cannot Install Perl/Tk

    Hi,

    I just downloaded Tk-804.028 and try to install it (according to the README.linux) but 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.


    Does anyone know how to resolve this?

    TIA,
    Matt

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Why don't you install it using default package manager?
    Which Linux distro/version are you using?
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Apr 2010
    Posts
    18
    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

  4. #4
    drl
    drl is offline
    Linux Engineer drl's Avatar
    Join Date
    Apr 2006
    Location
    Saint Paul, MN, USA / CentOS, Debian, Solaris, SuSE
    Posts
    1,117
    Hi.

    Some observations, comparisons, and questions.

    I use CentOS 5.4, the free version of RHEL:
    Code:
    OS, ker|rel, machine: Linux, 2.6.18-164.15.1.el5, i686
    Distribution        : CentOS release 5.4 (Final)
    when I look at the repository content for perl and tk, I get:
    Code:
    $ yum list perl 'tk*'
    Loaded plugins: priorities
    Installed Packages
    perl.i386                         4:5.8.8-27.el5                       installed
    tk.i386                           8.4.13-5.el5_1.1                     installed
    Available Packages
    tk-devel.i386                     8.4.13-5.el5_1.1                     base     
    tkinter.i386
    My perl is in:
    Code:
    $ which perl
    /usr/bin/perl
    One dependency for tk.386 is the X library:
    Code:
    $ yum deplist tk.i386
    ...
      dependency: libX11.so.6
       provider: libX11.i386 1.0.3-11.el5
    So the package for that may not be installed on your system.

    Are you using something like RHEL 5.1?

    Why is your perl ActivePerl rather than the repository perl?

    You seem to be using cpan, not the system package manager. That is what devils casper was talking about.

    I'm not sure that the package manager yum is available as far back as RHEL 5.1, but that is what the current version uses.

    I can say that when I did not use the package manager for the particular distribution, I generally ran into trouble ... cheers, drl
    Welcome - get the most out of the forum by reading forum basics and guidelines: click here.
    90% of questions can be answered by using man pages, Quick Search, Advanced Search, Google search, Wikipedia.
    We look forward to helping you with the challenge of the other 10%.
    ( Mn, 2.6.n, AMD-64 3000+, ASUS A8V Deluxe, 1 GB, SATA + IDE, Matrox G400 AGP )

  5. #5
    Just Joined!
    Join Date
    Apr 2010
    Posts
    18
    DRL,

    Thanks.

    Somewhere I jotted down in my notes: Red Hat 5.1.19.6

    I just bought and installed it in January.
    What command can I run (or where can I look) to find out the version?
    I looked all over the GUI/Desktop but could only find Gnome stuff.

    I did install ActiveState's Perl the other day because, years ago, when I used to use Perl/Tk (at my work) I used ActiveStates and Perl/Tk was available from their CD. My default Perl that was installed when I installed Red Hat is/was fine. (It turns out that ActiveStates has gone to Perl/Tkx and I'd rather stick with Perl/Tk for now).

    I don't really care what version of Perl or what version of Perl/Tk as long as they are compatible (execute together). I don't really care what vehicle installs it: RPM, yum, sh. As long as Perl/Tk works and I can still run regular (non-GUI) Perl, I'll be very happy.

    Having said that, if you or someone, can point me to those two installs that you *know* work together and will work on my Red Hat, I'll replace all that I currently have by installing those two (again, whether it's rpm, yum or sh, I really don't care).

    Thanks Again,
    Matt

  6. #6
    drl
    drl is offline
    Linux Engineer drl's Avatar
    Join Date
    Apr 2006
    Location
    Saint Paul, MN, USA / CentOS, Debian, Solaris, SuSE
    Posts
    1,117
    Hi, Matt.

    From my system:
    Code:
    cat /etc/redhat-release
    produces:
    Code:
    CentOS release 5.4 (Final)
    Use:
    Code:
    which yum
    man yum
    to see if you have a sufficiently modern system to have the yum package manager.

    The RedHat releases are quite conservative, so I would think that perl and Tk that are available will work together.

    However, I could not locate the module Tk.pm on my CentOS. It may be in some repository that I have not enabled -- I generally have only a basic install of distributions (except for my primary workstation and the virtual-machine-server host) ... cheers, drl
    Welcome - get the most out of the forum by reading forum basics and guidelines: click here.
    90% of questions can be answered by using man pages, Quick Search, Advanced Search, Google search, Wikipedia.
    We look forward to helping you with the challenge of the other 10%.
    ( Mn, 2.6.n, AMD-64 3000+, ASUS A8V Deluxe, 1 GB, SATA + IDE, Matrox G400 AGP )

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...