Red Hat Bugzilla – Bug 241749
Missing run-time requires on perl modules
Last modified: 2008-03-17 23:03:19 EDT
Description of problem:
It seems several run-time perl module requires are missing. These are the ones I
had to manually install:
Without these starting Zim fails with an error such as:
Can't locate File/MimeInfo/Magic.pm in @INC (@INC contains: /usr/bin/../lib
/usr/lib/perl5/5.8.8 .) at /usr/lib/perl5/vendor_perl/5.8.8/Zim/GUI.pm line 10.
BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.8/Zim/GUI.pm
Compilation failed in require at (eval 11) line 3.
BEGIN failed--compilation aborted at (eval 11) line 3.
Just noticed two more for the built-in plugins:
That's odd -- what's the version, release, etc of Zim you're using? I just
checked against FC-6 & devel; the package itself is definitely requiring:
Which is the perlish way of specifying the packages you mentioned earlier. It
doesn't appear to be picking up the dep on Gtk2::TrayIcon, so I'll add that
manually to the package.
Arch: x86_64 (but that shouldn't matter)
I thought those had to be Requires and not just BuildRequires to get run-time
They do, but they are automatically picked up by rpm during the build and added
as requirements, so they don't need to be listed.
What does "rpmquery --requires Zim" show on your system?
Hmmm... they're in there...
I have no clue why 'yum install Zim' didn't pick them up last night...
Perhaps a bug in yum?
One more plugin that might cause problems is the SVN plugin.
Here's my yum logs from last night:
May 30 00:36:09 Installed: pth.x86_64 2.0.7-1.fc7
May 30 00:36:18 Installed: gnupg2.x86_64 2.0.3-1.fc7
May 30 00:37:56 Installed: gpgme.x86_64 1.1.4-1.fc7
May 30 00:38:01 Updated: wsdl4j.noarch 1.6.2-1jpp
May 30 00:38:41 Installed: basket.x86_64 1.0.2-1.fc7
May 30 00:38:46 Installed: notecase.x86_64 1.5.6-1.fc7
May 30 00:38:47 Installed: hnb.x86_64 1.9.18-3.fc6
May 30 00:38:52 Installed: gjots2.noarch 2.3.4-7.fc7
May 30 00:39:01 Installed: Zim.noarch 0.19-1.fc7
May 30 00:41:21 Installed: kdeutils.x86_64 6:3.5.6-3.fc7
Transaction 2: (zim wasn't working, complained about File::BaseDir)
May 30 00:45:53 Installed: perl-File-BaseDir.noarch 0.02-1.fc6
Transaction 3: (now it needed File::MimeInfo)
May 30 00:51:04 Installed: perl-File-MimeInfo.noarch 0.13-3.fc7
Transaction 4: (playing with Zim, enabled plugins, complained about
Gtk2::TrayIcon and Gtk2::Spell)
May 30 01:06:40 Installed: perl-Gtk2-TrayIcon.x86_64 0.03-3.fc6
May 30 01:06:41 Installed: perl-Gtk2-Spell.x86_64 1.03-5.fc6
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(VersionedDependencies) <= 3.0.3-1
Ok, cool. So bad me for the *ahem* long pause here, but from the output of
rpmquery above this looks to have been... well, something's fault other than the
Zim rpm (note the perl(File::BaseDir) and perl(File::MimeInfo) requires above...
these would pull in the needed rpms).
I suspect your system was slightly broken, and some dependencies were missing.
(E.g. Zim installed with --nodeps)
In any case, closing out, please feel free to reopen if you experience this