Fedora Linux Support Community & Resources Center
  #1  
Old 12th December 2010, 08:53 PM
whippy9999 Offline
Registered User
 
Join Date: Dec 2010
Posts: 10
windows_7firefox
F14 Gtk2 failure

Upgraded to F14. Perl programs using Gtk2 now failing with "can't locate Gtk2.pm in @INC".

Failure occurs on "use Gtk2 -init;". A search on the entire file system confirms that Gtk2.pm does not exist. YUM reports that gtk2 is installed; a search on gtk2.pm is similarly unsuccessful. ("use Gtk2 qw(init);" in my program fails the same way.) I have reinstalled gtk2 (NOT Gtk2 which doesn't exist), with no improvement.

I post in the install forum because the problem is visible after upgrading from F11 directly to F14 and while there is no change in the CPAN documentation for this module relating to initialization, perhaps there is some interaction with the platform level of which I am unaware.

Perplexed about the next possible step in fault isolation.
Reply With Quote
  #2  
Old 12th December 2010, 09:03 PM
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 7,320
linuxfedorafirefox
Re: F14 Gtk2 failure

that file is provided by the perl-Gtk2-1.203-6.fc14.i686 package. See if you have that one installed, and install it if you don't.

try a yum install perl-Gtk2
Reply With Quote
  #3  
Old 13th December 2010, 09:40 PM
whippy9999 Offline
Registered User
 
Join Date: Dec 2010
Posts: 10
linuxfedorafirefox
Re: F14 Gtk2 failure

yum install Gtk2 returns:
No package Gtk2 available.
* Maybe you meant: gtk2
Error: Nothing to do

yum search gtk2 (note lower case G) returns:
gtk2hs-buildtools.x86_64 : Haskell Gtk2Hs buildtools
perl-Gtk2-Ex-CalendarButton.noarch : Gtk2::Ex:alendarButton Perl module
perl-Gtk2-Ex-Dialogs.noarch : Useful tools for Gnome2/Gtk2 Perl GUI design
perl-Gtk2-Ex-FormFactory.noarch : Framework for Gtk2 perl applications
perl-Gtk2-Ex-PodViewer.noarch : A Gtk2 widget for displaying Plain old Documentation (POD)
perl-Gtk2-Ex-Simple-List.noarch : Simple interface to Gtk2's complex MVC list widget
perl-Gtk2-Ex-Utils.noarch : Extra Gtk2 Utilities for working with Gnome2/Gtk2 in Perl
perl-Gtk2-ImageView-devel.i686 : Development headers for perl-Gtk2-ImageView
perl-Gtk2-ImageView-devel.x86_64 : Development headers for perl-Gtk2-ImageView
perl-Gtk2-Sexy-tests.x86_64 : Test suite for package perl-Gtk2-Sexy
perl-Gtk2-Spell.x86_64 : Gtk2::Spell perl module
ekg2-gtk2.x86_64 : GTK2 UI plugin for ekg2
gtk2-engines-devel.i686 : Development files for gtk2-engines
gtk2-engines-devel.x86_64 : Development files for gtk2-engines
ibus-gtk2.i686 : IBus im module for gtk2
ibus-gtk2.x86_64 : IBus im module for gtk2
mingw32-gtk2.noarch : MinGW Windows Gtk2 library
mingw32-gtk2-static.noarch : Static version of the MinGW Windows Gtk2 library
perl-Gtk2-GladeXML.x86_64 : Create user interfaces directly from Glade XML files
pygtk2-doc.noarch : Documentation files for pygtk2
ruby-gtk2.x86_64 : Non-Gem support package for gtk2
ruby-gtk2-devel.i686 : Development libraries and header files for ruby-gtk2
ruby-gtk2-devel.x86_64 : Development libraries and header files for ruby-gtk2
rubygem-gtk2-doc.x86_64 : Documentation for rubygem-gtk2
fpm2.x86_64 : Password manager with GTK2 GUI
gtk-murrine-engine.i686 : Murrine GTK2 engine
gtk-murrine-engine.x86_64 : Murrine GTK2 engine
gtk-nodoka-engine.i686 : The Nodoka Gtk2 Theme Engine
gtk-nodoka-engine.x86_64 : The Nodoka Gtk2 Theme Engine
gtk-nodoka-engine-extras.noarch : Extra themes for Nodoka Gtk2 theme engine
gtk-vnc.i686 : A GTK2 widget for VNC clients
gtk-vnc.x86_64 : A GTK2 widget for VNC clients
gtk-vnc-devel.i686 : Development files to build GTK2 applications with gtk-vnc
gtk-vnc-devel.x86_64 : Development files to build GTK2 applications with gtk-vnc
gtk2-devel.i686 : Development files for GTK+
gtk2-devel.x86_64 : Development files for GTK+
gtk2-engines.i686 : Theme engines for GTK+ 2.0
gtk2-engines.x86_64 : Theme engines for GTK+ 2.0
gtk2-immodule-xim.i686 : XIM support for GTK+
gtk2-immodule-xim.x86_64 : XIM support for GTK+
gtk2-immodules.i686 : Input methods for GTK+
gtk2-immodules.x86_64 : Input methods for GTK+
gxmessage.x86_64 : GTK2 based xmessage clone
licq-icqnd.x86_64 : gtk2 gui for Licq.
logjam.x86_64 : GTK2 client for LiveJournal
pcmanx-gtk2.i686 : Telnet client designed for BBS browsing
pcmanx-gtk2.x86_64 : Telnet client designed for BBS browsing
perl-Gtk2.x86_64 : Perl interface to the 2.x series of the Gimp Toolkit library
perl-Gtk2-Ex-Carp.noarch : GTK+ friendly die() and warn() functions
perl-Gtk2-ImageView.x86_64 : Perl bindings to the GtkImageView image viewer widget
perl-Gtk2-MozEmbed.x86_64 : Interface to the Mozilla embedding widget
perl-Gtk2-Notify.x86_64 : Perl interface to libnotify
perl-Gtk2-Sexy.x86_64 : Perl interface to the sexy widget collection
perl-Gtk2-TrayIcon.x86_64 : Perl interface to the EggTrayIcon library
qtcurve-gtk2.i686 : This is a set of widget styles for Gtk2 based apps
qtcurve-gtk2.x86_64 : This is a set of widget styles for Gtk2 based apps
rubygem-gtk2.x86_64 : Ruby binding of GTK+-2.x
rubygem-gtk2-devel.i686 : Ruby/GTK development environment
rubygem-gtk2-devel.x86_64 : Ruby/GTK development environment
tuxcmd.x86_64 : Tux Commander: file manager with 2 panels side by side using GTK2
wxGTK.i686 : GTK2 port of the wxWidgets GUI library
wxGTK.x86_64 : GTK2 port of the wxWidgets GUI library
wxGTK-devel.i686 : Development files for the wxGTK2 library
wxGTK-devel.x86_64 : Development files for the wxGTK2 library
PackageKit-gtk-module.i686 : Install fonts automatically using PackageKit
PackageKit-gtk-module.x86_64 : Install fonts automatically using PackageKit
apvlv.x86_64 : PDF viewer which behaves like Vim
ario.x86_64 : Ario MPD Client
audacious.x86_64 : Advanced audio player
audacious-plugins.x86_64 : Plugins for the Audacious audio player
bluefish.x86_64 : GTK2 web development application for experienced users
chmsee.x86_64 : A Gtk+2 CHM document viewer
geany.x86_64 : A fast and lightweight IDE using GTK2
gentoo.x86_64 : Graphical file management program in GTK+ for Linux
ghc-glib.x86_64 : Haskell glib library
ghc-glib-devel.i686 : Haskell glib library development files
ghc-glib-devel.x86_64 : Haskell glib library development files
ghc-glib-prof.x86_64 : Profiling libraries for Haskell glib library
gtk-vnc-python.x86_64 : Python bindings for the gtk-vnc library
gtk2.i686 : The GIMP ToolKit (GTK+), a library for creating GUIs for X
gtk2.x86_64 : The GIMP ToolKit (GTK+), a library for creating GUIs for X
gtk2-devel-docs.x86_64 : Developer documentation for GTK+
gtkmm24.i686 : C++ interface for GTK2 (a GUI library for X)
gtkmm24.x86_64 : C++ interface for GTK2 (a GUI library for X)
gtkpod.x86_64 : Graphical song management program for Apple's iPod
gtorrentviewer.x86_64 : A GTK2-based viewer and editor for BitTorrent meta files
gxmms2.x86_64 : A graphical audio player
libcanberra-gtk2.i686 : Gtk+ 2.x Bindings for libcanberra
libcanberra-gtk2.x86_64 : Gtk+ 2.x Bindings for libcanberra
libinfinity-gtk.i686 : GTK widgets for libinfinity
libinfinity-gtk.x86_64 : GTK widgets for libinfinity
libvtemm.i686 : C++ interface for VTE (a GTK2 terminal emulator widget)
libvtemm.x86_64 : C++ interface for VTE (a GTK2 terminal emulator widget)
mingw32-glibmm24.noarch : MinGW Windows C++ interface for GTK2 (a GUI library for X)
mingw32-gtkmm24.noarch : MinGW Windows C++ interface for GTK2 (a GUI library for X)
nimbus-theme-gnome.noarch : Desktop theme from Sun
nodoka-theme-gnome.noarch : The Nodoka Theme Pack for Gnome
perl-App-Asciio.noarch : Asciio backend libraries
perl-Data-TreeDumper-Renderer-GTK.noarch : Gtk2::TreeView renderer for Data::TreeDumper
perl-Getopt-GUI-Long.noarch : A wrapper around Getopt::Long to provide a GUI to applications
perl-Gnome2-Print.x86_64 : Perl wrappers for the Gnome Print utilities
perl-QWizard.noarch : A very portable graphical question and answer wizard system
pygobject2-devel.i686 : Development files for building add-on libraries
pygobject2-devel.x86_64 : Development files for building add-on libraries
pygtk2.x86_64 : Python bindings for GTK+
pygtk2-codegen.x86_64 : The code generation program for PyGTK
pygtk2-devel.i686 : Development files for building add-on libraries
pygtk2-devel.x86_64 : Development files for building add-on libraries
pygtk2-libglade.x86_64 : A wrapper for the libglade library for use with PyGTK
python-gtkextra.x86_64 : Python bindings for gtkextra
rubygem-json-gui.x86_64 : Gtk2 based Editor for ruby JSON.
scite.x86_64 : SCIntilla based GTK2 text editor
stardict.x86_64 : A powerful dictionary platform written in GTK+2
termit.x86_64 : Simple terminal emulator based on vte library
uim-gtk2.i686 : GTK+2 support for Uim
uim-gtk2.x86_64 : GTK+2 support for Uim
xarchiver.x86_64 : Archive manager for Xfce

None of which resemble perl-Gtk2-1.203-6.fc14.i686.

On the offchance it might work I tried:
yum install perl-Gtk2-1.203-6.fc14.i686

and found: No package perl-Gtk2-1.203-6.fc14.i686 available.
Error: Nothing to do

My only remaining idea would be to download Gtk2-1-tar.gz from CPAN but I am concerned this might "walk all over" the gtk2 binary already downloaded.
Reply With Quote
  #4  
Old 14th December 2010, 07:00 AM
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 7,320
linuxfedorafirefox
Re: F14 Gtk2 failure

That package is in the fedora repo. If you have the fedora repo enabled, then just do a yum install perl-Gtk2

[root@tower10 ~]# yum info perl-Gtk2
Loaded plugins: fastestmirror, merge-conf, presto, refresh-packagekit, remove-
: with-leaves
Loading mirror speeds from cached hostfile

Installed Packages
Name : perl-Gtk2
Arch : i686
Version : 1.203
Release : 6.fc14
Size : 6.6 M
Repo : installed
From repo : fedora
Summary : Perl interface to the 2.x series of the Gimp Toolkit library
URL : http://search.cpan.org/dist/Gtk2/
License : LGPLv2+
Description : This module allows you to write Gtk+ graphical user interfaces in
: a perlish and object-oriented way, freeing you from the casting
: and memory management in C, yet remaining very close in spirit to
: original API. Find out more about Gtk+ at http://www.gtk.org.

Edit: I think I see what is happening. You are running 64 bit, so it's defaulting to the x86_64 instead of i386.

here is the link for a direct rpm download from the fedora repo:

http://mirrors.kernel.org/fedora/rel....fc14.i686.rpm

Last edited by DBelton; 14th December 2010 at 07:13 AM.
Reply With Quote
  #5  
Old 14th December 2010, 04:11 PM
whippy9999 Offline
Registered User
 
Join Date: Dec 2010
Posts: 10
linuxfedorafirefox
Re: F14 Gtk2 failure

Alas, no joy. Downloaded/installed the RPM, good eoj.

Ran my test program, again got "Can't locate Gtk2.pm in @INC (@INC contains: ...." Searched entire file system for Gtk2.pm, "no files found".

Since I can execute other perl scripts it seems unlikely the problem lies in the INC array if file search isn't finding the Gtk.pm module.
Reply With Quote
  #6  
Old 14th December 2010, 07:58 PM
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 7,320
linuxfedorafirefox
Re: F14 Gtk2 failure

hmm.. it should have installed it into /usr/lib/perl5/Gtk2.pm

*smacks forehead*

try this line instead of the the one you mentioned in your first post.

use Gtk2 '-init';

make sure the quotes are around '-init'
Reply With Quote
  #7  
Old 14th December 2010, 09:38 PM
whippy9999 Offline
Registered User
 
Join Date: Dec 2010
Posts: 10
linuxfedorafirefox
Re: F14 Gtk2 failure

No, quoting the "use Gtk2 '-init' " didn't work either. FWIW I have half a dozen really simple minded Gtk2 data entry scripts which invariable used the non quoted -init; they all ran without complaint under F11.

I also reran the perl-Gtk2 rpm and it told me "already installed".

Random thought: try an uninstall, and then a reinstall? But I can't figure out what I need to tell yum to uninstall - I don't think it can be gtk2 (small g), but it might be anyway. My intuition is rapidly getting weaker.
In point of fact, the *only* perl scripts I have which use Gtk2 are those self-same data entry scripts (which are safely stored) so maybe it wouldn't be much of a retrograde if we could figure out what to dump.

May I interject here a note of appreciation for your support? I really appreciate it.
Reply With Quote
  #8  
Old 15th December 2010, 02:14 AM
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 7,320
linuxfedorafirefox
Re: F14 Gtk2 failure

does this script do anything like switching users it runs as? or are you running it as a different user? It could possibly be a permission problem (like the user it is being run as doesn't have permission to read the file/folder Gtk2.pm)

check the permissions for folders in /usr/lib/perl5/ (and also /user/lib64/perl5) and make sure that the user you are running as has at least read access. (probably should be read and execute access)

That would need to be for the file, the folder, and all folders above it in the tree structure.

I believe the default for the directories in usr is rwxr xr x (root has read,write,execute access, other users/groups have read,execute access)


Edit:

also you can try adding the lib path to your perl script as well to be sure it can find it...

#!/usr/bin/perl
use lib "/usr/lib64/perl5";
use lib "/usr/lib/perl5";

Last edited by DBelton; 15th December 2010 at 03:07 AM.
Reply With Quote
  #9  
Old 15th December 2010, 03:24 PM
whippy9999 Offline
Registered User
 
Join Date: Dec 2010
Posts: 10
linuxfedorafirefox
Re: F14 Gtk2 failure

Yes, it is a permissions problem! But I'm not entirely there yet - all of the files in both /usr/lib/perl5 and /usr/lib64/perl5 show (for example)
[root@localhost /]# ll /usr/lib/perl5
total 28
drw-r--r--. 3 root root 4096 Dec 14 10:58 auto
drw-r--r--. 8 root root 12288 Dec 14 10:58 Gtk2
-rw-r--r--. 1 root root 10743 Feb 13 2009 Gtk2.pm
[root@localhost /]# ll /usr/lib64/perl5
total 1596
drwxr-xr-x. 3 root root 4096 Dec 14 10:57 Cairo
-rw-r--r--. 1 root root 23317 Apr 19 2008 Cairo.pm
etc
Obviously missing the execute bit. So I tried (as root) chmod -R +x /usr/lib/perl5 - which made the changes but still resulted in an @INC failure. I then executed "yum reinstall gtk2" and put things back to the no execute bit state. My test program incorporates the use lib "/usr/lib64/perl5"; use lib "/usr/lib/perl5"; statements as well. So the last step over the hilltop is, how to change all of the Gtk2 modules within both /usr libraries to be executable?

At the very least, I can confirm that I can see GTK2.pm ( but wonder why places => search for files => file system cannot).
Reply With Quote
  #10  
Old 16th December 2010, 06:17 PM
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 7,320
linuxfedorafirefox
Re: F14 Gtk2 failure

now that is really strange.

You specifically point it to that directory with the use lib statement, the file it is looking for is in that directory, yet it still can't find it.

The answer may be the same reason that places => search for files => file system cannot find the file as well. I know on my system, places => search for files => file system finds it with no problem. I don't know if it uses the database created by updatedb (like locate does) or not.
Reply With Quote
  #11  
Old 16th December 2010, 08:05 PM
whippy9999 Offline
Registered User
 
Join Date: Dec 2010
Posts: 10
linuxfedorafirefox
Re: F14 Gtk2 failure

Okay, I've been tinkering with this (without success) and perhaps additional descriptive data can identify the fault. I have again reinstalled with "yum reinstall gtk2" which populates both the /usr/lib/perl5 and /usr/lib64/perl directories with executable perl modules identified as -rw-r--r--
Then:
[root@localhost donald]# chmod 755 /usr/lib64/perl5/*.pm
[root@localhost donald]# chmod 755 /usr/lib/perl5/*.pm
[root@localhost donald]# ll -R /usr/lib64/perl5/*.pm
-rwxr-xr-x. 1 root root 2239 May 14 2010 /usr/lib64/perl5/APR.pm
-rwxr-xr-x. 1 root root 14462 Dec 1 08:05 /usr/lib64/perl5/attributes.pm
-rwxr-xr-x. 1 root root 25714 Dec 1 08:05 /usr/lib64/perl5/B.pm
-rwxr-xr-x. 1 root root 23317 Apr 19 2008 /usr/lib64/perl5/Cairo.pm
-rwxr-xr-x. 1 root root 2743 Dec 1 08:05 /usr/lib64/perl5/Config.pm
-rwxr-xr-x. 1 root root 21174 Dec 1 08:05 /usr/lib64/perl5/Cwd.pm
-rwxr-xr-x. 1 root root 114451 Jun 15 2010 /usr/lib64/perl5/DateTime.pm
-rwxr-xr-x. 1 root root 1394 Jun 15 2010 /usr/lib64/perl5/DateTimePPExtra.pm
-rwxr-xr-x. 1 root root 5268 Jun 15 2010 /usr/lib64/perl5/DateTimePP.pm
-rwxr-xr-x. 1 root root 63535 Dec 1 08:05 /usr/lib64/perl5/DB_File.pm
-rwxr-xr-x. 1 root root 306846 Jul 22 13:28 /usr/lib64/perl5/DBI.pm
-rwxr-xr-x. 1 root root 25033 Dec 1 08:05 /usr/lib64/perl5/DynaLoader.pm
-rwxr-xr-x. 1 root root 29731 Dec 1 08:05 /usr/lib64/perl5/Encode.pm
-rwxr-xr-x. 1 root root 19892 Dec 1 08:05 /usr/lib64/perl5/encoding.pm
-rwxr-xr-x. 1 root root 7626 Dec 1 08:05 /usr/lib64/perl5/Errno.pm
-rwxr-xr-x. 1 root root 5445 Dec 1 08:05 /usr/lib64/perl5/Fcntl.pm
-rwxr-xr-x. 1 root root 1819 Dec 1 08:05 /usr/lib64/perl5/GDBM_File.pm
-rwxr-xr-x. 1 root root 23068 May 30 2010 /usr/lib64/perl5/Glib.pm
-rwxr-xr-x. 1 root root 1404 Dec 1 08:05 /usr/lib64/perl5/IO.pm
-rwxr-xr-x. 1 root root 6853 Dec 1 08:05 /usr/lib64/perl5/lib.pm
-rwxr-xr-x. 1 root root 1805 Apr 17 2008 /usr/lib64/perl5/mod_perl2.pm
-rwxr-xr-x. 1 root root 11044 Dec 1 08:05 /usr/lib64/perl5/mro.pm
-rwxr-xr-x. 1 root root 2519 Dec 1 08:05 /usr/lib64/perl5/NDBM_File.pm
-rwxr-xr-x. 1 root root 35714 Oct 14 09:21 /usr/lib64/perl5/Newt.pm
-rwxr-xr-x. 1 root root 15563 Dec 1 08:05 /usr/lib64/perl5/Opcode.pm
-rwxr-xr-x. 1 root root 4208 Dec 1 08:05 /usr/lib64/perl5/O.pm
-rwxr-xr-x. 1 root root 997 Dec 1 08:05 /usr/lib64/perl5/ops.pm
-rwxr-xr-x. 1 root root 21011 Dec 1 08:05 /usr/lib64/perl5/POSIX.pm
-rwxr-xr-x. 1 root root 13945 Dec 1 08:05 /usr/lib64/perl5/re.pm
-rwxr-xr-x. 1 root root 2515 Dec 1 08:05 /usr/lib64/perl5/SDBM_File.pm
-rwxr-xr-x. 1 root root 9804 Nov 1 2008 /usr/lib64/perl5/Socket6.pm
-rwxr-xr-x. 1 root root 10834 Dec 1 08:05 /usr/lib64/perl5/Socket.pm
-rwxr-xr-x. 1 root root 41481 Nov 12 12:25 /usr/lib64/perl5/Storable.pm
-rwxr-xr-x. 1 root root 34251 Sep 27 13:36 /usr/lib64/perl5/threads.pm
[root@localhost donald]# ll -R /usr/lib/perl5/*.pm
-rwxr-xr-x. 1 root root 10743 Feb 13 2009 /usr/lib/perl5/Gtk2.pm

As I understand it, all perl modules in both libraries are now both readable/executable by 'other'.

Here is my test script:
[donald@localhost ~]$ cat ~/perl-dev/gtk_test
#! /usr/bin/perl -w
use Gtk2 '-init'; # initialize gtk access
use lib "/usr/lib64/perl5";
use lib "/usr/lib/perl5";
use Glib qw(TRUE FALSE); # define boolean flag values
# standard window setup
my $window = Gtk2::Window->new('toplevel'); # define toplevel window
$window->set_position('center'); # center the window
$window->set_border_width(25);
$window->set_title(my $title = "TEST V.01"); # define application title/version
$window->signal_connect (delete_event => sub { Gtk2->main_quit }); # this way out
my $homogenous = 0; # a "1" here would make all widgets the same height or width
my $spacing = 0; # spacing between widgets in pixels
my $expand = 1; # widgets expand to fit available space
my $fill = 0; # extra space used by widgets or empty
my $padding = 4; # padding
my $button_exit = Gtk2::Button->new_with_label("Quit now");
$button_exit->signal_connect(clicked => sub { Gtk2->main_quit }); # normal means of quitting
$window->show_all; # display window
Gtk2->main;
Does it compile?
[donald@localhost ~]$ perl -c ~/perl-dev/gtk_test
Can't locate Gtk2.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5 /usr/share/perl5 /usr/lib64/perl5 /usr/share/perl5 /usr/local/lib64/perl5/site_perl/5.10.0/x86_64-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib64/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl /usr/lib/perl5/site_perl .) at /home/donald/perl-dev/gtk_test line 2.
BEGIN failed--compilation aborted at /home/donald/perl-dev/gtk_test line 2.

I've tried both with and without quotes on " use Gtk2 -init, and changing the sequence of that statement to before and after the two " use lib" statements. All of which return the same failing result.

The test script is invoked by my regular id from the command line.

Here's yet another anomaly: use nautilus to view /us/lib/perl5
permissions/owner/group: unknown name/type: Gtk2.pm perl script size/datemodified: unknown
and the auto, GTK2 directories shown unknown in all fields.

Nonetheless, my perl scripts which do not reference Gtk2 operate correctly. So I haven't hosed the system, apparently.

While I of course would like to regain the use of those Gtk2 scripts which did work under F11, I have written an interim CLI script for the one key application that has a calendar date dependency, so my sense of urgency to resolve *whatever* is the problem is NOT terribly high.
Reply With Quote
  #12  
Old 17th December 2010, 12:53 AM
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 7,320
linuxfedorafirefox
Re: F14 Gtk2 failure

whoaaaa.. move the use Gtk2 '-init' statement down a couple of lines in your code..

like this..

#! /usr/bin/perl -w
use lib "/usr/lib64/perl5";
use lib "/usr/lib/perl5";
use Gtk2 '-init'; # initialize gtk access
use Glib qw(TRUE FALSE); # define boolean flag values

As you had it, it was hitting the use Gtk2 statement before you set your lib paths.
Reply With Quote
  #13  
Old 17th December 2010, 03:11 PM
whippy9999 Offline
Registered User
 
Join Date: Dec 2010
Posts: 10
linuxfedorafirefox
Re: F14 Gtk2 failure

Tried that before, and again today. Also "rang the changes" on use Gtk2 -init with and without quotes.

What *may* be a hint of the failure mode: perl -c ~/perl-dev/gtk_test ALSO fails

Can't locate Gtk2.pm in @INC (@INC contains: /usr/lib/perl5 /usr/lib64/perl5 /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/share/perl5 /usr/local/lib64/perl5/site_perl/5.10.0/x86_64-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib64/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl /usr/lib/perl5/site_perl .) at /home/donald/perl-dev/gtk_test line 5.
BEGIN failed--compilation aborted at /home/donald/perl-dev/gtk_test line 5.

So what do we know? other perl scripts compile/execute referencing the same @INC array.
The perl modules in /usr/lib/perl5 and /usr/lib64/perl5 have been changed to r-x permissions.
The consistently recurring failure message is "Can't locate Gtk2.pm". I can display this easily as existing, and hopefully with the correct permissions:
[donald@localhost perl-dev]$ su root
Password:
[root@localhost perl-dev]# ll /usr/lib/perl5/Gtk2.pm
-rwxr-xr-x. 1 root root 10743 Feb 13 2009 /usr/lib/perl5/Gtk2.pm

The first question to be answered then is "why can't perl find the Gtk2.pm module?" Unless the error being raised is really due to a downstream dependency, the flaw cannot be in the use lib statements; the Gtk2 init statement is irrelevant, and the contents of the @INC search order are impeachable.

If indeed it happens to be a downstream dependency I noted there are modules in Glib were similarly readonly and I changed those to -rx as well with no positive results. But given my lack of knowledge about precisely all the imbedded references to other Gtk libraries there may be many other modules which might (if the need for r-x permission hypothesis is true) need to be "fixed".
Reply With Quote
  #14  
Old 20th December 2010, 02:36 PM
whippy9999 Offline
Registered User
 
Join Date: Dec 2010
Posts: 10
linuxfedorafirefox
Re: F14 Gtk2 failure

I acknowledge defeat in resolving this problem. As a possible last ditch solution, I investigated the possible sequence of "yum erase gtk2; yum install gtk2" to return to a completely pure vanilla state with regard to Gtk2. In my case this would have result in removing 349 packages, almost certainly involving other system functions upon which I depend. Since my use of Gtk2 is primitive, data entry scripts I have chosen to revert to command line scripts.

My thanks for listening to me. Hey, Fedora 15 isn't that far away!
Reply With Quote
  #15  
Old 20th December 2010, 03:45 PM
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 7,320
linuxfedorafirefox
Re: F14 Gtk2 failure

I sure wish that I could have helped you to figure out the problem, but I have mentioned everything I could think of that it could possibly be.

It's probably something really simple and if you find it, we'll be smacking our forehead and saying "DUH!"

Anyway, I hope you can find a solution, but I have run out of ideas.
Reply With Quote
Reply

Tags
f14, failure, gtk2

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
gtk2 themes bored Using Fedora 1 27th June 2008 04:01 AM
GTK2-2.4 vs 2.6 linmix Using Fedora 23 21st February 2006 07:52 PM
GTK+ 2.8 RPM for FC4 (gtk2-2.8.x) MicahCarrick Using Fedora 0 26th January 2006 07:43 PM


Current GMT-time: 09:31 (Sunday, 26-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Khirkian Photos - Guacui Photos - Concepcion Ibaba Travel Photos on Instagram