Dear brothers and systers.

I had worked with Tk under Linux Red Hat 8.0 and life was nice. Than I've upgrated my Linux by Red Hat 9 and as result, I cannot install correctly (make test returns error 2) Tk for Perl but if I nevertheless install it when I try to run a symple script which produces only one window with button, I have error:

'6x13*font:' isn't numeric at /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Tk/Widget.pm line 188. at /home/misha/projects/Perl/ichecker/mail-checker.pl line 136 Tk::Widget::new('Tk::Button','MainWindow=HASH(0x850d4c8)','-te +xt','Ok','-font','5x12','-command','ARRAY(0x8539c90)') called at /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Tk/Wi +dget.pm line 247 Tk::Widget::__ANON__('MainWindow=HASH(0x850d4c8)','-text','Ok' +,'-font','5x12','-command','ARRAY(0x8539c90)') called at /home/misha/projects/Perl/ichecker/mail-checker.pl line 136 main::display_x('HASH(0x850a8c4)') called at /home/misha/projects/Perl/ichecker/mail-checker.pl line 94 at /home/misha/projects/Perl/ichecker/mail-checker.pl line 136
I've found some topics about this error in the internet forums. Authors those topics suggest set LANG in 'en_US' instead of 'en_US.UTF-8' as set defaul in RH9. But I still cannot use Tk. I have exactly the same error.

Any suggestions will be useful.

My environment: Red Hat 9, Perl 5.8.0 built for i386-linux-thread-multi, Tk 800.025.

Thanks in advanced,

-- Michael Stepanov


In reply to Tk doesn't work under RH9. by nite_man

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.