LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-11-2010, 12:13 PM   #1
phichau
LQ Newbie
 
Registered: Jun 2007
Posts: 1

Rep: Reputation: 0
Angry 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
 
Old 11-11-2010, 12:15 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,933

Rep: Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692
Quote:
Originally Posted by phichau View Post
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.
 
Old 11-11-2010, 02:12 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
/usr/lib/perl5/Tk.pm , probably.

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

..

Last edited by knudfl; 11-11-2010 at 02:14 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using locate. stf92 Linux - General 5 06-18-2010 07:45 AM
locate mikeshn Linux - Software 4 05-14-2007 05:38 AM
cpan> locate -u Unknown shell command 'locate -u'. Type ? for help. sharad2005 Linux From Scratch 1 08-04-2006 01:40 AM
Can't locate locate hindenbergbaby Linux - Newbie 3 10-22-2003 05:13 PM
how to locate ? jamaso Linux - General 4 10-17-2002 04:45 PM


All times are GMT -5. The time now is 06:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration