Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Tk doesn't work under RH9.

by nite_man (Deacon)
on Nov 25, 2003 at 17:21 UTC ( #309965=perlquestion: print w/ replies, xml ) Need Help??
nite_man has asked for the wisdom of the Perl Monks concerning the following question:

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

Comment on Tk doesn't work under RH9.
Download Code
Re: Tk doesn't work under RH9.
by dragonchild (Archbishop) on Nov 25, 2003 at 18:33 UTC
    Try re-installing perl as non-threaded after you change the language settings and reboot. That helped me with other issues (non-Tk, but still locale-related).

    ------
    We are the carpenters and bricklayers of the Information Age.

    The idea is a little like C++ templates, except not quite so brain-meltingly complicated. -- TheDamian, Exegesis 6

    ... strings and arrays will suffice. As they are easily available as native data types in any sane language, ... - blokhead, speaking on evolutionary algorithms

    Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.

      I'm no Tk expert, but the only way I've ever gotten it to install is by doing a "export LANG=C" first.
Re: Tk doesn't work under RH9.
by nite_man (Deacon) on Feb 05, 2004 at 13:49 UTC

    Thanks a lot, guys, for your answers. I've found problem. When I began to work with RedHat 8, I played with font settings under KDE and forgot about it. Later, I've upgrate RedHat 8 to RedHat 9 and some happend with font '6x13*font', but KDE settings still remembe about this font. It caused problems. When I've drop directory ~/.kde and restarted my computer, problem was resolved.

    You can ask me, why I made this post. I hope that it will be useful somebody and will save time and nerves ;-))

    -- Michael Stepanov

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://309965]
Approved by TStanley
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (12)
As of 2014-12-19 11:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (81 votes), past polls