LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   can't locate Tk.pm in @INC (https://www.linuxquestions.org/questions/linux-newbie-8/cant-locate-tk-pm-in-%40inc-843702/)

phichau 11-11-2010 11:13 AM

can't locate Tk.pm in @INC
 
This is my first post. Please help

I am working on perl and I am stuck on tk.pm on fedora 12. It work fine on window 7.

here is my code.

#!/usr/bin/perl -w
#
use Tk;

I did search on google and try diff ways, but still get the same result

Please help.

Thanks

TB0ne 11-11-2010 11:15 AM

Quote:

Originally Posted by phichau (Post 4155910)
This is my first post. Please help
I am working on perl and I am stuck on tk.pm on fedora 12. It work fine on window 7.

here is my code.

#!/usr/bin/perl -w
#
use Tk;

I did search on google and try diff ways, but still get the same result
Please help.
Thanks

It would help if you told us WHAT you tried, and what the results were. The message is quite clear, though...you don't have Tk installed. So, download it from CPAN, read the instructions, and install it. If you Googled for it, you would have found the CPAN page, and the subsequent download link:

http://search.cpan.org/~srezic/Tk-804.029/

Click the Download link at the top of the page. Read the instructions that are in the file.

knudfl 11-11-2010 01:12 PM

/usr/lib/perl5/Tk.pm , probably.

1) su
2) yum search Tk
.. and / or : yum provides */Tk.pm
3) yum install perl-Tk

..


All times are GMT -5. The time now is 03:16 AM.