LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   Perl based scripts show problems on Gtk after upgrade from RedHat9 to RHEnterprise4 (https://www.linuxquestions.org/questions/linux-enterprise-47/perl-based-scripts-show-problems-on-gtk-after-upgrade-from-redhat9-to-rhenterprise4-674247/)

ricardo_delao 10-04-2008 02:57 PM

Perl based scripts show problems on Gtk after upgrade from RedHat9 to RHEnterprise4
 
We run many scripts perl shell.
(#!/usr/bin/perl -w)

They worked fine until we made an upgrade from RedHat 9 to RedHat Enterprise 4u6.

After this upgrade, none of these scripts work anymore. They all crash on the following action.

use Gtk;

The followin error message is given:

Canīt locate Gtk.pm in @INC at NAMEOFSCRIPT

I donīt know if RHEL contains a newer version of Gtk and I need to change the syntaz of my commands.

Thank you

Ricardo

jailbait 10-04-2008 03:42 PM

You probably need to check your @INC variable. The @INC variable is used to tell Perl where to find its loadable modules and libraries. Perhaps some of the Gtk libraries have different names under RedHat Enterprise 4u6. Here is an explanation of @INC:

http://perl.apache.org/docs/general/..._INC_Explained

-------------------
Steve Stites

ricardo_delao 10-05-2008 02:06 PM

Name of Gtk.pm
 
Thanks, for the link.
I understand now how @INC works.
I still canīt find the "equivalent" of Gtk.pm for the new version. Or the new location..
Can someone knows the new name of this module?
In case it exists, of course..... maybe it was a particular module created by the previous engineers around here.
In that case, Iīm lost. I guess


All times are GMT -5. The time now is 04:21 AM.