LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 11:13 AM   #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, 11:15 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,617

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
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, 01:12 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
/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 01:14 PM.
 
  


Reply



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 06:45 AM
locate mikeshn Linux - Software 4 05-14-2007 04:38 AM
cpan> locate -u Unknown shell command 'locate -u'. Type ? for help. sharad2005 Linux From Scratch 1 08-04-2006 12:40 AM
Can't locate locate hindenbergbaby Linux - Newbie 3 10-22-2003 04:13 PM
how to locate ? jamaso Linux - General 4 10-17-2002 03:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:25 PM.

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
Open Source Consulting | Domain Registration