LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 10-04-2008, 02:57 PM   #1
ricardo_delao
LQ Newbie
 
Registered: Oct 2008
Posts: 2

Rep: Reputation: 0
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
 
Old 10-04-2008, 03:42 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,340

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
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
 
Old 10-05-2008, 02:06 PM   #3
ricardo_delao
LQ Newbie
 
Registered: Oct 2008
Posts: 2

Original Poster
Rep: Reputation: 0
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
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
problems in running cgi/perl scripts... raymond Linux - General 17 02-09-2010 04:06 AM
Problems with perl and irssi-scripts.. magoot Programming 0 02-27-2005 05:24 AM
Running web based perl scripts in userdirs markham82 Linux - Networking 1 12-15-2004 06:51 AM
dvd::rip and perl-gtk problems Morz Slackware 4 10-10-2004 04:37 PM
problems installing Gtk-Perl-0.7008 sbcdivision63 Linux - Software 5 01-27-2004 09:46 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 12:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration