Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Problem install Tk on CentOs using Perl 5.26

by zentara (Archbishop)
on Jun 25, 2017 at 11:46 UTC ( [id://1193508]=note: print w/replies, xml ) Need Help??


in reply to Problem install Tk on CentOs using Perl 5.26

ny help will be appreciated

Hi, don't use cpan to install. Download the module itself from Tk source . Download the tarball and do "perl Makefile.PL" then "make" and finally as root make install. Tell us what errors you receive at any step of the recipe.


I'm not really a human, but I play one on earth. ..... an animated JAPH
  • Comment on Re: Problem install Tk on CentOs using Perl 5.26

Replies are listed 'Best First'.
Re^2: Problem install Tk on CentOs using Perl 5.26
by dabella12 (Acolyte) on Jun 25, 2017 at 12:35 UTC

    This is the error mesg i am getting when i run make test

    make[2]: Entering directory `/home/dabella/Downloads/Tk-804.033/PNG/zl +ib' make[2]: `libz.a' is up to date. make[2]: Leaving directory `/home/dabella/Downloads/Tk-804.033/PNG/zli +b' make[2]: Entering directory `/home/dabella/Downloads/Tk-804.033/PNG/li +bpng' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/dabella/Downloads/Tk-804.033/PNG/lib +png' make[2]: Entering directory `/home/dabella/Downloads/Tk-804.033/PNG/zl +ib' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/dabella/Downloads/Tk-804.033/PNG/zli +b' make[2]: Entering directory `/home/dabella/Downloads/Tk-804.033/PNG/li +bpng' make[2]: *** No rule to make target `test_dynamic'. Stop. make[2]: Leaving directory `/home/dabella/Downloads/Tk-804.033/PNG/lib +png' make[1]: *** [subdirs-test_dynamic] Error 2 make[1]: Leaving directory `/home/dabella/Downloads/Tk-804.033/PNG' make: *** [subdirs-test_dynamic] Error 2
      Aaaah ... is this happening after all of the tests have been run ?
      Looking at this bug report (same problem, same module, but different subdir) it would seem so .... or (UPDATE) maybe not, on second look.

      That bug report indicates a couple of workarounds:
      1) change the "test:" line to "test test_dynamic:". I assume this pertains to the generated Makefile in the particular subdir (PNG/libpng/Makefile in your case);
      2) try installing a different version of ExtUtils::MakeMaker.

      BUT, if the tests have already been run, and the results of those tests are satisfactory to you, then I would just run 'make install' and not worry about this problem.

      Cheers,
      Rob
      Hi, don't worry if the Tk tests fail. Install it and it works fine. There is some reason why the tests fail, IIRC, but it dosn't affect the module. By the way, in my recipe, did I include make test? :-)

      So, wipe out your old source, unpack a fresh tgz download, then "perl Makefile.PL", "make", "make install" ( as root)


      I'm not really a human, but I play one on earth. ..... an animated JAPH
        "...don't worry if the Tk tests fail. Install it and it works fine..."

        May be. Or just not. Who knows. The whole Perl Machinery relies on tests and that is one major reason what makes it so strong. I don't know when i build TK successfully without skipping the tests or force. Perhaps in the days when i used Linux @home and this is a long time ago. And to be honest: I didn't use TK very much.

        Vision - me at a meeting. Boss: "Karl, you builded that crashing TK app. Didn't you run the tests?" Me: "No, some fellow monk told me to skip them because they fail anyway" Boss: "Karl, you're fired!"

        Best regards, Karl

        «The Crux of the Biscuit is the Apostrophe»

        perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1193508]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2024-04-23 18:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found