Gimp seems to fail to load perl plug-ins. I installed a selfmade ebuild (gimp-gallery) for a perl plug-in but I could not find it anywhere in Gimp. If I start gimp from the shell, it seems to me that the plug-in(s) fail due to a problem with INC (path?). Gimp: Latest version installed: 1.2.3-r3 Perl: Latest version installed: 5.8.0-r10
Created attachment 11606 [details] Ebuild that made me detect the problem
Created attachment 11607 [details] Spool of "emerge -s gimp perl"
*** Bug 20551 has been marked as a duplicate of this bug. ***
Created attachment 11608 [details] Spool of the messages of gimp started from shell
See also http://forums.gentoo.org/viewtopic.php?t=51982&highlight=&sid=ef2b0aecbd1d6bbe63047289667d03c5
Do you have this problem with gimp-1.2.4 ?
Yes, with Gimp 1.2.4 (and HTML-Parser-3.28 instead of HTML-Parser-3.26-r2, both no difference) the problem persists, though the shell output is greatly reduced. Identified problems ------------------- "HTML/Entities.pm" is still not found though on my system it is here: "/usr/lib/perl5/site_perl/5.8.0/i686-linux/HTML/Entities.pm" "Gtk.pm" is still not found though on my system it is here: "/usr/lib/perl5/site_perl/5.6.1/i686-linux/Gtk.pm" Shell output ------------ bash-2.05b$ gimp Can't locate HTML/Entities.pm in @INC (@INC contains: /usr/lib/perl5/5.8.0/i686-linux /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i686-linux /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i686-linux /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /usr/lib/gimp/1.2/plug-ins/gallery.pl line 5. BEGIN failed--compilation aborted at /usr/lib/gimp/1.2/plug-ins/gallery.pl line 5. LibGimp-WARNING **: gimp: wire_read: unexpected EOF Can't locate Gtk.pm in @INC (@INC contains: /usr/lib/perl5/5.8.0/i686-linux /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i686-linux /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i686-linux /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /usr/lib/gimp/1.2/plug-ins/gimpgallery.pl line 14. BEGIN failed--compilation aborted at /usr/lib/gimp/1.2/plug-ins/gimpgallery.pl line 14. LibGimp-WARNING **: gimp: wire_read: unexpected EOF
I had contact with the author of Gimp-gallery who advised me to install HTML:Entities too. I will post a note on my success regarding this.
I found HTML::Entities to be in the package HTML-Parser (at least I believe so: http://search.cpan.org/author/GAAS/HTML-Parser-3.28/lib/HTML/Entities.pm). However, I do not know whether this is a genuine Perl problem or whether the Gimp package ought to be improved.
Considering it again, my best guess is, assuming @INC being somekind of a path variable, @INC ought to include also "/usr/lib/perl5/site_perl/5.8.0/i686-linux/HTML" and "/usr/lib/perl5/site_perl/5.6.1/i686-linux/Gtk.pm"
hmm if #10 is true then this is perl problem, not gimp. I don't think gimp misses anything, cause all gimps own plugins seem to work. Additional stuff should be introduced by additional plugins. I'm not at all into perl, so i think its better to give this back to some perl guy.
It looks like there are two different problems. First, that the gimp ebuild is not depending on all that it needs to in order to enable perl support - that's easy enough to fix if it is the case. The second problem is that the perl gtk modules were installed prior to your upgrade to 5.8 - and don't appear to be getting pulled in. I would recommend re-emerging the gtk module to get rid of that error.
After "emerge gtk-perl" I only get a "Undefined subroutine &Gimp::Fu::register called at /usr/lib/gimp/1.2/plug-ins/gallery.pl line 129. LibGimp-WARNING **: gimp: wire_read: unexpected EOF" when starting Gimp. I shall ask the developer of gimp-gallery about the message. Cheers Thiemo
It's been some time since this bug received any attention. A new version of gimp, perl and gtk-perl has been released in the mean time. Please reopen this bug if it can still be reproduced.
Having installed gimp 1.2.5, perl 5.8.3 and gtk-perl 0.7008-r10 the gimp plug-in in question gets loaded. I have not tested if the plug-in works though. Thanks.