| Summary: | When attempting to run script requiring Tk.pm, perl generates error. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Wayne Hammond <wdhammond> |
| Component: | perl-Tk | Assignee: | Andreas Bierfert <andreas.bierfert> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 16 | CC: | andreas.bierfert, iarnell, paul, perl-devel |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-02-21 01:37:54 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Wayne Hammond
2012-02-20 14:52:53 UTC
I suspect that you only need to "yum install perl-Tk". The AnyEvent/Impl/Tk.pm module is something else entirely. Perhaps, but that is where yum placed the Tk.pm file. I uninstalled and re-installed using yum and that't where the file was again. Also, I have not been able to find Tk widgets on my computers. The perl script I'm trying to run needs it. I assume this is still part of the Tk package? I have Fedora 16 installed and run updates at least weekly so all of the software should be up to date. Thank you for your input. Have you actually tried doing "yum install perl-Tk"? You appear to have perl-AnyEvent installed, but not perl-Tk. The latter is what your script is looking for, not the former; both contain a Tk.pm but the path by which they are reached is significant and that's why your script is (correctly) disregarding the version from perl-AnyEvent. Ah, but even if you do install perl-Tk, you'll still be stuck because guiguts also needs perl-Tk-ToolBar which we don't have packaged (yet) in Fedora. If I get some spare time, I'll take a look at adding it... The commands I ran were: yum remove tk.x86_64 When that finished I ran: yum install tk.x86_64 The reason I ran those commands was because Tk.pm was found only in one place on my computers (2, a laptop and a desktop both with the latest version of Fedora 16), the AnyEvent/Impl subdirectory which is why I reported this as a bug. When I added the lines: use lib "/usr/share/perl5/vendor_perl/AnyEventImpl", "Tk.pm"; require Tk; import Tk; to the beginning of the script, perl ran and then gave a different error, Tk-widgets not found. Very frustrating for me. Could you give me directions as to how to repair my perl installation? Would you advise removing the packages and installing the previous version with the latest perl package? Thanks for your help. Now I feel really dumb. I ran yum install perl-tk before and received an error about "no package available". I just ran yum install perl-Tk and the package installed. I ran the guiguts script again and the script ran flawlessly. Thank you for your patience and help. Now I feel really dumb. I ran yum install perl-tk before and received an error about "no package available". I just ran yum install perl-Tk and the package installed. I ran the guiguts script again and the script ran flawlessly. Thank you for your patience and help. I'm glad you're up and running. I was testing with a much older version of guiguts - fortunately for you, the latest version bundles a copy of Tk::ToolBar, so does work out-of-the-box on Fedora. As a pgdp member and one-time user of guiguts, though, I'm still interested in getting this properly packaged. Hopefully, in future, it should be possible to "yum install guiguts". For info, review requests are filed for Tk-ToolBar and Tk-CursorControl at bug 79605 and bug 795603. Oops. That should be bug 795605 and bug 795603. |