Closed Thread
Results 1 to 5 of 5

Thread: give me solve

  1. #1
    kiddies is offline Programmer
    Join Date
    May 2009
    Posts
    129
    Rep Power
    0

    give me solve

    i wanna try basic code of Tk perl, this the code

    Code:
    #!/usr/bin/perl -w
    
    use strict;
    use Tk;
    
    my $mw = new MainWindow;
    $mw->Label(-text => 'hello word!')->pack;
    $mw->Button(-text => 'quit',-command => sub{exit})->pack;
    MainLoop;
    the sorce from perlmonk

    when i wanna run it,i have a bad compiler like this

    Code:
    Can't locate Tk.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at ./GUI.pl line 4.
    BEGIN failed--compilation aborted at ./GUI.pl line 4.
    what i must do for running it....

    thanks

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    Jul 2006
    Posts
    16,486
    Blog Entries
    75
    Rep Power
    143

    Re: give me solve

    Have you downloaded Tk for perl and put it in your path?
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  4. #3
    kiddies is offline Programmer
    Join Date
    May 2009
    Posts
    129
    Rep Power
    0

    Re: give me solve

    oohhh ok master.....

  5. #4
    Join Date
    Jan 2010
    Posts
    2
    Blog Entries
    1
    Rep Power
    0

    Re: give me solve

    Quote Originally Posted by WingedPanther View Post
    Have you downloaded Tk for perl and put it in your path?
    can you tell me the meaning of this..i am also experiencing similar problem but not able to solve it.

    thank you

  6. #5
    Join Date
    Jul 2006
    Posts
    16,486
    Blog Entries
    75
    Rep Power
    143

    Re: give me solve

    Tk is a library that is not included as part of the standard perl library. You have to download it, possibly install it, etc.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. how to solve this
    By tontonskie in forum PHP Development
    Replies: 2
    Last Post: 12-20-2010, 03:32 PM
  2. please solve this
    By krishna sowjanya in forum C and C++
    Replies: 9
    Last Post: 09-30-2010, 05:32 AM
  3. I Give Up...
    By Hunter100 in forum C and C++
    Replies: 6
    Last Post: 03-12-2010, 02:37 PM
  4. Help me solve it please.. i'm new
    By BabyAlice in forum C and C++
    Replies: 10
    Last Post: 07-15-2008, 07:33 PM
  5. i give money to anyone who help me out with this!!!
    By Shakmun in forum Visual Basic Programming
    Replies: 1
    Last Post: 10-13-2006, 09:20 AM

Tags for this Thread

Bookmarks

Posting Permissions

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